Hi all,
I have installed member tagging javascript but it is not working.
Javascript:
Can someone help please to fix it? My forum version is PunBB.
Best Regards,
Black-Shadow
I have installed member tagging javascript but it is not working.
Javascript:
- Spoiler:
- Code:
$(document).on('ready', function() {
var BST = {pergunta: 'Do you want to score a user?',name: 'User name:',note: 'Would you like to send to a member notification tag?'};
var b = $('textarea[dir="ltr"]');
b.keyup(function() {
if ('@' == b.val().split('')[b.val().length-1]) {
if(confirm(BST.pergunta)) {
var host = {
pro: ''+window.location.protocol+'',
link: ''+window.location.host+'',
path: ''+window.location.pathname+''
};
var user = prompt(BST.nome).replace(/\s/g,'+');
if(confirm(BST.note)) {
$.post('/privmsg', {
folder: 'inbox',
mode: 'post',
post: '1',
username: ''+user+'',
subject: 'I scored you on a topic',
message: 'You have been marked on the following topic: '+host.pro+'//'+host.link+host.path+''
});
}
$('[name="message"]').sceditor('instance').insertText('[url='+host.pro+'//'+host.link+'/profile?mode=viewprofile&u='+user+']'+user+'[/url]');
}
}
});
});
Can someone help please to fix it? My forum version is PunBB.
Best Regards,
Black-Shadow
Last edited by Black-Shadow on July 28th 2014, 6:24 pm; edited 1 time in total