Mention Button Script for awesomebb? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    Mention Button Script for awesomebb?

    OngBak
    OngBak
    Forumember


    Posts : 47
    Reputation : 3
    Language : Indo

    Solved Mention Button Script for awesomebb?

    Post by OngBak 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
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15275
    Reputation : 1701
    Language : English,Greek
    Location : Greece

    Solved Re: Mention Button Script for awesomebb?

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

    hello

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

    OngBak
    OngBak
    Forumember


    Posts : 47
    Reputation : 3
    Language : Indo

    Solved Re: Mention Button Script for awesomebb?

    Post by OngBak 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
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15275
    Reputation : 1701
    Language : English,Greek
    Location : Greece

    Solved Re: Mention Button Script for awesomebb?

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

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

    OngBak
    OngBak
    Forumember


    Posts : 47
    Reputation : 3
    Language : Indo

    Solved Re: Mention Button Script for awesomebb?

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

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


    Posts : 47
    Reputation : 3
    Language : Indo

    Solved Re: Mention Button Script for awesomebb?

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

    bump
    tikky
    tikky
    Forumember


    Posts : 898
    Reputation : 157
    Language : 🇵🇹

    Solved Re: Mention Button Script for awesomebb?

    Post by tikky 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
    OngBak
    OngBak
    Forumember


    Posts : 47
    Reputation : 3
    Language : Indo

    Solved Re: Mention Button Script for awesomebb?

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

    Thank you so much @pedxz !!! I love you man! Bless u cheers
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15275
    Reputation : 1701
    Language : English,Greek
    Location : Greece

    Solved Re: Mention Button Script for awesomebb?

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

    thank you @pedxz

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