What does it do?
This Mod simply smartens up the Redirect page users get when they login to the site. The change that has been made moves the button "Click here if your browser does not automatically redirect you." into the bordered box which (in my eyes) makes the page look a lot more professional and also looks smarter.
Why did I do it?
IT has bugged me since I installed vB4 as a BETA, and I have had this template change on my site since I found the template to edit. It may not be for everyone, and some may even find it pretty stupid that I have even put this edit up on vB.orb but I feel that it makes everything look a lot neater than default!
How to make this change
Enter the Admin CP. Navigate to Styles and Templates -> Style Manager. Chose the style you want to edit, and from the drop-down menu select Edit Templates (at the top of the list). Now open up and edit the "STANDARD_REDIRECT" template. Remove all of the code that is in there, and replace with what is in the box below.
PHP Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
{vb:raw headinclude}
<title>{vb:raw pagetitle}</title>
{vb:raw headinsert}
{vb:raw headinclude_bottom}
</head>
<body>
<div class="standard_error">
<form class="block vbform" method="post" action="{vb:raw formfile}" name="postvarform">
<h2 class="blockhead">{vb:rawphrase redirecting}</h2>
<div class="blockbody formcontrols">
<p class="blockrow restore">{vb:raw errormessage}</p>
<vb:if condition="$postvars">
{vb:raw postvars}
<p class="blockrow" id="click_here_p">{vb:rawphrase click_the_following_button}</p>
</vb:if>
<div align="right">
<vb:if condition="$postvars">
<input type="submit" class="button" id="proceed_button" value="{vb:rawphrase proceed}" onclick="proceed_click()" accesskey="s" tabindex="1" />
<vb:else />
<a href="{vb:raw url}" class="textcontrol">{vb:rawphrase click_if_browser_does_not_redirect}</a>
</vb:if><br /><br />
</div>
</div>
</form>
</div>
<vb: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 -->
<vb:else />
<noscript>
<meta http-equiv="Refresh" content="2; URL={vb:raw url}" />
</noscript>
<script type="text/javascript">
<!--
function exec_refresh()
{
window.status = "{vb:rawphrase redirecting}" + myvar;
myvar = myvar + " .";
var timerID = setTimeout("exec_refresh();", 100);
if (timeout > 0)
{
timeout -= 1;
}
else
{
clearTimeout(timerID);
window.status = "";
window.location = "{vb:raw js_url}";
}
}
var myvar = "";
var timeout = 20;
exec_refresh();
//-->
</script>
</vb:if>
{vb:raw footer}
</body>
</html>
I have attached screenshots to show the before and after of this mod, so you can see exactly what it does.
If you use this mod, please mark as installed, support is aimed at all those who have marked as installed.