The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Row count
Did anything change how row count is done?
PHP Code:
HTML Code:
</td></td></tr><tr> Thanks Steve |
#2
|
||||
|
||||
num_rows is still num_rows. You are missing an end } to your code though.
|
#3
|
|||
|
|||
Nah its there, here is the full snippet:
PHP Code:
|
#4
|
||||
|
||||
If you are just getting "</td></td></tr><tr>" all the time, then perhaps your template is incorrect. I assume you want something else to be input in there which is missing?
|
#5
|
|||
|
|||
If you look at the code I have it set that if there are 2 cats to display then it will and it will add </td></tr><tr> then start a new row but if their is only one it will not throw that out yet, it will use </td> only instead.
|
#6
|
||||
|
||||
Yeah, I get that. perhaps for debugging purposes, you should be spitting $perrow out also to see what it is set to.
|
#7
|
||||
|
||||
Just a suggestion:
Put each cell into an array, and then use array_chunk to get your groups. Much more solid than messing around with counters and stuff. |
#8
|
|||
|
|||
Quote:
Cheers Steve |
#9
|
||||
|
||||
Here's a sample
PHP Code:
|
#10
|
|||
|
|||
Quote:
I'll have to give it a try tomorrow, heading out for a night on the town with the wife. --------------- Added [DATE]1258848871[/DATE] at [TIME]1258848871[/TIME] --------------- BTW, I figured out that I was using wrong code in the template: HTML Code:
{vb:var catc} HTML Code:
{vb:raw catc} |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|