View Full Version : Where is the template for categories?
acidburnz
12-22-2007, 02:20 PM
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
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 1198343452 at 1198343452 ---------------
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 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 1198343923 at 1198343923 ---------------
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 1198344055 at 1198344055 ---------------
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
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
That's exactly what my question is, which template has the tcat class.
That was answered right here:
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
That was answered right here:
:erm: i can't find that :(
Lynne
12-22-2007, 05:36 PM
: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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.