View Full Version : [Release] Alternating Row Colors Instead of Columns
amykhar
06-16-2003, 12:43 PM
Rather have your rows alternate colors instead of your columns on your forumhome?
No prob.
If you do not wish to replace the entire template, what you should do conceptually is to change any instance of the class=alt1 or class=alt2 to the conditional:
<if condition="$forum['displayorder'] % 2 == 0">class="alt2"<else />class="alt1"</if>
The KEY to this working right is to make sure your forumdisplay orders are set correctly.
Amy
Tony G
06-16-2003, 12:46 PM
I think the alternating colors look alot better this way, nice mod amy! Good to see you here at vBT! :D
amykhar
06-16-2003, 12:48 PM
Than you :) I had help with the mechanics of it from Ed Sullivan last night. Once he told me math was possible in the conditionals, I realized that we are going to be able to have a lot of fun without ever having to install any hacks.
Amy
Tony G
06-16-2003, 12:56 PM
Definently, Template modifying is just as much fun as hacking can be, and easier to save on upgrades. Has all the plus's. :D
imported_Synicide
06-19-2003, 06:17 PM
Yes, that does look a whole lot better than the alternating columns, better readibility. Great job Amy, looking forward to seeing more from you.
filburt1
06-19-2003, 06:21 PM
Than you :) I had help with the mechanics of it from Ed Sullivan last night. Once he told me math was possible in the conditionals, I realized that we are going to be able to have a lot of fun without ever having to install any hacks.
Amy
Indeed, I'm tricking out my forumhome everywhere to make the descriptions half-automated :D
Bad Bunny
07-03-2003, 06:56 AM
Supersweet. Gonna try this out once I am awake. Much easier on the eyes.
Icheb
07-27-2003, 04:59 PM
How would this be possible for the forums and threads on forumdisplay?
Zachery
07-28-2003, 09:31 AM
i want to do this in my post bit, i want it to show the oppisite alt color.
like i used to have it in my at my vb2.x forums
any idea?
Martin CX
07-28-2003, 07:51 PM
How would this be possible for the forums and threads on forumdisplay?
It would be with regards to the forums on forumdisplay, I don't think you would need to do anything more to get the same effect.
The threads, however, would demand an entirely different approach, and I'm not sure you would be able to do anything like it without hacking. Unfortunately. I would very much like to create such an effect for the threads on my forum display.
Zachery
07-28-2003, 08:33 PM
i want to do this in my post bit, i want it to show the oppisite alt color.
like i used to have it in my at my vb2.x forums
any idea?
anyone? ... :D i just wanna try to make my new forums look abit like my old ones
imported_S.Shady
07-29-2003, 12:42 AM
anyone? ... :D i just wanna try to make my new forums look abit like my old ones
what do you mean your picture and description of what you want is too vegue (sp ?) (goes to look it up) its spelled vague :)
Zachery
07-29-2003, 12:48 AM
lets say the background is alt1 i want the tables bg in my postbit to be alt2 and vise versa, look at my release for what my postbit looks like
Cal Poly Forum
08-17-2003, 04:56 AM
Is this hack available for version 2.3.2?
I could not find one. And no one answered my previous request. :confused:
Zachery
08-17-2003, 04:58 AM
first its not a hack, and two i think it would have to be a hack to be done on vb 2.3.2 i belive.
go with vb3 imo :D its great
Tony G
08-17-2003, 05:36 AM
Yeah, it would most likely need a hack for the v2 versions. Look at vBulletin.org.
chaosmint
12-08-2003, 07:30 PM
thanks... but yeah, I would like to do this in threadview.
Is there no counter variable we can access to accomplish the name?
arn
Marulatree
12-09-2003, 12:00 PM
Is there going to be a gamma release soon?
Zachery
12-09-2003, 01:08 PM
Chaos its possible, i think i can release a mod for it
Marulatree, i belive it doesnt work quite correctly due to how it was originaly done
Mijae
12-09-2003, 11:10 PM
Is there going to be a gamma release soon?
I want it for gamma too! Should I just use <if> statements and replace everything on my own?
Floris
12-10-2003, 08:51 AM
Doesn't the code in the first post work on gamma? Did you try?
gmarik
12-10-2003, 10:05 AM
Rather intersting
Marulatree
12-10-2003, 01:00 PM
Doesn't the code in the first post work on gamma? Did you try?
Nope it messes up the tables
Mijae
12-10-2003, 02:04 PM
Since gamma changed the tables around, it does mess them up :D
chaosmint
12-10-2003, 05:08 PM
Chaos its possible, i think i can release a mod for it
If you could that would be great. I think the alternating horizontal colors would be most useful in the threadview
arn
Zachery
12-10-2003, 05:24 PM
stoped working after it was first released
yoyoyoyo
07-09-2005, 01:39 PM
I got this to work in 3.0.7 by making one change:
in the replaced version of the "forumhome_forumbit_level2_post" template:
img src="$stylevar[imagesfolder]/$forum[onoff].gif" alt="$forum[onoff].gif
should be:
img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="$forum[onoff].gif"I am attaching the entire revamped forumhome_forumbit_level2_post template.
NOTE: There is still a forum status icon and last column layout placement issue, but the alternating rows are working. See attached screenshots.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.