Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
Better Forum Layout
pein87
Join Date: Sep 2008
Posts: 352

by pein87 pein87 is offline 05 Jan 2009

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This code adds the the colum name to the top of the table making it a table head instead of a table body and the post/forumname display is not a table head, its instead been switched to a table body. You bascilly just moved a few things around changed the tags around and deleted some useless code. Now you have the forum leaders colum. Its not good to place this in the forumbits template because each forum would have it at the end, we can add it below it as a seperate table but it would just be floating there since after each forum a space is included. TO fix it we will move it to the bottom of the whats going on area.

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 itAfter the </if>)



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This moves the forum leaders colum below the whats going on box to cap it off and makes your forum look nicer.


Code should look like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now to finish out this project when you save use the save and reload option so your brought back to the template.

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You will still need to do the part with the forum leader part but this is a replacement to fix template upgrades in those versions.
Attached Images
File Type: jpg layout_tutorial.jpg (85.6 KB, 1391 views)
File Type: jpg layout_tutorial2.jpg (82.3 KB, 1258 views)
Attached Files
File Type: txt layout_tutorial.txt (5.3 KB, 27 views)

Last edited by pein87; 11 Jan 2009 at 22:02..
Views: 8324
Reply With Quote
Comments
  #2  
Old 08 Jan 2009, 03:41
StuntFactoryX StuntFactoryX is offline
 
Join Date: May 2006
doesnt this change alot on upgrades? so im assuming this is only good for certain versions?
Reply With Quote
  #3  
Old 08 Jan 2009, 10:28
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Real name: Eric Estrada
There is a simple plugin that does it, what for editing templates...
Reply With Quote
  #4  
Old 09 Jan 2009, 17:55
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
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.
Reply With Quote
  #5  
Old 15 Jan 2009, 16:36
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Real name: Michael
Originally Posted by sensimilla View Post
There is a simple plugin that does it, what for editing templates...
TMS would be more better than using a Plugin instead of

Originally Posted by StuntFactoryX View Post
doesnt this change alot on upgrades?
Once you have TMS installed and the Code has been modified you've never to worry about Upgrades or something like that
Reply With Quote
  #6  
Old 19 Jan 2009, 15:11
gazzak gazzak is offline
 
Join Date: Oct 2006
Can someone please point to this TMS mod as it's impossible to search for 3 letter variables
Reply With Quote
  #7  
Old 19 Jan 2009, 15:37
dyna88 dyna88 is offline
 
Join Date: Dec 2006
Originally Posted by gazzak View Post
Can someone please point to this TMS mod as it's impossible to search for 3 letter variables
http://www.vbulletin.org/forum/showthread.php?t=152931
Reply With Quote
  #8  
Old 30 Jan 2009, 01:09
ali7118 ali7118 is offline
 
Join Date: Jul 2007
Thank you ..

--------------- Added 30 Jan 2009 at 01:10 ---------------

Thank you
__________________
Home | Forums | America News

Last edited by ali7118; 30 Jan 2009 at 01:10. Reason: Auto-Merged DoublePost
Reply With Quote
  #9  
Old 31 Jan 2009, 08:06
Raug Raug is offline
 
Join Date: Apr 2008
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?

Nevermind, I found a way to get close to making them even.

Last edited by Raug; 31 Jan 2009 at 08:52. Reason: Stumbled on a solution
Reply With Quote
  #10  
Old 06 Feb 2009, 21:15
yoksito yoksito is offline
 
Join Date: Nov 2006
thanks.... I wanted to put this code in my style
Reply With Quote
  #11  
Old 18 Feb 2009, 20:04
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Real name: Blue
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.
__________________

My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123
Sports Tipping Mod - coming February 2010 ~ Show your Interest !
Reply With Quote
  #12  
Old 21 Feb 2009, 21:40
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
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?
Reply With Quote
  #13  
Old 08 Mar 2009, 03:24
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Good One, Thank you
__________________
games
Forum Nokia
Reply With Quote
  #14  
Old 09 May 2009, 07:47
Lautaro's Avatar
Lautaro Lautaro is offline
 
Join Date: Jan 2009
Location: United States
Real name: Lautaro Angelico
great, thanks for the tut.
__________________
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Alternate forum Home Display forum layout Sinistra vBulletin 3.5 Template Modifications 31 13 Nov 2009 19:09



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:41.

Layout Options | Width: Wide Color: