vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Where is the template for categories? (https://vborg.vbsupport.ru/showthread.php?t=165862)

acidburnz 12-22-2007 02:20 PM

Where is the template for categories?
 
Hey guys,

I'm trying to skin my forum index here: http://www.uwstudios.com/forums/

As you can see, the red gradient has become a mess. I'm looking for the template for the subcategories (Mechnet Online, Search For Celestia) so I can simply add an alternate css tag for it and change the styling.

Does anyone know? Thanks,

Karan

edit: is it just me or does vB only support 2 levels for forums? :S

Floris 12-22-2007 03:08 PM

What's a mess? It looks fine?

acidburnz 12-22-2007 03:08 PM

Quote:

Originally Posted by Floris (Post 1406852)
What's a mess? It looks fine?

Thanks for the critical feedback Floris, but can you still tell me how?

Floris 12-22-2007 03:09 PM

Oh btw, yes, vB has the category, the forum and sub forum level. A third level has to be manually added. it is supported, just not by default. let me find the info

--------------- Added [DATE]1198343452[/DATE] at [TIME]1198343452[/TIME] ---------------

By default, vB only allows a forum depth of 2 to be dispayed (this includes categories.) To change this:

1. Admin CP -> Options -> vBulletin Options -> Forum Listings Display Options -> Depth of Forums -> Forum Home -> 3

2. Manually create new templates to increase the forums displayed. You have to add template forumhome_forumbit_levelx_post and template forumhome_forumbit_levelx_nopost for each level past 2, replacing the x with the level number. For instance:

forumhome_forumbit_level3_nopost
forumhome_forumbit_level3_post
etc.

Copy the contents of the other templates ('1' or '2') into these new templates. Then change the 'Depth of Forums' setting in the Admin CP to the appropriate number.

Repeat as necessary for whatever depth you want.

acidburnz 12-22-2007 03:11 PM

Lol, you're just beating bout the bush ain't ya XD

Again:

Okay lemme make this a bit clearer.

1. Go here: http://www.uwstudios.com/forums/
2. Notice how
Quote:

Mechnet Online - Sub-Forums: Announcements
Search For Celestia
have the same gradient bkg as the main category headers?

3. How do i change it so that they don't, and i can separately style the above said sub-category listings

I'm assuming I have to go into the template that deals with listing the said sub-categories, add my own css id/class as apposed to using the same one used for the main category headings. What i'm asking is where this template is exactly.

Floris 12-22-2007 03:16 PM

No, I am not. I am questions one by one - trying to understand what you need. While looking up the data for you.

--------------- Added [DATE]1198343923[/DATE] at [TIME]1198343923[/TIME] ---------------

btw,

you can turn on 'show template names' in the admincp, so you can load your site then right click > view source > and see what template is used to generate that portion of the code.

--------------- Added [DATE]1198344055[/DATE] at [TIME]1198344055[/TIME] ---------------

Quote:

Originally Posted by acidburnz (Post 1406857)
Lol, you're just beating bout the bush ain't ya XD

Again:

Okay lemme make this a bit clearer.

1. Go here: http://www.uwstudios.com/forums/
2. Notice how
have the same gradient bkg as the main category headers?

3. How do i change it so that they don't, and i can separately style the above said sub-category listings

I'm assuming I have to go into the template that deals with listing the said sub-categories, add my own css id/class as apposed to using the same one used for the main category headings. What i'm asking is where this template is exactly.

If they are both a category, then they're using tcat as class. You have to identify the forum with <if condition="$forumid == 'x'">class="mytcat"<else />class="tcat"</if> and make a mytcat class

acidburnz 12-22-2007 04:21 PM

Quote:

Originally Posted by Floris (Post 1406861)
If they are both a category, then they're using tcat as class. You have to identify the forum [did you mean template?]with <if condition="$forumid == 'x'">class="mytcat"<else />class="tcat"</if> and make a mytcat class

That's exactly what my question is, which template has the tcat class.

Lynne 12-22-2007 05:04 PM

Quote:

Originally Posted by acidburnz (Post 1406911)
That's exactly what my question is, which template has the tcat class.

That was answered right here:
Quote:

Originally Posted by Floris (Post 1406861)
btw,

you can turn on 'show template names' in the admincp, so you can load your site then right click > view source > and see what template is used to generate that portion of the code.


acidburnz 12-22-2007 05:11 PM

Quote:

Originally Posted by Lynne (Post 1406931)
That was answered right here:

:erm: i can't find that :(

Lynne 12-22-2007 05:36 PM

Quote:

Originally Posted by acidburnz (Post 1406940)
:erm: i can't find that :(

Admin CP > vBulletin Options > General Settings > Add Template Name in HTML Comments


All times are GMT. The time now is 07:32 AM.

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.01144 seconds
  • Memory Usage 1,739KB
  • 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
  • (8)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