Mention Button Script for awesomebb?

Go down

Solved Mention Button Script for awesomebb?

Post by OngBak on March 18th 2020, 5:56 am

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 " cheers


Last edited by OngBak on April 5th 2020, 7:53 pm; edited 1 time in total
OngBak
OngBak
Forumember

Posts : 47
Reputation : 3
Language : Indo

View user profile http://krmi.forumotion.com/

Back to top Go down

Solved Re: Mention Button Script for awesomebb?

Post by skouliki on March 18th 2020, 8:52 am

hello

try to add the PHPBB3 code cause the awesomebb version has similarities with the PHPBB3 version
skouliki
skouliki
Manager
Manager

Female Posts : 9041
Reputation : 1179
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Mention Button Script for awesomebb?

Post by OngBak on March 20th 2020, 5:02 pm

i've tried the both code and changing the version forum code to 1 which is phpbb3, but its not works Sad

but the sceditor mention code is works
OngBak
OngBak
Forumember

Posts : 47
Reputation : 3
Language : Indo

View user profile http://krmi.forumotion.com/

Back to top Go down

Solved Re: Mention Button Script for awesomebb?

Post by skouliki on March 20th 2020, 5:43 pm

what part of the code dont work ?
members or before the username
skouliki
skouliki
Manager
Manager

Female Posts : 9041
Reputation : 1179
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Mention Button Script for awesomebb?

Post by OngBak on March 21st 2020, 5:12 pm

both, the options is not appearing on my forum
OngBak
OngBak
Forumember

Posts : 47
Reputation : 3
Language : Indo

View user profile http://krmi.forumotion.com/

Back to top Go down

Solved Re: Mention Button Script for awesomebb?

Post by OngBak on March 25th 2020, 5:49 am

bump
OngBak
OngBak
Forumember

Posts : 47
Reputation : 3
Language : Indo

View user profile http://krmi.forumotion.com/

Back to top Go down

Solved Re: Mention Button Script for awesomebb?

Post by pedxz on April 5th 2020, 10:12 am

Hey @OngBak,

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
pedxz
pedxz
Forumember

Male Posts : 304
Reputation : 83
Language : Português
Location : Forumeiros

View user profile https://www.forumotion.com/create-forum/modernbb

Back to top Go down

Solved Re: Mention Button Script for awesomebb?

Post by OngBak on April 5th 2020, 7:53 pm

Thank you so much @pedxz !!! I love you man! Bless u cheers
OngBak
OngBak
Forumember

Posts : 47
Reputation : 3
Language : Indo

View user profile http://krmi.forumotion.com/

Back to top Go down

Solved Re: Mention Button Script for awesomebb?

Post by skouliki on April 5th 2020, 8:23 pm

thank you @pedxz

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 9041
Reputation : 1179
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Back to top


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