Mention Button Script for awesomebb?
3 posters
Page 1 of 1
Mention Button Script for awesomebb?
Hi guys, anyone can help me to convert this mention button script from here https://help.forumotion.com/t140358-make-the-mentioning-system-easier-to-use to awesomebb version?
i do really like the " Button for mentioning member "
i do really like the " Button for mentioning member "
Last edited by OngBak on April 5th 2020, 7:53 pm; edited 1 time in total
Re: Mention Button Script for awesomebb?
hello
try to add the PHPBB3 code cause the awesomebb version has similarities with the PHPBB3 version
try to add the PHPBB3 code cause the awesomebb version has similarities with the PHPBB3 version
Re: Mention Button Script for awesomebb?
i've tried the both code and changing the version forum code to 1 which is phpbb3, but its not works
but the sceditor mention code is works
but the sceditor mention code is works
Re: Mention Button Script for awesomebb?
what part of the code dont work ?
members or before the username
members or before the username
Re: Mention Button Script for awesomebb?
Hey @OngBak,
Use this update to #AwesomeBB.
@ before the username in the profile
- pedxz
Use this update to #AwesomeBB.
@ before the username in the profile
- Code:
/* FORUM VERSIONS
* 0 = PHPBB2
* 1 = PHPBB3
* 2 = PUNBB
* 3 = INVISION
* 4 = AWESOMEBB
*/
$(function() {
var version = 4;
if (/mode=reply/.test(window.location.search) && my_getcookie('fa_mention')) {
document.post.message.value += '@"' + my_getcookie('fa_mention') + '" ';
my_setcookie('fa_mention','');
} if (!/\/t\d+/.test(window.location.pathname)) return;
for (var a = $(['.name strong a', '.postprofile dt strong a', '.username a', '.postprofile dt a ~ a', '.post-author .post-author-name a'][version]), b, i = 0, j = a.length, t = document.getElementById('text_editor_textarea'); i<j; i++) {
b = document.createElement('A');
b.title = 'Mention ' + $(a[i]).text();
b.style.marginRight = '3px';
b.className = 'fa-mention';
b.innerHTML = '@';
b.href = '#';
b.onclick = function() {
var n = this.title.replace(/^.*?\s/,'');
if ($.sceditor) t.insertText('@"' + n + '" ');
else {
my_setcookie('fa_mention', n);
window.location.href = '/post?t=' + window.location.pathname.replace(/\/t(\d+)-.*/,'$1') + '&mode=reply';
}
return false;
};
a[i].parentNode.insertBefore(b, a[i]);
}
$(function(){
if (!$.sceditor) return;
t=$(t).sceditor('instance');
});
});
- pedxz
Similar topics
» Problem with Tagging Member(Mention) Script
» Beautiful reputation script for awesomeBB ?
» Script for immediate refresh (quick reply) on AwesomeBB don't work
» Suggested Script (Need Someone that can read script)
» Like Button Script
» Beautiful reputation script for awesomeBB ?
» Script for immediate refresh (quick reply) on AwesomeBB don't work
» Suggested Script (Need Someone that can read script)
» Like Button Script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum