Back to vBulletin 3.8 Template Modifications

Redirect Page to Long?
Mod Version: 1.00, by Hell Bomb

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 4
Released: 13 Jul 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code  

People with widescreen monitors see this all the time on just about every forum, when you are redirected you notice redirect page will be wider then the sides of the forum. Some forums it doesn't really make any different but when sites like vBulletin.org that have a big column with different images on the left and right you usually see the redirect box extend past them. Well my forum has this exact thing and it bothered me for the longest time. It took some guess and check but i finally got it. If you have no clue what im talking about well sorry, but check out the images and you will understand.

Open up the STANDARD_REDIRECT template replace everything with the following
Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$pagetitle</title>
</head>
<body>
<br />
<br />
<br />
<br />
<form action="$formfile" method="post" name="postvarform">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[outertablewidth]" align="center">
<tr>
	<td class="tcat">$vbphrase[redirecting]</td>
</tr>
<tr>
	<td class="panelsurround" align="center">
	<div class="panel">
		<blockquote>
			<p>&nbsp;</p>
			<p><strong>$errormessage</strong></p>
			<if condition="$postvars">
				$postvars
				<p id="click_here_p" class="smallfont">$vbphrase[click_the_following_button]</p>
				<input type="submit" class="button" id="proceed_button" value="$vbphrase[proceed]" onclick="proceed_click()" accesskey="s" />
			<else />
				<p class="smallfont"><a href="$url">$vbphrase[click_if_browser_does_not_redirect]</a></p>
				<div><img src="$stylevar[imgdir_misc]/load.gif" alt="" border="0" /></div>
			</if>
		</blockquote>
	</div>
	</td>
</tr>
</table>
</form>
<if condition="$postvars">
<!-- redirect with POST -->
<script type="text/javascript">
<!--
fetch_object('click_here_p').style.display = 'none';
myvar = "";
timeout = 18;
timerID = 0;
function proceed_click()
{
	clearTimeout(timerID);
	return true;
}
function submit_form()
{
	window.status = "Redirecting" + myvar;
	myvar = myvar + " .";
	timerID = setTimeout("submit_form();", 100);
	if (timeout > 0)
	{
		timeout -= 1;
	}
	else
	{
		clearTimeout(timerID);
		window.status = "";
		document.forms.postvarform.submit();
		fetch_object('proceed_button').disabled = true;
	}
}
submit_form();
//-->
</script>
<!-- / redirect with POST -->
<else />
<noscript>
<meta http-equiv="Refresh" content="2; URL=$url" />
</noscript>
<script type="text/javascript">
<!--
function exec_refresh()
{
	window.status = "$vbphrase[redirecting]" + myvar;
	myvar = myvar + " .";
	var timerID = setTimeout("exec_refresh();", 100);
	if (timeout > 0)
	{
		timeout -= 1;
	}
	else
	{
		clearTimeout(timerID);
		window.status = "";
		window.location = "$js_url";
	}
}
var myvar = "";
var timeout = 20;
exec_refresh();
//-->
</script>
</if>
</body>
</html>
the width should now be the same as whatever you set your forum width to be. If you would like to adjust the width you can change the "$stylevar[outertablewidth]" to any size you want.

Download

No files for download.

Screenshots

Click image for larger version
Name:	after.jpg
Views:	188
Size:	29.1 KB
ID:	119562   Click image for larger version
Name:	before.jpg
Views:	184
Size:	33.8 KB
ID:	119563  

Similar Mods

Mini Mods Redirect guests to register page from no permission page. Increase Registrations vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024