Log in

View Full Version : How can I solve this little problem? ... part II


abmm
06-09-2009, 11:08 PM
Hello,

I came from this thread : https://vborg.vbsupport.ru/showthread.php?t=152664

Lynn suggested I start my own thread... so here I am.

http://img37.imageshack.us/img37/2743/forumerror.jpg

Basically, I have the same exact problem as the person from the thread above. It seems that there is something off in the showthread bit but I can't figure it out.

You can check out what im talking about at this link : http://tinyurl.com/nrbm3c

By looking at the pic or going to the link above, you can see how the page shoots off to the right off the page. Not exactly sure what the problem is, but the forum width is set correctly, as well as most of the html in there.

Any assistance would be appreciated.

Regards,

ab

Lynne
06-09-2009, 11:16 PM
This makes no sense:

<td width="655">
<!-- /logo -->

<!-- content table -->
<!-- open content container -->
<div align="center">
<div class="page" style="width:775px; text-align:left">

abmm
06-09-2009, 11:23 PM
Would I change that in the showthread bit? I'd like to change that 655 to 775.

Lynne
06-09-2009, 11:26 PM
I don't know what template they are in. Do this to find the template - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

abmm
06-09-2009, 11:34 PM
I did that, but I'm not able to find the html that you quoted above.

Edit:

Found this code
<div id="posts"><!-- BEGIN TEMPLATE: postbit_wrapper -->
<!-- post #129134 -->

<!-- BEGIN TEMPLATE: spacer_open -->
<!-- open content container -->

<div align="center">

<div class="page" style="width: 775px; text-align: left;">
<div style="padding: 0px 10px;" align="left">

<!-- END TEMPLATE: spacer_open -->
<div id="edit129134" style="padding: 0px 0px 6px;">


Couldn't find that 655 :( Seems that's what needs to be changed.

