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  
  • RegisterRegister  
  • Log inLog in  
  • September 2017
    MonTueWedThuFriSatSun
        123
    45678910
    11121314151617
    18192021222324
    252627282930 

    Calendar Calendar

    Search
     
     

    Display results as :
     


    Rechercher Advanced Search

    Shopmotion


    Who is online?
    In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

    None

    Most users ever online was 22 on June 26th 2013, 6:10 am
    RSS feeds


    Poll
    Top posting users this week


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

    avatar

    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]
    Share this post on: Excite BookmarksDiggRedditDel.icio.usGoogleLiveSlashdotNetscapeTechnoratiStumbleUponNewsvineFurlYahooSmarking

    avatar
    preview????

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

    avatar
    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 on April 9th 2013, 10:59 pm by Mr.EasyBB

    avatar
    oh!! thanks Smile

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

    avatar
    You are welcome

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

    avatar
    Oh thanks Wink'

    Post on 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]