1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Alternating Colored Rows in vBulletin 4 [No Plugin]

Discussion in 'Content Management System' started by shabbir, Mar 5, 2011.

  1. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    Probably I cannot help because the same changes done to my fresh vB 4.1.3 worked fine. Also I did the threadbit modification and gave you the instructions. I also don't use vB 4.1.3 online.
     
  2. Adam H

    Adam H New Member

    Joined:
    Apr 30, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0

    Weird, Ill try it on another live install when i get time, for now i have just added a background colour to the element in the forumdisplay template so its the same colour as one of the alternatives. It will look ok until i work out whats wrong.

    Thanks for the help though. Much appreciated.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    Do let me know if you have issues on the live site and I will be more than happy to have a look.
     
  4. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    hello,i didnt found this code :
    Code:
    <li id="forum{vb:raw forum.forumid}" class="forumbit_post L2">
    original source code :
    Code:
    <li id="forum{vb:raw forum.forumid}" class="forumbit_post {vb:raw forum.statusicon} L2">
    but im still replace the code... and its working only at forumhome.
    for forum display.its not working....
    and i have a little problem with forumdisplay..
    before delete : rgb(255, 255, 255) at Forum Row Background.
    attachment number1

    after delete : rgb(255, 255, 255) at Forum Row Background. make it transparent.
    attachment number 2


    how to make it work in forumdisplay?
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      7.5 KB
      Views:
      1
    • 2.gif
      2.gif
      File size:
      4.9 KB
      Views:
      0
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    Did you follow both the steps because it works for me even in the latest vB 4.x
     
  6. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    yes i follow all steps..but only working in forumhome..forum display.its not working..
    but ,i didnt found this code :
    Code:
    <li id="forum{vb:raw forum.forumid}" class="forumbit_post L2">
    original source code :
    Code:
    <li id="forum{vb:raw forum.forumid}" class="forumbit_post {vb:raw forum.statusicon} L2">
    im still replace the code :
    Code:
    <li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 {vb:raw $rowClass}">
     
  7. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    here copy from : forumhome_forumbit_level2_post

    Code:
    <vb:if condition="$altrow =& $GLOBALS['altrow']"></vb:if>
    <vb:if condition="!isset($altrow)">
        <vb:if condition="$altrow = 0"></vb:if>
    </vb:if>
    <vb:if condition="++$altrow % 2 == 0">
        <vb:if condition="$rowClass = 'alteven'"></vb:if>
    <vb:else />
        <vb:if condition="$rowClass = 'altodd'"></vb:if>
    </vb:if>
    <li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 {vb:raw $rowClass}">
    	<div class="forumrow table">
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    PM Me your forum URL and I will be more than happy to look into it.
     
  9. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
  10. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    I don't have your PM.
     
  11. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    hello,
    Send a message via email to shabbir
    and yahoo messenger..
     
  12. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    I don't use Yahoo. Send me message here in the forums.
     
  13. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    It is working for forum display but for threadbits it is not meant to work but only for forums and not for threads. If you want that refer this post
     
  14. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    okay.but still not change anything
     
  15. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    please check at forum display : Forex Foreign Currencies Exchange Trading Discussion
     
  16. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    It is adding the class to the li and you have to be adding the right CSS as well.
     
  17. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    im not familiar with this.can u give me the guide? i mean the code.
    thanks
     
  18. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    Contact me and I will get that done for you.
     
  19. wolepua

    wolepua New Member

    Joined:
    May 21, 2013
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
  20. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    I have no email from you.
     

Share This Page