The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Alternating Colored Rows in vBulletin 4
Attachment 125935
1. Edit template forumhome_forumbit_level2_post Add the following code at the top of the 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> Now change the first line (first line before inserting the above code) from Code:
<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2"> Code:
<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 {vb:raw $rowClass}"> Add the following at the top of forumhome_forumbit_level1_post and forumhome_forumbit_level1_nopost template. Code:
<vb:if condition="$altrow =& $GLOBALS['altrow']"></vb:if> <vb:if condition="$altrow = 0"></vb:if> Edit forumrow_firstentry_background and forumrow_background stylevars and make it transparent by deleting Background Color and Background Image. 4.Edit CSS Now add the following CSS in the additional.css template. Code:
.altodd {background-color:#eee;} .alteven {background-color:#fff;} --------------- Added [DATE]1309152509[/DATE] at [TIME]1309152509[/TIME] --------------- 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> Change Code:
<li class="threadbit {vb:raw thread.statusstring} Code:
<li class="threadbit {vb:raw $rowClass} {vb:raw thread.statusstring} Now add the following CSS in the additional.css template. Code:
.altodd {background-color:#eee;} .alteven {background-color:#fff;} |
#2
|
|||
|
|||
If you are referring to the text that is displayed when hovering over a thread open the Forum Display Templates in Style Manager, then navigate to FORUMDISPLAY. Double click it and search for the following:
Code:
<vb:if condition="$foruminfo['description']"><p class="description">{vb:raw foruminfo.description}</p></vb:if> If you are referring to the colors.. that is simply a style issue. I do not see anything different on the image above from default vBulletin other than the two things I listed above |
#3
|
|||
|
|||
This is the closest thing I can think of...
Style Vars -> Forums -> Forumhome_background Forumhome_firstentry_background Just play around with those 2, should be able to get what you want. |
#4
|
|||
|
|||
<a href="http://www.go4expert.com/forums/showthread.php?t=25160" target="_blank">http://www.go4expert.com/forums/showthread.php?t=25160</a>
for threadbit like you wanted. you can see how to do it at the same thread page no2. |
Благодарность от: | ||
bskr84 |
#5
|
|||
|
|||
yes thats the hack. intermediate users only :-)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|