Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Separate forums on forumhome, category spacing Details »»
Separate forums on forumhome, category spacing
Version: 1.00, by SleekSkins SleekSkins is offline
Developer Last Online: Jun 2011 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 09-28-2006 Last Update: 10-22-2006 Installs: 60
Template Edits
 
No support by the author.

This modification will separate the forum tables on your forumhome, a screenshot is attached.
To fully understand this modification, basic HTML knowledge is required. You can download the complete XML file from the right if you would like to install this right away (upload the XML file in the Styles & Templates section of your Admin CP).
Notice: This modification will not work properly if you use subcategories (category with parent category) or stand-alone forums (forum with no parent category, on forumhome). Subforums will work fine, ofcourse.

Modified templates
  • FORUMHOME
  • forumhome_forumbit_level1_nopost

Forum Home Overview
Open the 'Forum Home Templates > FORUMHOME' template, we only need to edit the area between the <!-- main --> tags. Here's the default code:

HTML Code:
<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
	<if condition="$show['guest']">
	<!-- guest welcome message -->
	<tr>
		<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
	</tr>
	<tr>
		<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
			<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
		</td>
	</tr>
	<!-- / guest welcome message -->
	</if>
	<tr align="center">
	  <td class="thead">&nbsp;</td>
	  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
	  <td class="thead" width="175">$vbphrase[last_post]</td>
	  <td class="thead">$vbphrase[threads]</td>
	  <td class="thead">$vbphrase[posts]</td>
	  <if condition="$vboptions['showmoderatorcolumn']">
	  <td class="thead">$vbphrase[moderator]</td>
	  </if>
	</tr>
</thead>
$forumbits
<tbody>
	<tr>
		<td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
			<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
			<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
			<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
		</strong></div></td>
	</tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->
Everything between the <!-- main --> tags is one table. We are going to separate this into multiple tables.
The above code contains:
  • The guest welcome header.
  • The 'forum, last post, threads, post' area.
  • The category and forums rows ($forumbits).
  • The 'mark forums read' and 'view forum leaders' links.

Forum Home Changes
What has to be changed:
  • Guest welcome header should have it's own table.
  • Delete the 'forum, last post, threads, post' area.
  • Bottom links need their own div

Forum Home Result
Here's the final code:

HTML Code:
<!-- main -->
<if condition="$show['guest']">
<!-- guest welcome message -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
	<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
		<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
	</td>
</tr>
</table>
<br />
<!-- / guest welcome message -->
</if>


$forumbits


<div class="tborder" style="padding: $stylevar[cellspacing]px;">
<div class="tfoot smallfont" style="text-align: center; font-weight: bold; padding: $stylevar[cellpadding]px;">
	<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
	<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
	<a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
</div></div>
$forumhome_markread_script
<!-- /main -->
==========

Forum Bit Overview
Now, open the 'Forum Home Templates > forumhome_forumbit_level1_nopost' template. This is the default code:

HTML Code:
<tbody>
	<tr>
		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
		</td>
	</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
As you may have noticed, this code is a table row. Because we got rid of the table surrounding this table row (in the FORUMHOME template), we should now make this code into a complete table.

Forum Bit Changes
What has to be changed:
  • Add table open tag
  • The 'forum, last post, threads, post' area should be pasted before the forum rows.
  • Add table close tag
  • Add br tag at the end to create a space between the tables.

Forum Bit Result
This is the final code:

HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
	<tr>
		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
			<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
		</td>
	</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
	<tr align="center">
	  <td class="thead">&nbsp;</td>
	  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
	  <td class="thead" width="175">$vbphrase[last_post]</td>
	  <td class="thead">$vbphrase[threads]</td>
	  <td class="thead">$vbphrase[posts]</td>
	  <if condition="$vboptions['showmoderatorcolumn']">
	  <td class="thead">$vbphrase[moderator]</td>
	  </if>
	</tr>
$childforumbits
</tbody>
</if>
</table>
<br />
That's it, these two template modifications are enough to get the desired effect of separated forum rows.
Are you using this modification? Press INSTALL.

Bas ten Feld
www.sleekskins.com

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-26-2007, 03:45 PM
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Location: Portugal
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank's - Installed and working fine.
Reply With Quote
  #23  
Old 01-26-2007, 05:18 PM
killerkraft's Avatar
killerkraft killerkraft is offline
 
Join Date: Mar 2006
Location: Portugal
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by killerkraft View Post
Thank's - Installed and working fine.
Actually i did unistall because of some problems in display.

Sorry.
Reply With Quote
  #24  
Old 07-24-2007, 03:22 PM
Ahmed_Eissa Ahmed_Eissa is offline
 
Join Date: Jul 2007
Location: UK
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I'm really wana put this in my forum. Can this work under vBulletin 3.6.7 PL1?

Thank you

Ahmed
Reply With Quote
  #25  
Old 08-09-2007, 07:09 PM
rapidphim rapidphim is offline
 
Join Date: Feb 2007
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
Can someone please upgrade this to 3.6.8 and make sure the subforum display correctly? Thanks!
Reply With Quote
  #26  
Old 06-04-2008, 03:17 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi! I just think that this Mod is GREAT!!! :up:

The problem is that I can't import in my vb (v 3.6.10)

Is there a way to import this Mod in vb 3.6.10??? Is there any kind of update to this Mod?

Thank you very much! :up:
Reply With Quote
  #27  
Old 08-01-2008, 08:25 AM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi again everybody!

Is there any news for this mod?

How does it works on vB 7.7.x?



Thank you! :up: :up:
Reply With Quote
  #28  
Old 02-14-2009, 02:29 AM
timscarlet timscarlet is offline
 
Join Date: Sep 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello, i have followed the instructions to make category spacing for forums, and also backed up both the forum home templates (text copy and paste), and no forums are appearing! they are still in the forum manager, but the can't see them on the webpage!

and tried to refer back to original text in template, but still no forums! they are gone!

but again, i found out this is a mod for 3.6 and i have found 3.7

please help, my forum has no forums categories now! no forum at all!

Tim
Reply With Quote
  #29  
Old 10-10-2009, 06:56 AM
CapitanoN6 CapitanoN6 is offline
 
Join Date: Nov 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

run on 3.8?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05201 seconds
  • Memory Usage 2,324KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete