View Full Version : Can I add a redirect menu to my gb script?
Bekariso
11-04-1998, 03:29 PM
Hey everyone. I thought I better ask this question rather than trying it out and possibly mucking up the cgi script.
Can I add a redirect pulldown menu to my "Thanks for signing my guestbook" page? I can add HTML in my guestbook.setup.cgi file, but I don't know if this would work or not, or if it would be some kind of coding clash. Let me know, no hurry.
Thanks!
Bekariso
Hi Bekariso,
Yes, you can the redirect menu to both your .cgi file and your .html file with the guest book.
BUT!!!!!!
When adding it to the .cgi file you must treat it carefully and remember that it is a Perl Script. Quotes (") must contain a forward slash (/) in front of them as well as at-signs (@).
If you are comfortable coding in Perl then you'll have no problems what so ever. If you are not comfortable with Perl yet then I would advice doing some reading first and/or only adding the redirect menu to the guestbook.html file.
In the .html file all is normal HTML it's only in the .cgi file that things get a lil touchy and one mistake may break your entire guest book.
(Btw - Terra says if you seriously made him look like a wonderful man, and told him how great he is, and reminded him how overboard he tends to go to please all of the site owners on the FutureQuest server, he just may add it for you)
Hope this helps
Deb
Bekariso
11-04-1998, 04:44 PM
Nope, never done Perl yet before, no clue. Guess I better leave it alone.
What's this about TeRRa? Did the email I just sent go through that fast (cuz just as I sent it your notification of a reply here showed up in my inbox)? Or did my confusion about whether I could reply over at the Server forum actually produce something you could read? Way to confusticate a multi, you know we have trouble with chronology and doing stuff we're not allowed to. ;-)
Anyway, yes, I went on and on about not only does FutureQuest have more tools and services than I could ever imagine using, but the spirit of the people behind FutureQuest is what's truly amazing, and it puts all of those so-called "web communities" to shame.
Actually, there's a leetle thing we'd really really like TeRRa to do to the whole guestbook script (for all susogi guestbooks) -- where it says "State:" (with entry field) it would be really great if it could be changed to read "State/Province" and not be so Americocentric. We suggested this before, but the post might have gotten lost -- it was when the boards first went up.
As for the redirect, don't worry about it, we were just wondering. ;-)
Take care,
Ayeir of Bekariso
hehe We thought the same thing... as soon as I clicked the reply button your email came in
At any rate.. if you would like him to add in the same redirect menu you currently have on the .html file he will.. just need the go ahead... from seeing how he adds it, it may give you enough of a template to be able to make changes on your own when needed. Up to you.
As far as state/province I remember adding that to one of the templates long ago..hrrmm it must have been missed when we updated them for the ability to add your own graphical lines....
At any rate it WILL be added again to the new templates.. e.g. new sites will have it as a default.. for sites that already have guestbooks they will need to make this change themselves.
Here's how...
Open the .cgi file
Scroll down past where it says "DO NOT EDIT BELOW" (muhahha)
Find this line:
<TD><INPUT TYPE = "text" NAME = "state" SIZE = "4"
VALUE = "$form_data{'state'}"></TD>
Change "state" to "state/province"
NOTE: do NOT change {'state'}! Only change "state" to "state/province".
Hope this helps and thanks for bringing up the error again... let's hope the fix remains this time http://www.aota.net/ubb//wink.gif
Deb
Bekariso
11-04-1998, 08:31 PM
Oh boy oh boy I get to (mwahaha) edit below the "DO NOT EDIT BELOW THIS LINE"? Very cool! I will be a good boy and restrain myself to doing exactly what you said.
As for adding the redirect, nah, don't bother, we just like it and were getting a bit too excited about putting it on *all* the pages. We've got a funky little freeware text editor called Note Tab that let us add the whole thing to a menu so that we just put our cursor where we want, double click on "Beka's Redirect" and poof! the file now has a whole and complete redirect menu. Mwahaha again, wanting to put it everywhere! Pages and pages of redirect menus! Okay, calm, deep breathing . . . maybe I should let someone else venture below the "DO NOT EDIT" line . . . did anyone ever mention that my system suspects I'm prone to hypomania?? Whheee!
Maybe I save up my TeRRa coding favour for something else, eh? (Like bailing me out if I do go to far with the redirect menus?)
Safety, healing, and peace!
Ayeir of Bekariso
PS, how do you get your smilies to turn and go yellow?
Bekariso
11-04-1998, 08:49 PM
Now wait a minute . . .
I scroll down past the screaming "Do not edit" box (very frightening and effective, I assure you), and I find:
<TH ALIGN = "left">State:</TH>
<TD><INPUT TYPE = "text" NAME = "state" SIZE = "4"
VALUE = "$form_data{'state'}"></TD>
Now, in my sorta-experience with forms (check out the survey on Shaytar's site -- I watched and offered input), isn't what's between the <TH ALIGN = "left">State:</TH>
what's actually going to show up on the screen on the add entry page? And the "state" is just the name of the input so the script knows where to find what got entered to put in on the guestbook page? Or does it show up too? Or what? Which do I change? Both?
Slightly confusticated,
Ayeir
Oh and yahoomail is being stupid tonight, so I can't reply to your mail there yet (though it finally let me read it) -- no, we never did anything with the graphics page at Susogi. Although my inside sister Reiya has been making a lot of her own graphics and may contribute some once she's done tinkering (we finally found out where to compress JPEG file size in Paint Shop Pro.) And sure, we'll make a "how to link to us" page -- might need a few more ideas of just what you want on it. Hopefully our email will be functional again shortly.
Ayeir.
Ooopppssssss
You are right.. I didn't paste enough of the code to point it out and as such continued to give the wrong advise... :/
Thanks for pointing that out... maybe I shouldn't edit below that line huh? hehe
<TH ALIGN = "left">State:</TH>
Change State: to State/Province
Leave everything else alone http://www.aota.net/ubb//wink.gif
Deb
[This message has been edited by Deb (edited 11-04-98).]
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.