Brennan
  • ****


      Reputation : 2
      Registered on : 2014-05-29
      Posts : 61
      Love Fmcodes
    Hello friends  thanks 
    I'am wondering how to make a "NEW" button on the side of the forum title like done in this help request: https://www.fmcodes.com/t980-new-on-homepage-problem

    Thanks in advanced  :Good:

    Brennan
    • ****


        Reputation : 2
        Registered on : 2014-05-29
        Posts : 61
        Love Fmcodes
      bump

      Niko
      • Administrator

          Reputation : 319
          Registered on : 2012-02-22
          Posts : 2366
          School of codes courses: coming soon
        Hello,

        you mean replacing it with the text in the box? as here on fmcodes?



        Niko wants you in the team Guest

        Community manager and Administrator at Forumattivo.com

        Brennan
        • ****


            Reputation : 2
            Registered on : 2014-05-29
            Posts : 61
            Love Fmcodes
          Hiya,

          Yeah thats what I mean. I've seen this on other forums aswell but could not find any tutorial on it on any other forum  thanks

          Niko
          • Administrator

              Reputation : 319
              Registered on : 2012-02-22
              Posts : 2366
              School of codes courses: coming soon
            First, add this javascript code:

            Code:
            $(document).ready(function(){$('img[src="IMGLINK"]').replaceWith('<span class="ipsBadge ipsBadge_orange reset_cursor">New</span>')});

            and replace IMGLINK with the image set in the administration control panel for new topics in forums



            now, go to the template index_box, find and remove:
            Code:
            <img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" style="padding-top: 7px;" />

            now find:
            Code:
            </h{catrow.forumrow.LEVEL}>

            and add this code before of that:
            Code:
             &nbsp;<img title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" />



            Niko wants you in the team Guest

            Community manager and Administrator at Forumattivo.com

            Brennan
            • ****


                Reputation : 2
                Registered on : 2014-05-29
                Posts : 61
                Love Fmcodes
              So for the imageset would I just put the servimg url of the Subject - New :

              Niko
              • Administrator

                  Reputation : 319
                  Registered on : 2012-02-22
                  Posts : 2366
                  School of codes courses: coming soon
                The icon you can see now on your index where there are new posts in a forum



                Niko wants you in the team Guest

                Community manager and Administrator at Forumattivo.com

                Brennan
                • ****


                    Reputation : 2
                    Registered on : 2014-05-29
                    Posts : 61
                    Love Fmcodes
                  So i got a bit confused which one? The inside the forum or outside for example look at your forum
                  New button Lols210those icons or? New button Lols11

                  Niko
                  • Administrator

                      Reputation : 319
                      Registered on : 2012-02-22
                      Posts : 2366
                      School of codes courses: coming soon
                    These are topics: https://i.servimg.com/u/f39/18/69/55/83/lols210.png

                    These are forums images: https://i.servimg.com/u/f39/18/69/55/83/lols11.png

                    These are forum icons (the one you must use): https://i.servimg.com/u/f39/18/00/81/97/hey10.png



                    Niko wants you in the team Guest

                    Community manager and Administrator at Forumattivo.com

                    Brennan
                    • ****


                        Reputation : 2
                        Registered on : 2014-05-29
                        Posts : 61
                        Love Fmcodes
                      Yes, I'll try it again   :zen:

                      Brennan
                      • ****


                          Reputation : 2
                          Registered on : 2014-05-29
                          Posts : 61
                          Love Fmcodes
                        This is what it is showing now: 
                        Im thinking there is problem in the javascript?

                        New button Nof10

                        (sorry for this double post  :bene: )

                        Niko
                        • Administrator

                            Reputation : 319
                            Registered on : 2012-02-22
                            Posts : 2366
                            School of codes courses: coming soon
                          Can you provide me the forum link?



                          Niko wants you in the team Guest

                          Community manager and Administrator at Forumattivo.com

                          ddoesmc
                          • Support Moderator

                              Reputation : 9
                              Registered on : 2014-03-11
                              Posts : 299
                              Helping on the forum
                            Hello,

                            As anyone replied to this topic after 15 days from the latest comment's date, the problem is considered solved or abandoned.

                            This topic is locked and moved to the appropriate section, thanks for the opening of another topic, of course be care of Respecting the rules. You can ask to open this topic again sending a private message to a team member

                            See you on fmcodes



                            FMCodes Support Moderator

                            I am very active now! Feel free to PM me anytime.