Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Content Management System (http://www.go4expert.com/articles/cms/)
-   -   Alternating Colored Rows in vBulletin 4 [No Plugin] (http://www.go4expert.com/articles/alternating-colored-rows-vbulletin-4-t25160/)

shabbir 1May2011 18:29

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Quote:

Originally Posted by Adam H (Post 82554)
Sorry i meant :

forumhome_forumbit_level1_nopost not forumhome_forumbit_level2_nopost

What is your vBulletin version. 3 or 4 and I will give you exact steps.

Adam H 1May2011 19:12

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
that would be amazing thank you, Im using vbulletin 4

shabbir 2May2011 07:06

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
For having alternating colors for your threads add the following code at the top of the threadbit template.
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>

And then edit the first line of the code as follows.
Change
Code:

<li class="threadbit {vb:raw thread.statusstring}
to
Code:

<li class="threadbit {vb:raw $rowClass} {vb:raw thread.statusstring}

Adam H 2May2011 15:36

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Thats great thank you for that , however im still having trouble with the forumdisplay page and the display of the subforums above the threadbit, see image :

imageupload.org/thumb/thumb_32745.png

shabbir 2May2011 17:20

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Can you have a large image because I am not able to understand anything out of that thumb

Adam H 2May2011 17:36

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Sorry please see below,

where i have highlighted in red , is suppose to be a light grey :

tinypic.com/r/20u68tx/7

shabbir 2May2011 20:02

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Your forum has no post and we have not done the changes for forums that don't have posts in it. Try adding one post into that sub forum and then see if it works.

Also I see only one sub forum and for alternating color make them two sub forums

Adam H 2May2011 20:10

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
I have just added posts and added more subforums but its still the same :


tinypic.com/r/vz8twp/7

shabbir 2May2011 20:22

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Can you PM me your forum access and I will be more than happy to help

Adam H 2May2011 22:33

Re: Alternating Colored Rows in vBulletin 4 [No Plugin]
 
Unfortunately not, The forum is being worked on a local machine , not on a server which is online. Its all on vb 4.1.3 on the default fresh install of vbulletin. No edits or mods installed.


All times are GMT +5.5. The time now is 11:24.