Mentions for usernames
3 posters
Page 1 of 1
Mentions for usernames
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 2014 - 10:02; edited 1 time in total
Re: Mentions for usernames
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
Please check this post https://help.forumotion.com/t116032p30-mention-mentioning-a-member-or-user if it is working.
Best Regards,
Dark-Avenger
Re: Mentions for usernames
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.
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!
Re: Mentions for usernames
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
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
Jophy- ForumGuru
- Posts : 17922
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» Mentions
» prefix to usernames
» Usernames
» Old usernames are already taken
» Rainbow Usernames??? Please look
» prefix to usernames
» Usernames
» Old usernames are already taken
» Rainbow Usernames??? Please look
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum