vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Forum ID (https://vborg.vbsupport.ru/showthread.php?t=311093)

DemOnstar 05-06-2014 07:10 AM

Forum ID
 
1 Attachment(s)
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.

https://vborg.vbsupport.ru/attachmen...1&d=1399367191

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.

kh99 05-06-2014 07:24 AM

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.

DemOnstar 05-06-2014 07:34 AM

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.

kh99 05-06-2014 07:37 AM

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.

DemOnstar 05-06-2014 07:52 AM

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.

kh99 05-06-2014 08:01 AM

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>

DemOnstar 05-06-2014 08:19 AM

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..

Zachery 05-06-2014 03:02 PM

What exactly did you try, and how didn't it work.

DemOnstar 05-06-2014 03:15 PM

I tried this suggestion from the post above.

Quote:

Originally Posted by kh99 (Post 2496406)
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.

It seemed like an odd but feasible solution but it had no effect. Obviously, I will try it again to make sure I followed the correct procedure as I couldn't understand why it didn't work.

Lynne 05-06-2014 04:14 PM

You can find the forumid in Forum Manager > click to edit Forum and on the top it gives the forumid.


All times are GMT. The time now is 11:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01865 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete