The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Mentions for usernames

    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Mentions for usernames

    Post by TheCrow Thu 10 Apr - 9:19

    Hello. I want to add mentions for the usernames in my forum. Someone gave me this code to add to javascript but doesn't seem to work! Can someone help me?

    Code:
    $(function () {
     Â   var a = $('.name').get();
     Â   for (i = 0; i < a.length; i++) {
     Â       $(a[i].getElementsByTagName('a')[1]).dblclick(function (e) {
     Â           e.preventDefault();
     Â           document.getElementById('text_editor_textarea').value += '@[url=http://' + window.location.host + '/profile?mode=viewprofile&u=' + $(this).text() + ']' + $(this).text() + '[/url]';
     Â       });
     Â   }
    });


    Last edited by Marios94 on Fri 11 Apr - 8:02; edited 1 time in total
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Solved Re: Mentions for usernames

    Post by Van-Helsing Thu 10 Apr - 17:05

    Hi Marios,
    Please check this post https://help.forumotion.com/t116032p30-mention-mentioning-a-member-or-user if it is working.

    Best Regards,
    Dark-Avenger
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Mentions for usernames

    Post by TheCrow Thu 10 Apr - 18:44

    I checked it. It's from there that they gave me the code. If someone who knows doesn't help there is no way that this will work. Unfortunately it doesn't work with any code its given in there.



    Mentions for usernames Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Solved Re: Mentions for usernames

    Post by Van-Helsing Thu 10 Apr - 19:41

    Hi Marios,
    Have you check Dom's Tutorial about advanced tagging system at http://fm.domdevelops.com/scripts/advanced-tagging-system.html ? Try this, it maybe works.

    With Best Regards,
    Dark-Avenger
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Mentions for usernames

    Post by TheCrow Thu 10 Apr - 22:52

    Τhis is amazing thank you!

    Solved
    Jophy
    Jophy
    ForumGuru


    Male Posts : 17922
    Reputation : 836
    Language : English
    Location : Somewhere

    Solved Re: Mentions for usernames

    Post by Jophy Fri 11 Apr - 11:55

    Solved

      Current date/time is Wed 13 Nov - 17:42