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
Fixed Sidebar On All Pages (left side) Details »»
Fixed Sidebar On All Pages (left side)
Version: 1.00, by peterska2 peterska2 is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.6.2 Rating:
Released: 10-09-2006 Last Update: Never Installs: 44
Template Edits
 
No support by the author.

This modification provides a fixed sidebar on the left side of your forums.

In IE7 and Firefox, the sidebar scrolls to remain stationary on the page. However, in IE6 it works as a normal sidebar and moves with the content.

Installation instructions are in the attached text file.




FAQ's

I've got it installed, how do I edit it?
In the header template you will find the main body of the column. This is in a tabular format consistant with all content in vBulletin.
By default I have included one (1) heading and eight (8) content rows.
To edit these locate the text Heading in the header template and replace it with whatever you wish to have it say. Repeat the process for the content.

It's too wide, can I make it narrower?
It's too narrow, can I make it wider?

Yes this is possible. However, it requires a few changes to the code not just tot he table with in the header template.
Start by changing the with in your header template, then in the additional CSS definitions change the 160 in the navigation section to the same as your width of your table, and the 165 in the content section to the width of your table plus 5.

The top of the column overlaps my header.
The top of my column is not in line with my navbar.

In the additional CSS definitions find
Code:
top:105px;
Change the number as appropriate for your style. You may need to experiment with this. The default value is correct for on the default vBulletin style.
Remember that the lower down the page your column sits, the less content you can place in it (see why do I need to watch the height of my content?).

Why do I need to watch the length of my content?
Because this sidebar stays in place when the forums scroll, it is important to pay attention to the length of the content. If you fill your side column with content based on your screen resolution, then anything at the bottom will be hidden from users with a smaller resolution. In total, the length of your column plus the top margin (default 105) should not exceed 580px. This is to allow for users with an 800x600 screen resolution.

Can you release this as a plugin/product?
No. Due to the additional CSS definitions requirements it is not possible to release this as a product or plugin. I have no intention of attempting this further in the near future.

So you are not releasing it as a product. Does that mean that someone else can?
Can I translate this modification?
Can I redistribute this modification?

Any ports of this modification to other versions or to be a product will be carried out by myself. No permission is given for ports, translations, or distributions. The only exception to this is translation for release at vBHacks-Germany.org

Are there any plans for a right sided version?
Yes. However, due to current time restraints (and current lack of internet access) this will not happen until later in the year. Please don't keep asking about it, when I have done it you will all know about it.

This is released for 3.6.2 but I run 3.x.x. Can I still use it?
This has been tested only on 3.6.2 but as it is a template modification, there is no reason why it shouldn't work on any site running vBulletin 3.x.x



Thats all the boring stuff out of the way.

If you use this modification please click install. By clicking install you will be notified of any updates, bug fixes, and other important information relating to this release.

If you like this modification, please click nominate for modification of the month. It might only be a little template mod, but I'm quite proud of this one.



The attached screenshots are taking in FF 1.5.x and IE6. IE7 has been tested and displays the same as FF. I've left the top of the browser intact for identification between each one.


A big thanks goes to [name]mikeylikesitz[/name] for his help testing in IE7

Finally, if someone could let me have a link to use as a live demo, it would be appreciated.


Enjoy it, and have fun.

Show Your Support

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

Comments
  #32  
Old 10-21-2006, 04:33 PM
Ophelia Ophelia is offline
 
Join Date: Feb 2006
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello and thank you for this hack

In my template header, I do not have a line <!--logo> This is what I have...

Code:
<div align="center">
  <center>
  <table border="0" width="90%" background="http://mywebsite.com/forum/mywebsitestyle/misc/head_fllr.jpg" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%" align="center"><img src="http://mywebsite.com/forum/mywebsitestyle/misc/header.jpg" width="790" height="130"></td>
    </tr>
  </table>
  </center>
</div>
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="90%" align="center">
	<tr>
		<td class="alt2" width="41" align="center"><a href="http://www.mywebsite.net/"><font size="1"><b>HOME</b></font></a></td>
		<td class="alt1" width="59" align="center"><a href="http://www.mywebsite.net/forum/"><font size="1"><b>FORUMS</b></font></a></td>
		<td class="alt2" width="65" align="center"><a href="http://www.mywebsite.net/gallery/"><font size="1"><b>GALLERY</b></font></a></td>
		<td class="alt1" width="76" align="center"><a href="http://www.mywebsite.net/forum/forumdisplay.php?f=11"><font size="1"><b>TUTORIALS</b></font></a></td>
		<td class="alt2" width="89" align="center"><a href="http://www.mywebsite.com/chat.htm"><font size="1"><b>CHAT/CROPS</b></font></a></td>
		<td class="alt1" width="65" align="center"><a href="http://www.mywebsite.net/forum/local_links.php"><font size="1"><b>FREEBIES</b></font></a></td>
		<td class="alt2" width="139" align="center"><a href="http://www.mywebsite.net/blog/"><font size="1"><b>DAILY
          LAYOUT PICK</b></font></a></td>
		<td class="alt2" width="48" align="center"><a href="http://www.mywebsite.net/forum/showthread.php?p=29200/"><font size="1"><b>STORE</b></font></a></td>
		<td class="alt1" width="73" align="center"><a href="http://www.mywebsite.net/forum/calendar.php"><font size="1"><b>CALENDAR</b></font></a></td>
		<td class="alt1" width="143" align="center"><a href="http://www.mywebsite.net/forum/forumdisplay.php?f=39"><font size="1"><b>GAMES
          &amp; CONTESTS</b></font></a></td>
	</tr>
	</table>
