Titus
Thu 28th Oct '04, 12:32pm
How can I make vB include two additional HTML bits when a user views a Category?
Ok, this one is going to be a little hard to fix. This is some of the code that I have in my FORUMDISPLAY template.
(see attachment 'trfproblemcode1.txt)
This works as I want it to when a user views a forum (see screenshot ( http://www.vbulletin.com/forum/attachment.php?attachmentid=12028) and when a user views a forum with subforums, topics, and the bottom stuff (see screenshot) ( http://www.vbulletin.com/forum/attachment.php?attachmentid=12027), and when a user views a forum with no subforums, and just topics and bottom stuff (see screenshot) ( http://www.vbulletin.com/forum/attachment.php?attachmentid=12026). However, when a user views a forum with just subforums (eg; in category view), everything is wonked out (see screenshot) ( http://www.vbulletin.com/forum/attachment.php?attachmentid=12025)
This appears to be because vB is not including the top of my box table for the bottom section, and is including only part of the bottom of the box table.
This is the HTML that is outputted from vB (see attachment 'trfproblemcode2.txt). As you can see, not only is the topic list removed (as it should be), but my custom HTML is missing, except for the table ending tags on the bottom.
The bunch of hidden div's are there because I thought vB was including a set number of lines at the end. This was after four hours of trying to figure out what was going on, so... yeah.
Kind of a complicated problem, and I'm sure it wasn't explained well. I hope someone can help me. :) Let me try again...
VB seems to know which 'chunks' of code to include when I view a category by itself. How can I tell it to include two more (the top and bottom of my square tables)? Right now it's removing the top one, and part of the bottom one.
Thanks.
Ok, this one is going to be a little hard to fix. This is some of the code that I have in my FORUMDISPLAY template.
(see attachment 'trfproblemcode1.txt)
This works as I want it to when a user views a forum (see screenshot ( http://www.vbulletin.com/forum/attachment.php?attachmentid=12028) and when a user views a forum with subforums, topics, and the bottom stuff (see screenshot) ( http://www.vbulletin.com/forum/attachment.php?attachmentid=12027), and when a user views a forum with no subforums, and just topics and bottom stuff (see screenshot) ( http://www.vbulletin.com/forum/attachment.php?attachmentid=12026). However, when a user views a forum with just subforums (eg; in category view), everything is wonked out (see screenshot) ( http://www.vbulletin.com/forum/attachment.php?attachmentid=12025)
This appears to be because vB is not including the top of my box table for the bottom section, and is including only part of the bottom of the box table.
This is the HTML that is outputted from vB (see attachment 'trfproblemcode2.txt). As you can see, not only is the topic list removed (as it should be), but my custom HTML is missing, except for the table ending tags on the bottom.
The bunch of hidden div's are there because I thought vB was including a set number of lines at the end. This was after four hours of trying to figure out what was going on, so... yeah.
Kind of a complicated problem, and I'm sure it wasn't explained well. I hope someone can help me. :) Let me try again...
VB seems to know which 'chunks' of code to include when I view a category by itself. How can I tell it to include two more (the top and bottom of my square tables)? Right now it's removing the top one, and part of the bottom one.
Thanks.