vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Sidebars (https://vborg.vbsupport.ru/showthread.php?t=198104)

EagleNick 12-05-2008 10:34 PM

Sidebars
 
1 Attachment(s)
I followed these instructions and successfully created a right column for skyscraper advertisements (notice how they are in the area with the grey background):

Attachment 90205

But I am wondering how I can move my sidebar further outwards, into the area with the black background (highlighted in yellow):

Attachment 90204

Seven Skins 12-05-2008 10:50 PM

This should do it.


Code:

<!-- logo -->
<a name="top"></a>

<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;">
                YOUR CONTENT HERE
        </td>
        <td valign="top">



<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 -->

<!-- content table -->
$spacer_open

$_phpinclude_output


EagleNick 12-05-2008 11:16 PM

It did not work... it resulted in a mess...

Seven Skins 12-06-2008 10:52 AM

I tested the code before posting it.

Did you change the code?

As the hack link you showed the column is on the left side and on your site column is on the right.


Code:

<!-- logo -->
<a name="top"></a>

<table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
        <td valign="top">



<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 -->

<!-- content table -->
$spacer_open

$_phpinclude_output



BTW. You need to change the color of you copyright notice from vBulletin, it is not visible on your site.

EagleNick 12-06-2008 01:59 PM

Quote:

Originally Posted by Seven Skins (Post 1679567)
I tested the code before posting it.

Did you change the code?

As the hack link you showed the column is on the left side and on your site column is on the right.


Code:

<!-- logo -->
<a name="top"></a>

<table width="$stylevar[outertablewidth]" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
    <td valign="top">



<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 -->

<!-- content table -->
$spacer_open

$_phpinclude_output


I didn't change any code, as you didn't specify what code to change.

The instructions I followed explain how to add a sidebar to either the left or the right. I want the sidebar on the right, and that's what I did.

When I added your code to the header template, it sloppily added a sidebar to the left.
Based on the instructions on the thread at vb.com that I linked to, please specify what code(s) to change.
Quote:

Originally Posted by Seven Skins (Post 1679567)
BTW. You need to change the color of you copyright notice from vBulletin, it is not visible on your site.

Thanks for pointing this out. It is not my site though, it's the site of a client that I am assisting in setting up the board.

Seven Skins 12-06-2008 06:15 PM

Code I posted in THIS post should work.

.

EagleNick 12-06-2008 07:37 PM

I undid the first step from the instructions I followed and then implemented your method (from Post #4), and it still is not where I want it. You can check the site (www.mypilotnetwork) and see how it is now.
However, the way it is now may be suitable. I will have to check with the person I am doing this for...

Greenskull 12-07-2008 06:44 AM

this is very useful! I was literally about to post this question when I saw this. I got it working on the left but now I need the right. Any suggestions?

Seven Skins 12-07-2008 07:47 AM

Quote:

Originally Posted by EagleNick (Post 1679812)
I undid the first step from the instructions I followed and then implemented your method (from Post #4), and it still is not where I want it. You can check the site (www.mypilotnetwork) and see how it is now.
However, the way it is now may be suitable. I will have to check with the person I am doing this for...

This is exactly what you were looking for. (Problem solved :) )
Personally if it is my site I would make the header wider and put the ads where they were.

.


All times are GMT. The time now is 04:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01112 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete