Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Simple Left or Right Columns on Every Page Details »»
Simple Left or Right Columns on Every Page
Version: 1.01, by Adam21 Adam21 is offline
Developer Last Online: Jul 2010 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.11 Rating:
Released: 05-27-2007 Last Update: 10-04-2008 Installs: 41
Template Edits
 
No support by the author.

These template edits will allow you to place either left or right column blocks on every page of your forum...

TO HAVE LEFT COLUMN BLOCKS ON EVERY PAGE

Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu)

In the HEADER template,find these codes

Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
	<td align="$stylevar[right]">
		&nbsp;
	</td>
</tr>
</table>
<!-- /logo -->
After it,add these codes after it

Code:
    <table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
    	<tr>

    	<td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">



<!-- ################## Side Column ##################-->
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">

<div class="smallfont" style="line-height:1.5;"><strong>Forum Members: $numbermembers<br />
Total Threads: $totalthreads<br />
Total Posts: $totalposts<br /> 
<br /></strong>
There are <a href="online.php" style="color:#854f99;">$totalonline users</a>
currently browsing forums.</div><

</table>
<!-- ################## /Side Column ##################-->



    	</td>

    	<td valign="top">

Save it and in the FOOTER template,find these codes


Code:
    <br />
    <div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
    <br />

    $spacer_close
    <!-- /content area table -->
Add these codes after it

Code:
    	</td>

    	</tr>
    </table>
SAVE IT AND YOU ARE DONE!Now you add your custom codes between the <!-- ################## Side Column ##################--> comments.The above is just an example only.


TO HAVE RIGHT COLUMN BLOCKS ON EVERY PAGE

Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu)


In the HEADER template,find these codes

Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
	<td align="$stylevar[right]">
		&nbsp;
	</td>
</tr>
</table>
<!-- /logo -->

Add these codes after it

Code:
<table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
	<tr>

	<td valign="top">


Save it and in the FOOTER template,find these codes

Code:
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

$spacer_close
<!-- /content area table -->
Add these codes after it

Code:
	</td>

	<td width="150" valign="top" class="page" style="padding: $stylevar[cellpadding]px;">
		YOUR CONTENT HERE
	</td>

	</tr>
</table>
Save it.Edit the content in your side column exactly like the left column example above



1 last step for either type of installation,


In your Admin CP -> Styles & Templates -> Style Manager -> ? ? -> spacer_open


Replace all the code inside with this codes


Code:
<!-- open content container -->
<if condition="$show['old_explorer']">
	<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"><tr><td class="page" style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
<else />
	<div align="center">
		<div class="page" style="width:100%; text-align:$stylevar[left]">
			<div style="padding:0px $stylevar[spacersize]px 0px $stylevar[spacersize]px">
</if>

Show Your Support

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

Comments
  #42  
Old 10-04-2008, 10:50 PM
punjabi.king punjabi.king is offline
 
Join Date: May 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i add latest threads n polls???
Reply With Quote
  #43  
Old 10-05-2008, 06:07 AM
Adam21 Adam21 is offline
 
Join Date: Apr 2005
Location: In The Network!
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by punjabi.king View Post
how can i add latest threads n polls???
that'll not be possible with template edits.you'll need to create a plug-in to pull the latest threads and polls to place at forumhome and it'll add extra queries.anyway,i think there's a mod already that allows you to display latest threads on forumhome.
Reply With Quote
Reply

Thread Tools

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 01:19 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
  • Page Generation 0.03457 seconds
  • Memory Usage 2,220KB
  • Queries Executed 17 (?)
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
  • (9)bbcode_code
  • (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
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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