<center>
<div align="center">
  <center>
<table border="0" cellspacing="0" cellpadding="0" width="90%">
  <tr>
    <td width="468" align="center">
<script language='JavaScript' type='text/javascript' src='http://www.mywebsite.net/ads/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.mywebsite.net/ads/adjs.php?n=" + phpAds_random);
   document.write ("&amp;clientid=4");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.mywebsite.net/ads/adclick.php?n=ac25869b' target='_blank'><img src='http://www.mywebsite.net/ads/adview.php?clientid=4&amp;n=ac25869b' border='0' alt=''></a></noscript>
</td>
    <td width="234" align="center">
      <p align="center">
      
      <!--Start Google Adsense -->
      <script type="text/javascript"><!--
google_ad_client = "pub-1385091252132549";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "3E4F27";
google_color_bg = "FFFFFF";
google_color_link = "3E4F27";
google_color_text = "000000";
google_color_url = "3E4F27";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<!-- End Google Adsense-->

</td>
    <td width="150" align="center"><script language='JavaScript' type='text/javascript' src='http://www.mywebsite.net/ads/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.mywebsite.net/ads/adjs.php?n=" + phpAds_random);
   document.write ("&amp;clientid=2");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.mywebsite.net/ads/adclick.php?n=a24108a6' target='_blank'><img src='http://www.mywebsite.net/ads/adview.php?clientid=2&amp;n=a24108a6' border='0' alt=''></a></noscript>

</td>
  </tr>
</table>
  </center>
</div>
<!-- START header image -->
<table align="center" border="0" width="90%" cellpadding="0" cellspacing="0" class="border">
<tr><td>
<!-- END header image -->
	
<!-- begin main inner table area-->

<!-- content table -->
<div class="page">


$spacer_open $_phpinclude_output
Where abouts would I put the header info in this? Thank you
Reply With Quote
  #33  
Old 10-21-2006, 05:20 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hawork
135 px

I've got installed a code to show a random image at header and I modified that but I didn't delete anything, just added. I can't understand why I cannot find the things to change
Can you provide a link to your site and I'll take a look at the code you have there and see if I can find out why you are having problems.

Thanks
Reply With Quote
  #34  
Old 10-21-2006, 05:24 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ophelia
Hello and thank you for this hack

In my template header, I do not have a line <!--logo> This is what I have...

Code:
<div align="center">
  <center>
  <table border="0" width="90%" background="http://mywebsite.com/forum/mywebsitestyle/misc/head_fllr.jpg" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%" align="center"><img src="http://mywebsite.com/forum/mywebsitestyle/misc/header.jpg" width="790" height="130"></td>
    </tr>
  </table>
  </center>
</div>
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="90%" align="center">
	<tr>
		<td class="alt2" width="41" align="center"><a href="http://www.mywebsite.net/"><font size="1"><b>HOME</b></font></a></td>
		<td class="alt1" width="59" align="center"><a href="http://www.mywebsite.net/forum/"><font size="1"><b>FORUMS</b></font></a></td>
		<td class="alt2" width="65" align="center"><a href="http://www.mywebsite.net/gallery/"><font size="1"><b>GALLERY</b></font></a></td>
		<td class="alt1" width="76" align="center"><a href="http://www.mywebsite.net/forum/forumdisplay.php?f=11"><font size="1"><b>TUTORIALS</b></font></a></td>
		<td class="alt2" width="89" align="center"><a href="http://www.mywebsite.com/chat.htm"><font size="1"><b>CHAT/CROPS</b></font></a></td>
		<td class="alt1" width="65" align="center"><a href="http://www.mywebsite.net/forum/local_links.php"><font size="1"><b>FREEBIES</b></font></a></td>
		<td class="alt2" width="139" align="center"><a href="http://www.mywebsite.net/blog/"><font size="1"><b>DAILY
          LAYOUT PICK</b></font></a></td>
		<td class="alt2" width="48" align="center"><a href="http://www.mywebsite.net/forum/showthread.php?p=29200/"><font size="1"><b>STORE</b></font></a></td>
		<td class="alt1" width="73" align="center"><a href="http://www.mywebsite.net/forum/calendar.php"><font size="1"><b>CALENDAR</b></font></a></td>
		<td class="alt1" width="143" align="center"><a href="http://www.mywebsite.net/forum/forumdisplay.php?f=39"><font size="1"><b>GAMES
          &amp; CONTESTS</b></font></a></td>
	</tr>
	</table>
<center>
<div align="center">
  <center>
