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.
The forum of the forums
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 18/3/2020, 05:56

    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 5/4/2020, 19:53; edited 1 time in total
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Mention Button Script for awesomebb?

    Post by skouliki 18/3/2020, 08:52

    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 20/3/2020, 17:02

    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 : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Mention Button Script for awesomebb?

    Post by skouliki 20/3/2020, 17:43

    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 21/3/2020, 17:12

    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 25/3/2020, 05:49

    bump
    tikky
    tikky
    Forumember


    Posts : 922
    Reputation : 160
    Language : 🇵🇹

    Solved Re: Mention Button Script for awesomebb?

    Post by tikky 5/4/2020, 10:12

    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 5/4/2020, 19:53

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


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Mention Button Script for awesomebb?

    Post by skouliki 5/4/2020, 20:23

    thank you @pedxz

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


      Current date/time is 11/11/2024, 23:26