Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2005, 08:19 AM
blueuniverse blueuniverse is offline
 
Join Date: Jul 2004
Location: UK
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Really annoying template problems - racking my brain out

Ok, I'm working on the new design for my forums on a test board so I can't give you the link or everything - it being password protected and all. Anyway, I've added a navigation bar (with images) to the header to replace the existing one below. The problem results with vbulletin somehow (this is where I've been racking my brains out - I can't see where) putting in cellspacing 1 between them all.

Now, I know there is the stylevars variable set as 1 by default but I've tried this hundreds of times, setting it to 0 and even to 10 to see if it had any effect. I then set it to 0 in the header but still this gap of 1 persists on showing up, throwing off my whole design.

I'm sure I'm missing something here but I just can't see what. I've included a screenshot (with the table cell edges highlighted) for assistance and the code in my header (it is definitely not the code elsewhere - worked that out already).

Code:
<div id="GALBox"
	style="position: absolute; z-index: 100;
    visibility: hidden;"
    onmouseover="this.style.visibility='visible';"
    onmouseout="this.style.visibility='hidden';">
</div>
<!-- logo -->
<a name="top"></a>
<table width="$stylevar[outertablewidth]" cellspacing="0" cellpadding="0" align="center" class="maintable">
<tr><td width="100%"> 
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
	<td width="288" rowspan="2" valign="top" align="$stylevar[left]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" alt="$vboptions[bbtitle]" width="288" height="78" border="0" /></a></td>
    <td height="49" colspan="7" valign="top">&nbsp;</td>
</tr>
<tr>
    <td width="52" height="29" valign="top"><a href="$vboptions[forumhome].php?$session[sessionurl]" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Home','','images/v4/misc/homeroll.gif',1)"><img src="images/v4/misc/home.gif" alt="Home" name="Home" width="52" height="29" border="0" id="Home" /></a></td>
    <td width="60" valign="top"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Forums','','images/v4/misc/forumsroll.gif',1)"><img src="images/v4/misc/forums.gif" alt="Forums" name="Forums" width="60" height="29" border="0" id="Forums" /></a></td>
    <if condition="$show['registerbutton']"><td width="68" valign="top">
      <a href="register.php?$session[sessionurl]" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Register','','images/v4/misc/registeroll.gif',1)"><img src="images/v4/misc/register.gif" alt="$vbphrase[register]" name="Register" width="68" height="29" border="0" id="Register" /></a></td>  </if>
	<if condition="$bbuserinfo['userid']"><td width="68" valign="top">
      <a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('logout','','images/v4/misc/logoutroll.gif',1)">
<img src="images/v4/misc/logout.gif" alt="Log Out" name="logout" width="68" height="29" border="0" id="logout" /></a></td></if>
<td width="59" valign="top"><a href="usercp.php?$session[sessionurl]" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Usercp','','images/v4/misc/usercproll.gif',1)"><img src="images/v4/misc/usercp.gif" alt="User Cp" name="Usercp" width="59" height="29" border="0" id="Usercp" /></a></td>
    <td width="67" valign="top" id="interactive"><a href="#interactive" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('interactive','','images/v4/misc/interactiveroll.gif',1)"><img src="images/v4/misc/interactive.gif" alt="interactive" name="interactive" width="67" height="29" border="0" id="interactive" /><script type="text/javascript"> vbmenu_register("interactive", 1); </script>
      </a></td>
    <td width="61" valign="top" id="navbar_search"><a href="search.php?$session[sessionurl]" accesskey="4" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('search','','images/v4/misc/searchroll.gif',1)"><img src="images/v4/misc/search.gif" alt="search" name="search" width="61" height="29" border="0" id="search" /><script type="text/javascript"> vbmenu_register("navbar_search", 1); </script>
                </a></td>
    <td width="73" valign="top" id="usercptools"><a href="#usercptools" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Quick Links','','images/v4/misc/quicklinksroll.gif',1)"><img src="images/v4/misc/quicklinks.gif" alt="Quick Links" name="Quick Links" width="73" height="29" border="0" id="Quick Links" /><script type="text/javascript"> vbmenu_register("usercptools", 1); </script>
    </a></td>
  </tr>
</table>
<!-- /logo -->



$spacer_open

$_phpinclude_output
It's pretty messy code, but just to give you a basic understanding - each td is a different image and the images are all rollovers hence all the code.

I'm sure it is something simple I'm missing but for the life of me I can't find out what.

Thanks in advance,

Ed
Attached Images
File Type: gif evidence.gif (14.1 KB, 0 views)
Reply With Quote
 


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 05:17 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.03418 seconds
  • Memory Usage 2,392KB
  • Queries Executed 14 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete