Back To Top
Login
Register
Visit Us At TwitterVisit Us At YouTubeVisit Us At Facebook
KandiChat is in Beta Release. Try It Out
HomeHome  
  • UpdatesUpdates  
  • SearchSearch  
  • Latest imagesLatest images  
  • RegisterRegister  
  • Log inLog in  
  • March 2024
    MonTueWedThuFriSatSun
        123
    45678910
    11121314151617
    18192021222324
    25262728293031

    Calendar Calendar

    Search
     
     

    Display results as :
     


    Rechercher Advanced Search

    Similar topics
      Who is online?
      In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests

      None

      Most users ever online was 140 on July 4th 2021, 2:03 pm
      RSS feeds


      Poll
      Top posting users this week
      No user


      View previous topic View next topic Go down  Message [Page 1 of 1]

      Mr.EasyBB

      Topic Highlighter

      Mr.EasyBB
      03/19/2013
        Hey guys, so today I am going to explain to you what our code is doing and how to work this for each forum version. First off in all our threads whenever a new post is shown we have these images that are used as a legend to tell users that it has a new post. Honestly to me it doesn't get their attention to much, as well as images can become ugly. 
        This will grab your users attention more, by looping through all your threads and checking the image title, if you go into your ACP and delete the images for the legends this will take its place, or you can use both together. Below I have all forum version codes out for you. These codes have been tested and are fully functional. 


      [hc = PunBB Highlighter]
      Code:
      var newT = $('.tcl .status img');
      for (var i= 0; i<newT.length ; i++) {
       var oldC = newT[i].parentNode.parentNode.parentNode.className;
        var newTop = newT[i].title;
        if(newTop == "New Post") {
        newT[i].parentNode.parentNode.parentNode.className= oldC +' newbg';
        } else if (newTop == "Hot Posts") {
       newT[i].parentNode.parentNode.parentNode.className = oldC +' hotbg';
        } else {
         //do nothing
        }
      }
      [/hc]


      [hc = PhpBB2 Highlighter]
      Code:
      var newT = $('.forumline .row1 img');
      for (var i= 0; i<newT.length ; i++) {
       var oldC = newT[i].parentNode.parentNode.className;
        var newTop = newT[i].title;
        if(newTop == "New Post") {
        newT[i].parentNode.parentNode.className= oldC +' newbg';
        } else if (newTop == "Hot Posts") {
       newT[i].parentNode.parentNode.className = oldC +' hotbg';
        } else {
         //do nothing
        }
      }
      [/hc]


      [hc = Invision Highlighter]
      Code:
      var newT = $('.ipbtable .status img');
      for (var i= 0; i<newT.length ; i++) {
       var oldC = newT[i].parentNode.parentNode.parentNode.className;
        var newTop = newT[i].title;
        if(newTop == "New posts") {
        newT[i].parentNode.parentNode.parentNode.className= oldC +' newbg';
        } else if (newTop == "Hot posts") {
       newT[i].parentNode.parentNode.parentNode.className = oldC +' hotbg';
        } else {
         //do nothing
        }
      }
      [/hc]

      [hc = PhpBB3 Highlighter]
      *NOTE
      PhpBB3 you have to check your icons ending url, as you can see below I used new_cat.gif and hot_cat.gif, these are what you will need to look for specifically for your ending image url.


      Code:
      var newT = $('.topiclist .icon');
      for (var i= 0; i<newT.length ; i++) {
       var oldC = newT[i].parentNode.className;
        var newTop = newT[i].style.background;
        if(newTop !== "new_cat.gif") {
        newT[i].parentNode.className= oldC +' newbg';
        } else if (newTop !== "hot_cat.gif") {
       newT[i].parentNode.className = oldC +' hotbg';
        } else {
         //do nothing
        }
      }
      [/hc]

      Similar topics

      -

      » remove buttons topic
      Share this post on: reddit

      genau
      preview????

      Post April 9th 2013, 10:50 pm by genau

      Mr.EasyBB
      We used this for a while on EasyBB, we actually still have it but that part of the page isn't really visible on here unless you type the link in it.

      Post April 9th 2013, 10:59 pm by Mr.EasyBB

      ngoctuan_py
      oh!! thanks Smile

      Post April 25th 2013, 3:10 am by ngoctuan_py

      Mr.EasyBB
      You are welcome

      Post April 25th 2013, 2:09 pm by Mr.EasyBB

      Daemon
      Oh thanks Wink'

      Post May 1st 2013, 9:55 am by Daemon

      Post  by Sponsored content

      View previous topic View next topic Back to top  Message [Page 1 of 1]