The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

@Mention usernames codes problem

View previous topic View next topic Go down

@Mention usernames codes problem

Post by Luffy on March 5th 2014, 1:06 am

Hello. I tried to check and add in my forum the @mention usernames tutorial but unfortunately i could not find the code to add. Can someone please help me?

I found this but still i found nothing..
http://help.forumotion.com/t116032p30-mention-mentioning-a-member-or-user#758989

Thank you.

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: @Mention usernames codes problem

Post by ferok on March 5th 2014, 2:11 pm

Add in JS - Topics:
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]';
        });
    }
});

ferok
New Member

Posts : 11
Reputation : 1
Language : Portugal

http://b2dpt.forumeiros.com

Back to top Go down

Re: @Mention usernames codes problem

Post by Luffy on March 5th 2014, 7:43 pm

Αnd this now works if i use this: ?
Code:
@username: *text*






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: @Mention usernames codes problem

Post by ferok on March 5th 2014, 7:49 pm

@nickname

Yes. I use.

ferok
New Member

Posts : 11
Reputation : 1
Language : Portugal

http://b2dpt.forumeiros.com

Back to top Go down

Re: @Mention usernames codes problem

Post by Luffy on March 5th 2014, 7:53 pm

It doesn't work to me...


Edit:

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum