PDA

View Full Version : Template explanation please


imported_HexOnxOnx
04 Nov 2003, 03:43
Hi all

I am trying to learn as much as I can now about certain templates. There are four that I don't know the differance of and what each of them do. They are:


forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post

Can someone please explain to me what each one does and in what conditions each one is used? Thanks!

Brad
04 Nov 2003, 04:49
They are the templates that display the html for forums on index.php.

'level 1' templates are used if a forum has no parent forum (ie is not a sub-forum)

'level 2' templates are used if a forum is a sub-forum and its parent forum is not a sub forum.

'no post' is used in forums with 'act as forum?' option checked to no in the admin cp, 'post' forums are used when this option is checked to yes.

Moreover there is a option in the admin cp that determains how many levels deep forums can go on index.php, by default it is set to 2 for preformance reasons (same reason you see no 'level 3' templates). If you set this option to 3 and add forumhome_forumbit_level3_nopost and forumhome_forumbit_level3_post templates to your style level 3 deep forums will display on idex.php.


Hope that explains it for you :)

RixiuS
04 Nov 2003, 07:13
That's very helpful, I've never known that til now, heh. :) ty

imported_HexOnxOnx
04 Nov 2003, 09:51
Thanks Brad.loo! I was looking for an explanation on vB.com but really had no luck. I have been trying to learn all the major pieces that make up the basic style of a forum. This will definately help!