<table border="0" cellspacing="0" cellpadding="0" width="90%">
  <tr>
    <td width="468" align="center">
<script language='JavaScript' type='text/javascript' src='http://www.mywebsite.net/ads/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.mywebsite.net/ads/adjs.php?n=" + phpAds_random);
   document.write ("&amp;clientid=4");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.mywebsite.net/ads/adclick.php?n=ac25869b' target='_blank'><img src='http://www.mywebsite.net/ads/adview.php?clientid=4&amp;n=ac25869b' border='0' alt=''></a></noscript>
</td>
    <td width="234" align="center">
      <p align="center">
      
      <!--Start Google Adsense -->
      <script type="text/javascript"><!--
google_ad_client = "pub-1385091252132549";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "3E4F27";
google_color_bg = "FFFFFF";
google_color_link = "3E4F27";
google_color_text = "000000";
google_color_url = "3E4F27";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<!-- End Google Adsense-->

</td>
    <td width="150" align="center"><script language='JavaScript' type='text/javascript' src='http://www.mywebsite.net/ads/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
   
   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://www.mywebsite.net/ads/adjs.php?n=" + phpAds_random);
   document.write ("&amp;clientid=2");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.mywebsite.net/ads/adclick.php?n=a24108a6' target='_blank'><img src='http://www.mywebsite.net/ads/adview.php?clientid=2&amp;n=a24108a6' border='0' alt=''></a></noscript>

</td>
  </tr>
</table>
  </center>
</div>
<!-- START header image -->
<table align="center" border="0" width="90%" cellpadding="0" cellspacing="0" class="border">
<tr><td>
<!-- END header image -->
	
<!-- begin main inner table area-->

<!-- content table -->
<div class="page">


$spacer_open $_phpinclude_output
Where abouts would I put the header info in this? Thank you
Put it above
Code:
<!-- START header image -->
if that doesn't display correctly then put it above
Code:
<!-- content table-->
Reply With Quote
  #35  
Old 10-21-2006, 08:14 PM
hawork hawork is offline
 
Join Date: Oct 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cannot write any link because I'm having problems with my provider right now.

This is my header template:

Code:
<SCRIPT LANGUAGE="JavaScript">
 
<!-- Begin Random Logo In Header Script
 
var theImages = new Array() // do not change this
<!-- Edit the url images to match yours
theImages[0] = 'imagenes/logo1.gif' //blank
theImages[1] = 'imagenes/logo2.gif' //replace
theImages[2] = 'imagenes/logo3.gif' //replace
theImages[3] = 'imagenes/logo4.gif'
theImages[4] = 'imagenes/logo5.gif'
theImages[5] = 'imagenes/logo6.gif'
theImages[6] = 'imagenes/logo7.gif'
theImages[7] = 'imagenes/logo8.gif'
theImages[8] = 'imagenes/logo9.gif'
theImages[9] = 'imagenes/logo10.gif'
theImages[10] = 'imagenes/logo11.gif'
theImages[11] = 'imagenes/logo12.gif'
theImages[12] = 'imagenes/logo13.gif'



 
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<td align="$stylevar[left]"><a href="index.php"><img src="'+theImages[whichImage]+'" border="0" alt="$vboptions[bbtitle]" /></a></div>');
}
 
// End -->
</script>

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
	<SCRIPT LANGUAGE="JavaScript">
showImage();
</script>

	<td align="$stylevar[right]">
		&nbsp;
	</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
Reply With Quote
  #36  
Old 10-22-2006, 10:11 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you followed the installation instructions in the attached file? You haven't got any code for the column in the code you have posted.
Reply With Quote
  #37  
Old 10-25-2006, 08:10 AM
hawork hawork is offline
 
Join Date: Oct 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Solved! Thank you!
Reply With Quote
  #38  
Old 10-27-2006, 09:26 PM
djlotus djlotus is offline
 
Join Date: Oct 2005
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really love this hack, BUT since it connaot be displayed below the navbar, I cannont use it.:hurt: Any suggestions on how to/where to find an identical hack, that works below the navbar.
Reply With Quote
  #39  
Old 10-29-2006, 06:50 AM
AWI's Avatar
AWI AWI is offline
 
Join Date: Dec 2005
Location: Midwest
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great job, works like a charm!
Reply With Quote
  #40  
Old 10-29-2006, 08:37 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djlotus
I really love this hack, BUT since it connaot be displayed below the navbar, I cannont use it.:hurt: Any suggestions on how to/where to find an identical hack, that works below the navbar.
For all pages: No
For Forumhome Only: Yes, see my profile

Note: Only sidebars which are part of the main body of the text can be used below the navbar.

The only other option to this is to move your navbar into your header, an∂ then modifiy the top padding of this column to stop it from overlapping. Basically though it is down to your comfort in modifiying templates in vBulletin.
Reply With Quote
  #41  
Old 11-04-2006, 04:03 AM
taydu taydu is offline
 
Join Date: Oct 2006
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any idea how to put it on the right column ???

thanks
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 11:17 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.09872 seconds
  • Memory Usage 2,348KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (3)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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