Back to vBulletin 4.x Template Modifications

Redirect Re-write
Mod Version: 1.00, by PukkaBen

vB Version: 4.0.x Rating: (1 vote - 5.00 average) Installs: 20
Released: 26 Jan 2010 Last Update: Never Downloads: 0
Not Supported Template Edits  

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">
            <
class="blockrow restore">{vb:raw errormessage}</p>
            <
vb:if condition="$postvars">
                {
vb:raw postvars}
                <
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.

Download

No files for download.

Screenshots

Click image for larger version
Name:	redirect-rewrite-before.png
Views:	566
Size:	7.6 KB
ID:	111110   Click image for larger version
Name:	redirect-rewrite-after.png
Views:	545
Size:	7.6 KB
ID:	111111  

Similar Mods

Move threads with leave no redirect as default or Expired redirect as default vBulletin 3.6 Template Modifications
Mini Mods Login Redirect - Redirect your users to their User CP or Profile when logging on vBulletin 3.7 Add-ons
Redirect to Register Hack - Redirect from newreply.php, newthread.php & usercp.php... vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024