Announcement

Collapse
No announcement yet.

Changing Meta refresh time on user login

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing Meta refresh time on user login

    When a user logs into our forum, there is a 2-second pause between showing the "you have successfully logged in" and the user being redirected to the forum. I've searched through and found how to change the meta refresh tags in the vbulletin-style.xml file, and I've done that. It doesn't affect the login page though....

    When I view source on the login page as it's getting ready to redirect, I still see <meta http-equiv="Refresh" content="2; URL=MyURL/">

    Is there any way to change this, or am I stuck with a 2 second pause?

    Thanks!
    www.peerimpact.com

    Completely legal peer-to-peer music sharing!

  • #2
    You can change this by editing the STANDARD_REDIRECT template.
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      This is what my STANDARD_REDIRECT template looks like (I tried modifying it already, doesn't seem to have affected the login)


      Code:
      <template name="STANDARD_REDIRECT" templatetype="template" date="1086816579" username="freddie" version="3.0.2"><![CDATA[$stylevar[htmldoctype]
      <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
      <head>
      		<title>$pagetitle</title>
      <if condition="is_browser('mozilla')">
      		<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 = 0;
      		exec_refresh();
      		//-->
      		</script>
      <else />
      		<meta http-equiv="Refresh" content="0; URL=$url">
      </if>
      $headinclude
      </head>
      <body>
      www.peerimpact.com

      Completely legal peer-to-peer music sharing!

      Comment


      • #4
        Sorry, I don't know what the correct HTML would be to do this.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          Okay, I appreciate your help. A week or so ago I had searched around and saw that I needed to modify the "timeout" variable, and also the "content" attribute on the meta tag. It seems to have sped up some of the other pages that use redirects, but the login page still has a refresh time of 2 seconds.

          Anyone else seeing this problem, or know a solution?
          www.peerimpact.com

          Completely legal peer-to-peer music sharing!

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X