The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Alternating Rows... not columns
I see this has been asked a couple times with no real answer for vb3 or 3.0.1.
I found a hack that alternates rows in the forumhome_level2_post template but... does anyone know haw to alter the forum display so that the alternating rows carry over to the thread views rather than just on the forum home? Thanks. |
#2
|
||||
|
||||
It can be done with a template modifcation..
|
#3
|
||||
|
||||
<a href="http://www.vbulletin.com/forum/showthread.php?t=100759" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=100759</a>
|
#4
|
|||
|
|||
Zachery, I've applied that template modifaction. it adjusts the forum home but it does not adjust the forum display template. Wha tthis means is that the rows alternate on the forum home only. Threads within forums do not alternate rows. They are still alternating columns. I'd like to get threads to alternate rows as well as the forum home.
|
#5
|
|||
|
|||
Okay I got closer. By adding the if statement using $thread[threadid] in the threadbits template I got alternating rows. However, the colors are assigned by thread ID so they dont' alternate properly. If someone posts to a thread, it moves up in the list, but retains it's originally assigned class.
So.. with this... Code:
<if condition="$thread[threadid] % 2 == 0">class="alt2"<else />class="alt1"</if> Thanks. |
#6
|
||||
|
||||
what needs to be done is similar to what is done assigning numbers to posts in a thread. postid's are not consecutive either, but posts have consecutive numbers in the postbit.
You need to mimic that code in forumdisplay when creating the list of threads. Amy |
#7
|
|||
|
|||
Actually I got is sorted thanks to daemon over at vbulletin.com. It actually needed a simpler code in the threadbits template.
add: Code:
<if condition="exec_switch_bg()"></if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|