vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   redirecting page (incorrect window size) (https://vborg.vbsupport.ru/showthread.php?t=142936)

webgeek247 03-23-2007 04:02 PM

redirecting page (incorrect window size)
 
Hello



I am trying to get the
Quote:

redirecting...
page which appears after you've posted to be the same size as the rest of the template



http://www.djpassion.co.uk/forums/



How do I get the default window size for the redirecting window to be the same size as the rest of the forum template?



This is the only code I can find at the moment which is in the located in STANDARD_REDIRECT



Quote:


$stylevar[htmldoctype]

<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">

<head>

<if condition="!$postvars">

<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>

$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="70%" 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" value="$vbphrase[proceed]" accesskey="s" />

<else />

<p class="smallfont"><a href="$url">$vbphrase[click_if_browser_does_not_redirect]</a></p>

<div>&nbsp;</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';

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();

}

}

myvar = "";

timeout = 18;

submit_form();

//-->

</script>



<!-- / redirect with POST -->

</if>

</body>

</html>



I can't figure this out... please help as it's bugging the hell out of me

see how the redirect box is going over on each side
i want it in line with the rest of the template

http://i101.photobucket.com/albums/m...l/redirect.jpg

help would be much appreciated

chris

TheMilkCarton 03-23-2007 04:39 PM

Find 70% in that template and change it to a fixed width. If your forums are 800 wide I would say make it 640 or 760.

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="760" align="center">

You'll also have to do this for the REGISTER template, and others. I had to when changing to fixed width, and I'm not quite sure why vBulletin didn't set it up so that it always followed the width you had set in the style.


All times are GMT. The time now is 08:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02246 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete