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

    Make the mentioning system easier to use

    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 1:02 am

    Technical Details


    Forum version : #phpBB3
    Position : Founder
    Concerned browser(s) : Internet Explorer
    Who the problem concerns : All members
    When the problem appeared : When I ws following the Tutorial
    Forum link : http://guardianscreations.forumotion.com

    Description of problem

    Hello there,

    I was following everything that the tutorial told me to do. Here is the tutorial I went by https://help.forumotion.com/t140358-make-the-mentioning-system-easier-to-use

    Need some help why this isn't working.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 1:12 am

    Did you follow this?
    The first two scripts provided are optimized for all forum versions, provided you have not heavily modified your templates. You will see a variable at the top of these scripts titled version. Be sure to change the number to the one that corresponds to your forum version. The options are :

    0 : PHPBB2
    1 : PHPBB3
    2 : PUNBB
    3 : INVISION



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 1:30 am

    Postprofile Mention One
    I have phpbb3 
    Code:
    /* FORUM VERSIONS
     * 0 = PHPBB2
     * 1 = PHPBB3
     * 2 = PUNBB
     * 3 = INVISION
     */
    $(function() {
      var version = 1;
     
      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'][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');
      });
    });

    New Java script 
    Mention Button
    Code:
    /* FORUM VERSIONS
     * 0 = PHPBB2
     * 1 = PHPBB3
     * 2 = PUNBB
     * 3 = INVISION
     */
    $(function() {
      var version = 1,
          image = 'https://i.servimg.com/u/f19/18/21/60/73/mentio10.png';
     
      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 = $(['.post-options', '.profile-icons', '.post-options', '.posting-icons'][version]), b, c, d = ['.name strong a', '.author a', '.username a', '.author a'][version], e, i = 0, j = a.length, t = document.getElementById('text_editor_textarea'), l = version == 1 || version == 3; i<j; i++) {
        b = document.createElement('IMG');
        b.src = image;
        b.alt = 'Mention';
        b.title = 'Mention ' + $(a[i]).closest('.post').find(d + ':not(.fa-mention)').text();
        b.className = 'i_icon_mention';
        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';
          }
        };
     
        if (l) {
          c = document.createElement('LI');
          c.appendChild(b);
        }
       
        a[i].insertBefore(l ? c : b, a[i].firstChild);
      }
     
      $(function(){
        if (!$.sceditor) return;
        t=$(t).sceditor('instance');
      });
    });

     Then Last one SCeditor Button

    Code:
    /* FORUM VERSIONS
     * 0 = PHPBB2
     * 1 = PHPBB3
     * 2 = PUNBB
     * 3 = INVISION
     */
    $(function() {
      var version = 1,
          image = 'https://i.servimg.com/u/f19/18/21/60/73/mentio10.png';
     
      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 = $(['.post-options', '.profile-icons', '.post-options', '.posting-icons'][version]), b, c, d = ['.name strong a', '.author a', '.username a', '.author a'][version], e, i = 0, j = a.length, t = document.getElementById('text_editor_textarea'), l = version == 1 || version == 3; i<j; i++) {
        b = document.createElement('IMG');
        b.src = image;
        b.alt = 'Mention';
        b.title = 'Mention ' + $(a[i]).closest('.post').find(d + ':not(.fa-mention)').text();
        b.className = 'i_icon_mention';
        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';
          }
        };
     
        if (l) {
          c = document.createElement('LI');
          c.appendChild(b);
        }
       
        a[i].insertBefore(l ? c : b, a[i].firstChild);
      }
     
      $(function(){
        if (!$.sceditor) return;
        t=$(t).sceditor('instance');
      });
    });

    I also copy and paste the ones I need in my CSS -  

    What am I doing wrong
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 1:50 am

    What option (In Topics, All Pages, etc.)  did you pick for the JavaScripts?



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 1:51 am

    All Pages
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 1:53 am

    Is JavaScript Management activated?



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 1:53 am

    Yes

     Make the mentioning system easier to use Java10
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 2:16 am

    It could be that they are conflicting with what you already have.  Try this:  remove all of them and test them one by one.



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 3:05 am

    Nothing - It is showing nothing. 

    Postprofile Mention -  Don't see the @ before my name or anyone else's. 


    Mention button -  Dont see the Mention button next to the Multi Quote Button


    SCeditor -  I dont see the @ symbole next to the Quote Button there. 
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 3:35 am

    The first two scripts provided are optimized for all forum versions, provided you have not heavily modified your templates.



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 3:37 am

    Ok, So that is the reason why it doesn't work? 

    So how do I Heavily Modify my templates?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 3:38 am

    No.  I means it will not work if your templates are heavily modified.



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 3:45 am

    Oh, that's a Boo!! 

    So  what do I need to make it work?   I have no idea where to start!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 3:46 am

    Is your templates heavily modified?



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 3:51 am

    I guess it is -  since I did change a lot things to make my forum look the way I like. The skin and add things here and there
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 3:53 am

    Please send me a test account that has access to the administration panel by PM.



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 3:53 am

    Ok
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 4:17 am

    Please go to the templates and check yes for force default templates.



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 4:20 am

    I did in the CSS right
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 4:21 am

    No.

    AP > Display > Templates



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 4:26 am

    AP > Display > Templates

    then want
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 4:28 am

    Click one of the options and check the yes box for force the default templates that show appear above the list.



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 4:29 am

    Got it
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 4:33 am

    I located the issue.  They are conflicting with the other JavaScripts you had already.

    One I saw is not correct.
    Code:
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-135451341-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'UA-135451341-1');
    </script>

    This is JavaScript, but it is not for that section.  You can add it somewhere else.  JavaScript in the management is not coded that way.



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 4:34 am

    Also is this one exactly working?

    Code:
    <!-- BEGIN CBOX - www.cbox.ws - v4.3 -->
    <div id="cboxdiv" style="position: relative; margin: 0 auto; width: 2000px; font-size: 0; line-height: 0;">
    <div style="position: relative; height: 173px; overflow: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 0px solid;"><iframe src="http://www3.cbox.ws/box/?boxid=3474458&boxtag=ba9q4c&sec=main" marginheight="0" marginwidth="0" frameborder="0" width="100%" height="100%" scrolling="auto" allowtransparency="yes" name="cboxmain3-3474458" id="cboxmain3-3474458"></iframe></div>
    <div style="position: relative; height: 127px; overflow: hidden; border: 0px solid; border-top: 0px;"><iframe src="http://www3.cbox.ws/box/?boxid=3474458&boxtag=ba9q4c&sec=form" allow="autoplay" marginheight="0" marginwidth="0" frameborder="0" width="100%" height="100%" scrolling="no" allowtransparency="yes" name="cboxform3-3474458" id="cboxform3-3474458"></iframe></div>
    </div>
    <!-- END CBOX -->



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 4:35 am

    Also you do not have JavaScript in the solved one.


    Last edited by SLGray on March 5th 2019, 4:39 am; edited 1 time in total



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 4:36 am

    Ok the first one you post I will find another place to put that. 


    The cbox, it seems to be working- !!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 4:38 am

    What exactly is the solved one for?



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Hazeleyez73
    Hazeleyez73
    Forumember


    Female Posts : 197
    Reputation : 2
    Language : English
    Location : Maryland

    Solved Re: Make the mentioning system easier to use

    Post by Hazeleyez73 March 5th 2019, 4:44 am

    I wanted for my game sections, for instance like the Las post game, the last one gets the last one wins the game, then I wanted to put solved or something like that idea so I can go back and see who needs a price for winning that game


    So I notice that Mention button and the @sign in SC editor is gone, it was showing up minute ago and now its gone.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Make the mentioning system easier to use

    Post by SLGray March 5th 2019, 5:34 am

    You do not need a JavaScript for that.  I will get the link to how to add a solved image.



     Make the mentioning system easier to use Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is September 22nd 2024, 5:28 pm