Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
Redirect Page to Long? Details »»
Redirect Page to Long?
Version: 1.00, by Hell Bomb Hell Bomb is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 07-11-2010 Last Update: Never Installs: 4
Re-useable Code  
No support by the author.

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.

Screenshots

File Type: jpg after.jpg (29.1 KB, 0 views)
File Type: jpg before.jpg (33.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-12-2010, 09:11 PM
Hell Bomb Hell Bomb is offline
 
Join Date: Jun 2009
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved
Reply With Quote
  #3  
Old 12-02-2012, 12:53 AM
al2thero al2thero is offline
 
Join Date: Aug 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
Reply

Thread Tools

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 06:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03597 seconds
  • Memory Usage 2,230KB
  • Queries Executed 17 (?)
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)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (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_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
  • 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