The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Possible to count number of loops through a template?
I'm trying to customize the navbar breadcrumb bit, which by default looks like:
Quote:
Code:
Sitename -Forum -Forumname -Threadname I can't think of a way to do it in CSS -- that is, assign an increasingly right-positioned class to each successive div -- because the navbar template calls the navbar_link template which just generically outputs code for each link portion, making them all the same. It would be perfect if there was some way to insert a counter in the navbar_link template, and increase it by 1 on every pass through when called for a given instance of the navbar template, because then I could do something like class="navbar_$counter" and then have 3 or 4 classes, .navbar_counter1 through .navbar_counter4, each with an increasingly larger right-position. But I suspect this isn't possible. Is it? (I tried hardcoding the navbar code right into the navbar template so I could control the classes used, but then realized this isn't as portable as I'd like. For example, I'd have to also make it aware of the breadcrumb used in the usercp pages.) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|