Busy Reverting templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manguish
    Senior Member
    • Jan 2004
    • 361

    Busy Reverting templates

    Now i've found time to

    I reverted Standard_Redirect

    And now my redirect box is aligned to the left instead of central!?!

    The code it reverted TO is :

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    <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 = 20;
        exec_refresh();
        //-->
        </script>
    <else />
        <meta http-equiv="Refresh" content="2; URL=$url" />
    </if>
    $headinclude
    <title>$pagetitle</title>
    </head>
    <body>
    
    <br />
    <br />
    <br />
    <br />
    
    <form action="$url" method="get">
    <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>            
                <p class="smallfont"><a href="$url">$vbphrase[click_if_browser_does_not_redirect]</a></p>
                <div>&nbsp;</div>
            </blockquote>
                
        </div>
        
        <script type="text/javascript">
        <!--
            document.write('<div style="margin-top:$stylevar[cellpadding]px">');
            document.write('<input type="submit" class="button" value="$vbphrase[proceed]" accesskey="s" onclick="window.location=\'$url\'; return false" />');
            document.write('<\/div>');
        //-->
        </script>
        </td>
    </tr>
    </table>
    </form>
    
    
    
    
    
    
    
    
    <if condition="$postvars">
    <!-- redirect with POST -->
    
    <form action="$formfile" method="post" name="postvarform">
    $postvars
    </form>
    
    <script type="text/javascript">
    <!--
    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>
    But i don't have the old version i reverted FROM - can anyone help?
    For all your minimoto needs : www.minimotoclub.com
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    That code looks correct.
    Possibly you have something in your headinclude template that is causing this?
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • manguish
      Senior Member
      • Jan 2004
      • 361

      #3
      Headinclude is untouched.

      This only happened since i reverted... Got me baffled.
      For all your minimoto needs : www.minimotoclub.com

      Comment

      • feldon23
        Senior Member
        • Nov 2001
        • 11291
        • 3.7.x

        #4
        It uses the setting in your StyleVars. Maybe your customized template manually put a different value?

        Comment

        • manguish
          Senior Member
          • Jan 2004
          • 361

          #5
          Here's something interesting.

          In IE it is central, in firefox it's left justified....

          Got me well beat this one since it worked pre-revert.

          Stylevars all look ok btw
          For all your minimoto needs : www.minimotoclub.com

          Comment

          • manguish
            Senior Member
            • Jan 2004
            • 361

            #6
            Went back to an old version on one of my test boards and all works.

            Old version is :

            Code:
            $stylevar[htmldoctype]
            <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
            <head>
            <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 = 20;
                exec_refresh();
                //-->
                </script>
            <else />
                <meta http-equiv="Refresh" content="2; URL=$url" />
            </if>
            $headinclude
            <title>$pagetitle</title>
            </head>
            <body>
            
            <br />
            <br />
            <br />
            <br />
            <div align="center">
            <form action="$url" method="get">
            <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>            
                        <p class="smallfont"><a href="$url">$vbphrase[click_if_browser_does_not_redirect]</a></p>
                        <div>&nbsp;</div>
                    </blockquote>
                        
                </div>
                
                <script type="text/javascript">
                <!--
                    document.write('<div style="margin-top:$stylevar[cellpadding]px">');
                    document.write('<input type="submit" class="button" value="$vbphrase[proceed]" accesskey="s" onclick="window.location=\'$url\'; return false" />');
                    document.write('</div>');
                //-->
                </script>
                </td>
            </tr>
            </table>
            </form>
            
            
            
            
            
            
            
            
            <if condition="$postvars">
            <!-- redirect with POST -->
            
            <form action="$formfile" method="post" name="postvarform">
            $postvars
            </form>
            </div>
            <script type="text/javascript">
            <!--
            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>
            New (unworking) Version :

            Code:
            $stylevar[htmldoctype]
            <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
            <head>
            <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 = 20;
                exec_refresh();
                //-->
                </script>
            <else />
                <meta http-equiv="Refresh" content="2; URL=$url" />
            </if>
            $headinclude
            <title>$pagetitle</title>
            </head>
            <body>
            
            <br />
            <br />
            <br />
            <br />
            
            <form action="$url" method="get">
            <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>            
                        <p class="smallfont"><a href="$url">$vbphrase[click_if_browser_does_not_redirect]</a></p>
                        <div>&nbsp;</div>
                    </blockquote>
                        
                </div>
                
                <script type="text/javascript">
                <!--
                    document.write('<div style="margin-top:$stylevar[cellpadding]px">');
                    document.write('<input type="submit" class="button" value="$vbphrase[proceed]" accesskey="s" onclick="window.location=\'$url\'; return false" />');
                    document.write('<\/div>');
                //-->
                </script>
                </td>
            </tr>
            </table>
            </form>
            
            
            
            
            
            
            
            
            <if condition="$postvars">
            <!-- redirect with POST -->
            
            <form action="$formfile" method="post" name="postvarform">
            $postvars
            </form>
            
            <script type="text/javascript">
            <!--
            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 hope this isn't a FF bug.
            For all your minimoto needs : www.minimotoclub.com

            Comment

            • manguish
              Senior Member
              • Jan 2004
              • 361

              #7
              No official answer as to why this don't work in Firefox?

              Still got me beat.
              For all your minimoto needs : www.minimotoclub.com

              Comment

              • briansol
                Senior Member
                • Apr 2006
                • 674
                • 3.6.x

                #8
                whats in your tborder class?

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

                if text-align:left; is in there, firefox will show the table left.

                Comment

                • Cromulent
                  Senior Member
                  • Oct 2005
                  • 627
                  • 3.8.x

                  #9
                  Have you tried clearing the cache in Firefox? Could be something hanging around in there.

                  Comment

                  • manguish
                    Senior Member
                    • Jan 2004
                    • 361

                    #10
                    .tborder has only :

                    padding: 0;
                    margin: 0;
                    border: 1px solid #CBCED1;

                    Cleared the cache and no better. Bugger it - i'll leave it on the old version for now....
                    For all your minimoto needs : www.minimotoclub.com

                    Comment

                    • harmor
                      Senior Member
                      • Aug 2003
                      • 1334

                      #11
                      I may have an idea.

                      Go to the page that causes the problem and save the source (Ctrl+U in FF).
                      Use a program like Beyond Compare to see if anything is different.

                      Comment

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