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

Floris 12-22-2007 05:44 PM

log from irc in case you couldn't type it over

you said vb was only 1 of the 2 to support it
-----

You can set a category
You can set a forum below it.
This is what it shows on index.php by default.
Now
If you add sub forums to this forum (note: not category)
Then that's another level deep.
vB supports this.
Go to the acp>options> forumdisplay or something, and forum depth, set it to 1 1 2
But, if you want to show ANOTHER level deep, level 3, thenyou have to customize a template, i posted the instructions in vborg thread.
And then you can show forums below that sub forum
So you will then have
- category
|-- forum
|-- -- sub forum
|-- -- -- another sub forum
- second category
forum with no parent is level 0 (none)
forum with a parent is level 1 (has a parent)
forum with a child as parent is level 2 (parent is the level1 parent)
forum with another child below parent is level 3 (parent is child of above level2 parent)
So
Write down how you want your frums to show

# category A (l0)
- forum A (l1)
- forum B (l1)
--- forum 1 below forum B (l2)
# category B (l0)
- forum C (l1)
--- forum 2 below forum C (l2)
--- forum 3 below forum C (l2)
- forum D (l1)
--- forum 4 below forum D (l2)
------- forum 5 below forum 4 (l3)

To get category A to show on index.php you keep default vb settings
To get category B to show, you can keep default vb settings
but to show the sub forums 1 2 and 3 on index.php you have to change forum depth to 1 1 2
to get forum D to show, default is fine, to get sub forum, change it to 1 1 2
and to get the third level to show, follow those instructions i posted in the thread

acidburnz 12-22-2007 07:45 PM

Okay thanks all :D


All times are GMT. The time now is 12:56 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.01150 seconds
  • Memory Usage 1,748KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete