Announcement

Collapse
No announcement yet.

redirecting page

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

  • redirecting page

    Hello

    I am trying to get the
    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

    $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

    Chris
    Web Hosting Forum | Fastest Hosting | Backup Storage

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

    Web Hosting Forum | Fastest Hosting | Backup Storage

    Comment


    • #3
      Look for the following bit of code, and change the value that I highlighted in red to whatever you desire.

      <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>
      ~ Life isn't always fair, but you can be. ~

      Comment


      • #4
        ah thats better. thanks for that cbiweb, much appreciated!

        cheers
        chris
        Web Hosting Forum | Fastest Hosting | Backup Storage

        Comment


        • #5
          Another little problem... I've just been told that the register box is going over to right

          See here guys http://www.djpassion.co.uk/forums/register.php

          How do I correct this???
          Web Hosting Forum | Fastest Hosting | Backup Storage

          Comment


          • #6
            Looks okay to me (see screenshot), in Firefox and IE6. Unless you're talking about Day and Year being further away from Month?
            Attached Files
            ~ Life isn't always fair, but you can be. ~

            Comment


            • #7
              I meant the page after
              It’s the rules screen that is out just after the birthday page lol...
              Last edited by webgeek247; Tue 17 Apr '07, 3:39pm.
              Web Hosting Forum | Fastest Hosting | Backup Storage

              Comment


              • #8
                anyone ???
                Web Hosting Forum | Fastest Hosting | Backup Storage

                Comment


                • #9
                  Thats the register_rules template. It uses the form width set in your StyleVars for your style.
                  Kerry-Anne :)

                  Twitter Blog

                  www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

                  Comment


                  • #10
                    Any idea what size i set it too? I've tried changing the size but it doesn't change it to the right size

                    in the register_rules template I have

                    Code:
                     
                    $stylevar[htmldoctype]
                    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
                    <head>
                    $headinclude
                    <title>$vboptions[bbtitle] - <if condition="$show['coppa']">$vbphrase[coppa_rules]<else />$vbphrase[forum_rules]</if></title>
                    </head>
                    <body>
                    $header
                    <br />
                    <br />
                    <form action="register.php?do=register" method="post">
                    <input type="hidden" name="s" value="$session[sessionhash]" />
                    <input type="hidden" name="do" value="register" />
                    <input type="hidden" name="url" value="$url" />
                    <input type="hidden" name="month" value="$month" />
                    <input type="hidden" name="day" value="$day" />
                    <input type="hidden" name="year" value="$year" />
                    <if condition="$show['coppa']">
                    <input type="hidden" name="who" value="coppa" />
                    <else />
                    <input type="hidden" name="who" value="adult" />
                    </if>
                    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                    <tr>
                     <td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[x_rules]</phrase></td>
                    </tr>
                    <tr>
                     <td class="panelsurround" align="center">
                     <div class="panel">
                      <div style="width:$stylevar[formwidth]" align="$stylevar[left]">
                     
                       <fieldset class="fieldset">
                        <legend>$vbphrase[forum_rules]</legend>
                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                        <tr>
                         <td>$vbphrase[to_proceed_must_agree]</td>
                        </tr>
                        <tr>
                         <td>
                          <div class="page" style="border:thin inset; padding:$stylevar[cellpadding]px;<if condition="!is_browser('konqueror')"> height:175px; overflow:auto</if>">
                     
                           <if condition="$show['coppa']">
                           <!-- coppa regulations -->
                           <p><strong>$vbphrase[coppa_policy]</strong></p>
                     
                           <phrase 1="$vboptions[bbtitle]" 2="$vboptions[forumhome].php$session[sessionurl_q]" 3="register.php?$session[sessionurl]do=coppaform" 4="$vboptions[webmasteremail]">$vbphrase[coppa_rules_description]</phrase>
                           <!-- / coppa regulations -->
                           </if>
                     
                           <!-- regular forum rules -->
                           <phrase 1="$vboptions[forumhome].php$session[sessionurl_q]" 2="$vboptions[bbtitle]">$vbphrase[forum_rules_description]</phrase>
                           <!-- regular forum rules -->
                     
                          </div>
                          <div><label for="cb_rules_agree"><input type="checkbox" name="agree" id="cb_rules_agree" value="1" /><strong><phrase 1="$vboptions[bbtitle]">$vbphrase[read_agree_abide_by_rules]</phrase></strong></label></div>
                         </td>
                        </tr>
                        </table>
                       </fieldset>  
                      </div>
                     </div>
                     
                     <div style="margin-top:$stylevar[cellpadding]px">
                      <input type="submit" class="button" value="$vbphrase[register]" accesskey="s" />
                     </div>
                     </td>
                    </tr>
                    </table>
                    </form>
                    <br />
                    <br />
                    $footer
                    </body>
                    </html>
                    Web Hosting Forum | Fastest Hosting | Backup Storage

                    Comment


                    • #11
                      As Kerry-Anne said, you have to set it using the Form Width setting in the StyleVars for your style.
                      ~ Life isn't always fair, but you can be. ~

                      Comment


                      • #12
                        Well no matter what I do in the StyleVars section it doesn't correct it. To me the box is fine going by the inner line but the rules are making the box g over... so at a guess it's something to do with the text
                        Web Hosting Forum | Fastest Hosting | Backup Storage

                        Comment


                        • #13
                          I've set Form Width (pixels) to 758px and now it looks a lot better, at now it has a scroll bar and text isn't going way out of the screen but the text is still going over slightly and so is the box

                          Thanks for you help guys… not quite right yet though…
                          Web Hosting Forum | Fastest Hosting | Backup Storage

                          Comment


                          • #14
                            Where’s the proper vb staff at lol

                            I basically just want the same size as this vb one so that it matches my homepage http://www.djpassion.co.uk/

                            I need the register rules box and the post new thread boxes to fit properly inside the thin template though
                            Web Hosting Forum | Fastest Hosting | Backup Storage

                            Comment


                            • #15
                              As I said, you need to adjust the form width in the StyleVars for your style. We don't know what values you should use, nor do we support custom styles. You will need to experiment with this setting. Make sure you are changing it in the right style too.
                              Kerry-Anne :)

                              Twitter Blog

                              www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

                              Comment

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