HTML Guru Here

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dr Dollarz
    New Member
    • Apr 2000
    • 8

    HTML Guru Here

    If anyone has any HTML problems or just want the code to soemthing than post it here, I will probrably be able to help you.
  • cheeky
    Member
    • Apr 2000
    • 73

    #2
    Typo Guru here

    Actually, you can pick my brains on either:-

    * HTML
    * Javascript

    and especially
    * Active Server Pages

    no problem too hard.

    Comment

    • someone
      Member
      • Apr 2000
      • 71

      #3
      Here's a braintester

      Let's say you have vBulletin setup on a website which uses frames (frameset rows="*,400,*"):

      - topframe contains navigation
      - middleframe contains vBulletin
      - bottomframe contains a banner

      Here's the problem: when a user discovers a cool topic which he wants to email to someone else, that 'someone else' will get the url from the middle frame.

      As a board admin, I want ofcourse the top & bottom frame to be displayed as well, cause they contain valuable information & navigation.

      Is there any way to do this? I know the easiest way is not to work with frames, but with headers|footers|layers or whatever, but WE WANT FRAMES

      Any solutions for this guys. Maybe some kind of script that tells certain pages to be placed automaticle in a frametemplate???

      Comment

      • cheeky
        Member
        • Apr 2000
        • 73

        #4
        The redirect or reference URL must point to a file that takes that information and writes the new framing out to the browser.

        I don't know how vBulletin works - but it is very simple to do. I'd imagine you just need to change the reference URL in the email to one of your own that configures the browser frames.

        let me know how you get on.

        Comment

        • someone
          Member
          • Apr 2000
          • 71

          #5
          Do you have any links where this redirect or reference URL script is explained? Preferable cgi...

          Comment

          • cheeky
            Member
            • Apr 2000
            • 73

            #6
            no I don't!
            but I'll give you the basic skeleton.

            this is the current URL that gets sent:-



            change it to:-



            the "framehandler.asp" file simply:-

            * picks up the querystring information
            * stores it
            * writes out the FRAMES format of your window

            The middle frame has dynamic content referencing the "SHOWTHREAD" file with this query information.

            I'm an ASP expert, not cgi!

            <%
            Dim myThread
            myThread = request.querystring("threadid")
            %>

            <html>
            <head>
            </head>
            <frameset frameborder=no border=0 rows='*,400,*' framespacing=0 framecolor="#000000">

            <frame src="navigation.asp" border=0 marginwidth=0 marginheight=0 noresize scrolling="no">

            <frame src='http://www.yoursite.com/forum/showthread.php?threadid=<%=myThread%>'> noresize scrolling="auto">

            <frame src="clickbanners.asp" border=0 marginwidth=0 marginheight=0 noresize scrolling="no">

            </frameset>

            <noframes>Sorry, this site uses frames! If your browser does not support them click <a href='/noframesfilehandler.asp'>here</a></noframes>
            </html>



            note: this has not been tested, but should be pretty close to what you need.



            Comment

            • someone
              Member
              • Apr 2000
              • 71

              #7
              I'm sorry, our server is Unix based, so I can only use cgi & php... no asp. and since I'm a newbie in scripting....

              Comment

              • cheeky
                Member
                • Apr 2000
                • 73

                #8
                well, just simply replace the ASP part with the UNIX equivalent, whatever it is. I don't use UNIX so I don't know., but it must be pretty simple.

                Dr.Dollarz should be able to complete the simple conversion of the request.querystring format for you, and you've practically got the rest already.

                good luck.

                Comment

                • Stallion
                  Senior Member
                  • Apr 2000
                  • 704

                  #9
                  php is simpler

                  create showframes.php:
                  ------
                  <html>
                  <head>
                  </head>
                  <frameset frameborder=no border=0 rows='*,400,*' framespacing=0 framecolor="#000000">

                  <frame src="navigation.asp" border=0 marginwidth=0 marginheight=0 noresize scrolling="no">

                  <frame src='http://www.yoursite.com/forum/showthread.php?threadid=<? echo threadid; ?>'> noresize scrolling="auto">

                  <frame src="clickbanners.asp" border=0 marginwidth=0 marginheight=0 noresize scrolling="no">

                  </frameset>

                  <noframes>Sorry, this site uses frames! If your browser does not support them click <a href='/noframesfilehandler.asp'>here</a></noframes>
                  </html>
                  ------
                  Just call it via showframes.php3?threadid=255

                  There's also another option where you can force your forums page to open up with the frame set around it...but that involves JavaScript.

                  Comment

                  • someone
                    Member
                    • Apr 2000
                    • 71

                    #10
                    Thanks a lot for the help guys....

                    I have found a javascript solution as well here:

                    Comment

                    • someone
                      Member
                      • Apr 2000
                      • 71

                      #11
                      Re: php is simpler

                      Originally posted by Stallion
                      create showframes.php:
                      <frame src='http://www.yoursite.com/forum/showthread.php?threadid=<? echo threadid; ?>'> noresize scrolling="auto">


                      I just tested it out, but it looks like this part of the code doesn't return the treadID#, in fact this is what I get when I run the script:

                      <frame src='http://www.yoursite.com/forum/showthread.php?threadid=treadid' noresize scrolling="auto">



                      WHat do I have to do to fix this script?

                      Comment

                      • Mike Sullivan
                        Former vBulletin Developer
                        • Apr 2000
                        • 13327
                        • 3.6.x

                        #12
                        Try making the little PHP part look like this:
                        <?php echo $threadid ?>

                        Comment

                        • cheeky
                          Member
                          • Apr 2000
                          • 73

                          #13
                          so that's what the PHP equivalent of ASP looks like.

                          the code here should solve "someone"'s problem.

                          cheers

                          Comment

                          Related Topics

                          Collapse

                          Working...