The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Detecting Uppermost Forum
"Hey look! It's that guy! Whatisname...?"
Just stopped by to ask a question about this old version of vB. Was there ever a way to detect the uppermost forum on a given forum page? I may have asked this years ago, but I don't think anyone knew of a way then. What I'd like to do is use a conditional to place a block of code in forumhome, but only above the top forum on a page. Not every forum on the page. Similar to the way <if condition="$post['isfirstshown']"works with the first post on a page. I tried some variations, but none seemed to work without actually putting in the forum IDs, and I'd like to streamline that as much as I can. |
#2
|
|||
|
|||
I probably don't understand what you're asking, but couldn't you edit the FORUMHOME template and put your code above $forumbits?
|
#3
|
||||
|
||||
Probably misleading that I said forumhome. Specifically, I meant forumhome_forumbit_level1_nopost. It's repeatedly used on forumhome.php. I've edited the template, but because of the way the template pieces itself together, the code for the very first forum listed on that page is invalid. Open tags. Currently I'm using an if condition that closes the tags out based on the IDs of every category that will be the top one. But I also have to include the IDs of categories that will be the top forum when viewing a subforum. So forum management can become kind of a pain at times, having to edit the templates each time it's needed. I was wondering if vB had a little known if condition or something that knew when a category or forum at the top of a page was the first one.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|