Better Forum Layout
1 Attachment(s)
How to seperate your forums for a cleaner, more appealing skin/style.
To start for those who arent good with xhtml never fear no additional coding will be used its pretty much a search, move, and delete deal. Open you forumhome template to your default theme. I noticed that some skins had it so each forum was seperateed so with a bit of playing around and code reading I figured out how to do it and I would like to share with with my fellow members. Search for <!-- main --> take note of all the code between the <!--main --> <!--/main --> comments thats the code will be changing, feel free to copy this to a txt file if you wanna play with it later on. Notice the $forumbits variable, that is what maks up your entire forum on forumhome. Now copy this to a text document and save the file. DO NOT CUT AND PASTE! When you save you`ll see a bunch of forumhome templates. Search for this template: forumhome_forumbit_level1_nopost open this template this is what we will be mostly editing. See how incomplete this template is? Thats because its what your software prints each time you make a new forum. Ok I`ve already done the edit for you but to explain it the standard vbulletin skin has the $forumbits variable evaled to the forumhome_forumbit_level1_nopost template. Clear the entire forumhome_forumbit_level1_nopost template and add this code: PHP Code:
Open forumhome template and find: $template_hook[forumhome_wgo_pos5] This is near the end right before this: </table> <br /> <!-- end what's going on box --> Place this code right above it:(After the </if>) PHP Code:
Code should look like this: PHP Code:
Find: <!-- main --> Delete everything after this all the way till you see: <!--/main --> Next add this in between the <!--main --> and <!-- /main --> comments. $forumbits $forumhome_markread_script so it should look like this: <!--main --> $forumbits $forumhome_markread_script <!-- /main --> Next save and enjoy your newly styled forum now you can make your defaut theme into a nice new skin using vbulletin's built in style manager. Images provided to see the final out come and attached txt file with info aswell for easy access for those like me and cant be online much. Also tiny green check marks in images means valid xhtml transitional. I use a firefox plugin with and sgml and xml/xhtml validater. UPDATED If your making the change to 3.7.5 or any of the 3.8.x versions use this instead of the above forumhome_forumbit_level1_nopost PHP Code:
|
doesnt this change alot on upgrades? so im assuming this is only good for certain versions?
|
There is a simple plugin that does it, what for editing templates...
|
It will stay the same on all versions except the newest havent had time to fix it ti work with 3.7.5 and 3.8.x I will and will update this if you added it notice when you upgrade it says revert templates.
|
Quote:
Quote:
|
Can someone please point to this TMS mod as it's impossible to search for 3 letter variables :mad:
|
Quote:
|
Thank you ..
--------------- Added [DATE]1233277810[/DATE] at [TIME]1233277810[/TIME] --------------- Thank you |
<span style="text-decoration: line-through">What determines the width of the "Last Post" column on the forumhome? I noticed that on my board as well as others with a similar layout have varying widths. Is there a way to make it uniform?</span>
Nevermind, I found a way to get close to making them even. |
thanks.... I wanted to put this code in my style
|
Ok been working thru this.
However I only wish to get one feature... That being in $forumbits I wish to add at the end of each displayed forum on forumhome, a collapseobj button. So that each forum, can be expanded and contracted on forum home, allowing our users to customize the forum as they require. If I can get that working, I can then set about moo-tooling it to concertina up and down as is needed. Any suggestions please. |
Wait let me get this right you wont to add a new collaspable object icon to your forums so that your users can customize which forums tehy wont to view?
|
Good One, Thank you
|
great, thanks for the tut.
|
All times are GMT. The time now is 04:34 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|