PDA

View Full Version : how do you remove UGLY borders around text from redirecting page (STANDARD_REDIRECT)?


benative
06-19-2011, 04:20 AM
basically, I want only text to remain. can I remove the blue, white, and gray box I pointed with the red arrows?

https://vborg.vbsupport.ru/external/2011/06/41.jpg

BirdOPrey5
06-19-2011, 11:26 AM
Is that VB3? It looks like 4.x?

I suppose in either case you'd edit the STANDARD_REDIRECT template. But the exact edits will be different depending on the version.

Lynne
06-19-2011, 03:57 PM
Moved to vB4 forum.

LifesGreatestGift
06-19-2011, 04:02 PM
Replace everything in STANDARD_REDIRECT with

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> 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>
<form method="post" action="{vb:raw formfile}" name="postvarform">
<h2 class="blockhead">{vb:rawphrase redirecting}</h2>
<div>
<p class="blockrow restore">{vb:raw errormessage}</p>
<vb:if condition="$postvars">
{vb:raw postvars}
<p id="click_here_p">{vb:rawphrase click_the_following_button}</p>
</vb:if>
</div>
<div>
<div>
<vb:if condition="$postvars">
<input type="submit" id="proceed_button" value="{vb:rawphrase proceed}" onclick="proceed_click()" accesskey="s" tabindex="1" />
<vb:else />
<a href="{vb:raw url}">{vb:rawphrase click_if_browser_does_not_redirect}</a>
</vb:if>
</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>

Just removed most of the class/styling from dom elements. If you do not like the look, revert the template, go through the code, and edit/remove the class' that you do not want to show. Create your own, etc :)