Lynne
06-09-2009, 11:59 PM
The code with the 665 is from the template called above that one. Could be the showthread template. It could also be a variable being used in place of the 665. Look for that logo comment line and I'm sure you'll find it. (I don't think you found the correct template for the other lines. Look in your page source for the lines I posted - they are all together. I'm pretty sure the lines I was looking at are from somewhere near the navbar cuz that is out of whack too - that's where it first happens.)

abmm
06-10-2009, 01:36 AM
I was able to find out where the tag was... it was in the header template. lol

I then tried changing it to 775 and the problem persisted. Even went as far as changing the site to a wider 900 and it seemed to not matter.

Any other ideas?

Lynne
06-10-2009, 02:21 AM
Remove the width from that div tag in the code I posted in my second post.

<!-- /logo -->

<!-- content table -->
<!-- open content container -->
<div align="center">
<div class="page" style="text-align:left">The problem is you are fixing the widths without looking at your padding or margins for those classes so they don't add up correctly and you are causing problems like what you are seeing.

abmm
06-10-2009, 04:55 PM
Makes sense, I'd like to remove that to see if it helps but I can't find the darn html :(


<tr>
<td width="775">
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
$welcomeheaders

<!-- USC header edit start -->


Is what I get in the header template (where I made the initial change). I tried the Welcome Header and Spacer_Open templates as well, to no avail.

Lynne
06-10-2009, 05:40 PM
Try doing what I said before to find the template - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. If it says it is in a specific template and you are positive you are looking at the correct style and template, then it could be a modification is adding it. Try looking through your plugins then.

Seven Skins
06-10-2009, 07:50 PM
I think your $spacer_close is at the wrong place and you have these EXTRA closing tags.

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

This is what I got after adjusting them two things.

http://img91.imageshack.us/img91/3310/0772a.png (http://img91.imageshack.us/my.php?image=0772a.png)

.

abmm
06-10-2009, 08:20 PM
Thanks for the reply... that's how I would like to get the page to look.

Now, this $spacer_close tag is in the 'Footer template'



<!-- USC footer edit start -->
</td>
$usc_right
</tr>
</table>
<!-- USC footer edit end -->

$spacer_close
<!-- /content area table -->

</td>
</tr>
<tr>
<td class="page">
<form action="$vboptions[forumhome].php" method="get">


Where would the $spacer_close be moved to? And I tried removing the </td>
</tr>
</table> from the above html and the forum homepage duplicated the error from the thread I posted in the first post.
https://vborg.vbsupport.ru/showpost.php?p=1826721&postcount=1

Seven Skins
06-10-2009, 08:33 PM
Post full header and footer templates. (Not parts of them)

abmm
06-10-2009, 08:35 PM
Sure...

Full Header


<!-- logo -->

<if condition="$bbuserinfo['usergroupid'] == 8">
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.we-stream.com/banned.php">
</if>

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><center><a href="index.php"><img src="redbar/elements/logo.png" border="0"></a><center></td>
</tr>
<tr>
<td background="redbar/elements/catsub.jpg" height="24" class="menu">
<center>
<a href="index.php">Forums</a> &nbsp;&nbsp;
<if condition="$show['member']">
<a href="usercp.php">User CP</a> &nbsp;&nbsp;
</if>
<if condition="$show['registerbutton']">
<a href="register.php"><b>REG<font color="red">!</font>STER</a></b> &nbsp;&nbsp;
</if>
<a href="http://wrestling-tv.net/forumz/vbookie.php?" target="blank"><font color="#FF0000"><b>v</font>Bookie</b></font></a> &nbsp;
<!-- vbMp3 Player Start -->
<script type="text/javascript">
<!--

function OpeniPod(){
iPod = window.open('ipod.htm','iPod','directories=no,heig ht=430,width=190,location=no,menubar=no,resizable= no,status=no,toolbar=no')

return false;
}

-->
</script>
<a href="#" onclick="return OpeniPod()"><font color="#FF0000">WTV</font>iPod</a>
&nbsp;
<a href="http://www.wrestling-tv.net/forumz/donations.php" target="blank"><font color="#FF0000"><img src="http://www.wrestling-tv.net/forumz/images/wtvstar2.png" border="0"><b>WTV</font> Supporters</b></font></a> &nbsp;
<a href="arcade.php?$session[sessionurl_q]"><font color="navy"><b>Arcade</a></b></font>&nbsp;&nbsp;
<a href="http://www.wrestling-tv.net/forumz/payments.php"><font color="#18FF00"><b>DONATE</b></font></a> &nbsp;
<a href="http://www.wrestling-tv.net/tv/" target="blank"><font color="#FFFF00"><b>Stream/Chat Page</b></font></a> &nbsp;

<if condition="$show['member']">
<a href="search.php"><font color="yellow"><b>SEARCH</a></b></font>&nbsp;&nbsp;
</if>
<if condition="$show['member']">
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">Logout</a>
</if></center>
</td>
</tr>
<tr>
<td width="775">
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
$welcomeheaders

<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->


Full Footer


<br />

<div align="center">
<br><br><a href="http://www.twitter.com/wrestlingtv" target="_blank">
<img src="http://wrestling-tv.net/images/wtvtwitter.png" border="0"></a><br><br>
<a href="http://www.amazingcounter.com"><img border="0" src="http://cb.amazingcounters.com/counter.php?i=2047662&c=6143299" alt="web page hit counter"></a><br><a href="http://www.matmaniacs.com"><font color="#848484" size="2">Wrestling Store</font></a></div><br><center>
<script type="text/javascript" src="http://widgets.amung.us/classic.js"></script><script type="text/javascript">WAU_classic('g1hd7t729ey6')</script>
</center><br>
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]<br />
Skin designed by <a href="http://www.markbolyard.com">Mark Bolyard</a>
<br><br>
? 2007-2012 WTV Entertainment, All Rights Reserved.
</div>

<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->

$vboptions[copyrighttext]
<br>
</div>
</div>
<br />

<!-- USC footer edit start -->
</td>
$usc_right
</tr>
</table>
<!-- USC footer edit end -->

$spacer_close
<!-- /content area table -->

</td>
</tr>
<tr>
<td class="page">
<form action="$vboptions[forumhome].php" method="get">

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>
<td class="tfoot" align="$stylevar[right]" width="100%">
<div class="smallfont">
<strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="redbar/elements/footer1.jpg" border="0" /></td>
<td background="redbar/elements/footer2.jpg" width="100%"></td>
<td><img src="redbar/elements/footer3.jpg" border="0" /></td>
</tr>
</table>
</td>
</tr>
</table>
<br />


</form>

<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>

Seven Skins
06-10-2009, 08:55 PM
Try these ... [Save your templates before editing]

What does these do: $usc_left and $usc_right ?



Header:
<!-- logo -->

<if condition="$bbuserinfo['usergroupid'] == 8">
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.we-stream.com/banned.php">
</if>

<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><center><a href="index.php"><img src="redbar/elements/logo.png" border="0"></a></center></td>
</tr>
<tr>
<td background="redbar/elements/catsub.jpg" height="24" class="menu">
<center>
<a href="index.php">Forums</a> &nbsp;&nbsp;
<if condition="$show['member']">
<a href="usercp.php">User CP</a> &nbsp;&nbsp;
</if>
<if condition="$show['registerbutton']">
<a href="register.php"><b>REG</b><font color="red">!</font><b>STER</b></a> &nbsp;&nbsp;
</if>
<a href="http://wrestling-tv.net/forumz/vbookie.php?" target="blank"><font color="#FF0000"><b>v</b></font>Bookie</a> &nbsp;
<!-- vbMp3 Player Start -->
<script type="text/javascript">
<!--

function OpeniPod(){
iPod = window.open('ipod.htm','iPod','directories=no,heig ht=430,width=190,location=no,menubar=no,resizable= no,status=no,toolbar=no')

return false;
}

-->
</script>
<a href="#" onclick="return OpeniPod()"><font color="#FF0000">WTV</font>iPod</a>
&nbsp;
<a href="http://www.wrestling-tv.net/forumz/donations.php" target="blank"><font color="#FF0000"><img src="http://www.wrestling-tv.net/forumz/images/wtvstar2.png" border="0"><b>WTV</font> Supporters</b></font></a> &nbsp;
<a href="arcade.php?$session[sessionurl_q]"><font color="navy"><b>Arcade</b></font></a>&nbsp;&nbsp;
<a href="http://www.wrestling-tv.net/forumz/payments.php"><font color="#18FF00"><b>DONATE</b></font></a> &nbsp;
<a href="http://www.wrestling-tv.net/tv/" target="blank"><font color="#FFFF00"><b>Stream/Chat Page</b></font></a> &nbsp;

<if condition="$show['member']">
<a href="search.php"><font color="yellow"><b>SEARCH</b></font></a>&nbsp;&nbsp;
</if>
<if condition="$show['member']">
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">Logout</a>
</if></center>
</td>
</tr>
<tr>
<td width="775">
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
$welcomeheaders

<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->





Footer:

<br />

<div align="center">
<br><br><a href="http://www.twitter.com/wrestlingtv" target="_blank">
<img src="http://wrestling-tv.net/images/wtvtwitter.png" border="0"></a><br><br>
<a href="http://www.amazingcounter.com"><img border="0" src="http://cb.amazingcounters.com/counter.php?i=2047662&c=6143299" alt="web page hit counter"></a><br><a href="http://www.matmaniacs.com"><font color="#848484" size="2">Wrestling Store</font></a></div><br><center>
<script type="text/javascript" src="http://widgets.amung.us/classic.js"></script><script type="text/javascript">WAU_classic('g1hd7t729ey6')</script>
</center><br>
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]<br />
Skin designed by <a href="http://www.markbolyard.com">Mark Bolyard</a>
<br><br>
? 2007-2012 WTV Entertainment, All Rights Reserved.
</div>

