PDA

View Full Version : little problem with header image at 1280x1024


exes_slayer
08-03-2007, 07:09 PM
the top image is appearing way next to the logo
can anyone tell me what variable to modify to make it fit?

here's a screenshot:
http://i17.tinypic.com/4m7hhqe.jpg

and here is the code from my header template:

<!-- logo -->
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<div id="infobar"><a href="http://www.webarea.ro/register.php?referrerid=1"><p>Sistemul ne arata ca inca nu te-ai inregistrat. Ca sa te inregistrezi apasa click aici...</p></a><embed src="infobar.wav" autostart="true" loop="0" hidden="true"></embed></div>
</if>

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]" style="background: url('themes/sleekblue/images/headerbgright.gif') top right no-repeat;"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td width="100%" align="$stylevar[left]" style="background: url('themes/sleekblue/images/headerbgright.gif') top right no-repeat; padding-right: 20px;">

<!-- Great spot for an ad banner! -->
</td>
</tr>
</table>
<!-- /logo -->

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


<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">

<tr>

<td width="23"><img src="themes/sleekblue/images/navleft.gif" /></td>
<td class="navitem"><a href="$vboptions[homeurl]">Home</a></td>
<td class="navitem"><a href="$vboptions[forumhome].php$session[sessionurl_q]">Forums</a></td>
<td class="navitem"><a href="memberlist.php$session[sessionurl_q]">Members List</a></td>
<td class="navitem"><a href="calendar.php$session[sessionurl_q]">Calendar</a></td>
<td class="navitem"><a href="search.php?$session[sessionurl]do=getnew">New Posts</a></td>
<td id="navbar_search" class="navitem"><a href="#">Search</a><script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>

<if condition="$bbuserinfo['userid'] == 0">
<td class="navitem"><a href="search.php?$session[sessionurl]do=getdaily">Today's Posts</a></td>
<else />
<td id="usercptools" class="navitem"><a href="#">Quick Links</a><script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>

<if condition="$bbuserinfo['userid'] == 0">
<td class="navitem"><a href="register.php$session[sessionurl_q]">Register</a></td>
<else />
</if>
<td width="23"><img src="themes/sleekblue/images/navright.gif" /></td>

</tr>

</table>

</td>
</tr>

<tr>
<td>


<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">

<tr>

<td width="23"><img src="themes/sleekblue/images/blueleft.gif" /></td>
<td width="100%" style="background: url('themes/sleekblue/images/bluebg.gif') top left repeat-x;">

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>



<table cellpadding="0" height="43" cellspacing="0" border="0" width="100%">
<tr><td width="43" style="background: url('themes/sleekblue/images/avatarbg.gif') center left no-repeat;">

<a style="position: relative; left: 7px; top: -1px;" href="$vboptions[bburl]/profile.php?do=editavatar">$navbaravatar</a>

</td>
<td style="padding-left: 10px;">

<if condition="$bbuserinfo['userid'] == 0">
<span style="color: #FFF; font-weight: bold; font-size: 12px;">Welcome to $vboptions[hometitle]!</span><br />
<a class="headerpm" href="register.php$session[sessionurl_q]">If you haven't registered yet, click here!</a>
<else />
<span style="color: #FFF; font-weight: bold; font-size: 12px;">Welcome back, $bbuserinfo[username]!</span><br />

<if condition="$bbuserinfo[pmunread] == 0">
<a class="headerpm" href="$vboptions[bburl]/private.php?">You have no new private messages.</a>
<else />
<if condition="$bbuserinfo[pmunread] == 1">
<a class="headerpm" href="$vboptions[bburl]/private.php?">You have one new private message.</a>
<else />
<a class="headerpm" href="$vboptions[bburl]/private.php?">You have $bbuserinfo[pmunread] new private messages.</a>

</if>
</if>

</if>

</td>
<td style="text-align: right;">

<if condition="$bbuserinfo['userid'] == 0">






<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" style="float: right;">
<tr>
<td class="smallfont"><label for="navbar_username" style="color: #3b586c;">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar" style="color: #3b586c;"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Save?</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password" style="color: #3b586c;">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->






<else />

<a href="$vboptions[bburl]/usercp.php$session[sessionurl_q]"><img src="themes/sleekblue/images/usercp.gif" border="0" /></a>

<a href="$vboptions[bburl]/private.php?"><img src="themes/sleekblue/images/inbox.gif" border="0" /></a>

<a href="$vboptions[bburl]/member.php?u=$bbuserinfo[userid]"><img src="themes/sleekblue/images/myprofile.gif" border="0" /></a>

<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="themes/sleekblue/images/logout.gif" border="0" /></a>

</if>

</td>

</tr>
</table>

</td></tr>
</table>



</td>
<td width="23"><img src="themes/sleekblue/images/blueright.gif" /></td>

</tr>
</table>

</td>
</tr>

<tr>
<td>


<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" height="28">

<tr>

<td width="23" style="background: #FFF;" valign="top"><img src="themes/sleekblue/images/topleft.gif" /></td>
<td width="100%" style="background: #FFF url('themes/sleekblue/images/topbg.gif') top left repeat-x;"></td>
<td width="23" style="background: #FFF;" valign="top"><img src="themes/sleekblue/images/topright.gif" /></td>

</tr>
</table>

</td>
</tr>
</table>

<!-- content table -->
$spacer_open

$_phpinclude_output

Opserty
08-03-2007, 08:29 PM
I'm guessing your trying to make it fluid, in which case the images you have are too small and don't repeat so you'll get gaps. You could just save the header as one image and set it in the middle instead of splitting it in 2.

exes_slayer
08-04-2007, 05:05 AM
I'm guessing your trying to make it fluid, in which case the images you have are too small and don't repeat so you'll get gaps. You could just save the header as one image and set it in the middle instead of splitting it in 2.

thats exactly what i did! :) thanks