The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Forum ID
Hello there..
How do we identify a forum so we can exclude it from the other forums? By that I mean exclude it in order to style the look of it separately from the rest. In other words, give it a different look to all the others. Example: The image below has a number of subforums within it and it looks a little cramped. I know how to add space inside and around them but if I lengthen the forum to allow for it, all the other forums are affected. Meaning they all get the same height. Where do I find the forum id but more to the point, what formula would I need to apply in additional.css for it to work? Thanks. |
#2
|
|||
|
|||
What you could do is create a new style. You probably want it to be a child of your current style so that if you make changes that apply to all forums, you only have to make them once. Make your changes in the child style, then go to the forum manager and select your new style as the custom style for that forum.
|
#3
|
||||
|
||||
OK, I get what you mean...
Seems a bit of an odd solution but I see the sense in it. I will give it a go.. Cheers for that. |
#4
|
|||
|
|||
I should have added, I don't believe that you can use a conditional in additional.css the way you can in other templates, because the css templates get built into .css files, so it isn't evaluated every time like other templates are.
Edit: well, I guess that's depending on your settings. Maybe it would work if you have it set to not save as files. |
#5
|
||||
|
||||
I see. This is what I thought, so it would be a template edit?
I will try your previous suggestion above to see that goes. Thanks again. |
#6
|
|||
|
|||
Anyway, just for the record (and to answer your original question), if you were to use a conditional in a template, I believe it would be:
Code:
<vb:if condition="$GLOBALS['forumid'] == X">Only in forum X</vb:if> |
#7
|
||||
|
||||
I may well have to use the conditional provided. The previous solution didn't work.
I followed every step but to no avail. Could you tell me which template I edit and where the forum id can be found? Thanks.. |
#8
|
||||
|
||||
What exactly did you try, and how didn't it work.
|
#9
|
||||
|
||||
I tried this suggestion from the post above.
Quote:
|
#10
|
||||
|
||||
You can find the forumid in Forum Manager > click to edit Forum and on the top it gives the forumid.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|