<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->

$vboptions[copyrighttext]
<br>
</div>
</div>
<br />

<!-- USC footer edit start -->
</td>
$usc_right
</tr>
</table>
<!-- USC footer edit end -->

$spacer_close
<!-- /content area table -->

</td>
</tr>
<tr>
<td class="page">
<form action="$vboptions[forumhome].php" method="get">

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>
<td class="tfoot" align="$stylevar[right]" width="100%">
<div class="smallfont">
<strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>
</div>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="redbar/elements/footer1.jpg" border="0" /></td>
<td background="redbar/elements/footer2.jpg" width="100%"></td>
<td><img src="redbar/elements/footer3.jpg" border="0" /></td>
</tr>
</table>
</td>
</tr>
</table>
<br />




<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>

abmm
06-10-2009, 09:17 PM
Ah, I think that may be a real old hack (Ultimate Side Columns) I've since removed that hack/plugin from the website.

Should I go ahead and remove those 2 tags?

Theres 1 in each:

Header -
<!-- USC header edit start -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
$usc_left
<td valign="top">
<!-- USC header edit end -->

Footer -
<!-- USC footer edit start -->
</td>
$usc_right
</tr>
</table>
<!-- USC footer edit end -->

Seven Skins
06-10-2009, 09:22 PM
Yes you can, as the hack has been removed already.

abmm
06-10-2009, 09:24 PM
Sweet, it did the job! :D

Error pic:
http://img37.imageshack.us/img37/2743/forumerror.jpg

Now:
http://tinyurl.com/nrbm3c

Those 2 tags must of been throwing things off.

I appreciate your help! (As well as Lynns!) +1,000,000 Rep :)

Seven Skins
06-10-2009, 09:29 PM
Yup ... FORM in the footer was closed at the wrong place .. that was also fixed along with few other minor errors.

You are welcome :)

.