The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
'print_cells_row' function, override css
Ok, so i know that setting the third parameter of function 'print_cells_row' will override the alternating css class for the row, however what I want to do is return multiple results, ald alternate as normal, but every other row will alternate, for instance...
Row 1 would be class "alt1" Row 2 would be class "alt1" Row 3 would be class "alt2" Row 4 would be class "alt2" Row 5 would be class "alt1" Row 6 would be class "alt1" and so on... I have been trying to place the following within my while() loop however it's not alternating as i need, since my data for each result must be contained on more than 1 row... PHP Code:
Any ideas? Okie, it took a couple hours, but i figured it out... I had to override the CSS class in the 'print_cells_row' function and redeclare it in my custom function using 'fetch_row_bgclass'. Here's the working one which alternates background colow every TWO rows, as opposed to every row... PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|