View Full Version : cgi linking code wanted
Weapon
June 23rd, 2001, 05:10
I am looking for a script, which does this:
when ever someone clicks a link on my site and goes to another it shows a liitle bar at the bottom with the page of my choice and the top with the page the link sent them, its like making a 2 frame page for every external link, but instead of having to make one for every link it only does one
keith
June 23rd, 2001, 09:40
i made one using php if you like. looks something like this:
http://www.weezerfans.com/go/?url=www.asdf.com&title=This+Is+ASDF.COM
two very small scripts. and yeah, the link at the top brings you back to the page where the link was clicked, so in this case, it'll bring you back here, not any weezerfans.com pages.
anyhow, i can send it to you if you wouldn't mind php.
Weapon
June 23rd, 2001, 17:29
i am sorry but I am not a big fan of php, do you have one in cgi?
keith
June 23rd, 2001, 20:18
i could write you one when i get back home tonight, assuming someone doesn't beat me to it by then. should be pretty simple.
Weapon
June 23rd, 2001, 20:31
oh yes please that would be much appreciated, anything I can do for you since you are so generous?
keith
June 24th, 2001, 13:19
http://www.joebluhm.com/go/external_link.zip
there're the files zipped up.
here's how you'd call it:
http://www.joebluhm.com/go/go.pl?www.yahoo.com
you probably understand how to modify the colors, frame sizes, html code, etc... if not, just ask.
keith
June 24th, 2001, 13:22
whoops... just read your original post again. if you still want the small frame at the bottom, let me know, unless you can do it yourself...
keith
June 24th, 2001, 21:16
well, since you offered, you could pay for a dedicated server for me from tera-byte.com. no complaints here. :cool:
Weapon
June 24th, 2001, 23:52
Originally posted by keith
whoops... just read your original post again. if you still want the small frame at the bottom, let me know, unless you can do it yourself...
Bottom, top doesn't make much difference
Originally posted by keith
well, since you offered, you could pay for a dedicated server for me from tera-byte.com. no complaints here. :cool: lalalal, oops? did someone say somthing?
Weapon
June 24th, 2001, 23:56
it doesn't seem to work the linking part, aren't you suppose to put the cgi script in the link some where?
gyrbo
June 25th, 2001, 03:25
The ? does. It's like calling an index.htm page, but then index.pl/cgi You don't type www.yahoo.com/index.htm do you?
Weapon
June 25th, 2001, 03:57
so you can put it in any dir and .../go/?.... will call it? ok then if so check out my front page where it says here, don't seem to work http://otashki.hypermart.net
meow
June 25th, 2001, 06:33
Just yell at him, Keith. He scares easily. ;)
gyrbo
June 25th, 2001, 09:33
Originally posted by Weapon
so you can put it in any dir and .../go/?.... will call it? ok then if so check out my front page where it says here, don't seem to work http://otashki.hypermart.net
Well, your host must have index.pl/cgi enabled as startpage. Otherwise, it doesn't work.
Weapon
June 25th, 2001, 15:19
Originally posted by meow
Just yell at him, Keith. He scares easily. ;)
arhh!!! the crazed cat is after me again!!
keith
June 25th, 2001, 15:52
ok, this might be my fault. the way i wrote the code, it must be in a directory called /go/. i shouldn't have done that to begin with.
http://www.joebluhm.com/go/external_link.zip
download that one now. i changed the "index.l" to "go.pl" and now go.pl and topframe.pl only have to be in the same directory. chmod 755. you can rename go.pl to whatever you'd like, but if you rename topframe.pl, you must change it's name in go.pl as well.
call the script like this:
http://www.joebluhm.com/go/go.pl?www.yahoo.com
Weapon
June 26th, 2001, 01:36
what if I wanted to add another piece of html where and how would I do it?
gyrbo
June 26th, 2001, 04:13
I think you should change topframe.pl
Weapon
June 26th, 2001, 04:23
Originally posted by gyrbo
I think you should change topframe.pl
what exacly do u mean?:rolleyes:
keith
June 26th, 2001, 16:17
what kind of html would you want to add? all the html is generated purely through cgi:
print "<a href=\"$ENV{'QUERY_STRING'}\" target=\"_top\">Break Frames</a>\n";
maybe i could add it for you, since you don't really seemd to know a lot about this type of thing. let me know what you'd want added [like changing "whatever.com" to your real address or title].
Weapon
June 26th, 2001, 22:30
I know I will get in trouble but here goes <noscript><!--#echo banner=""--></noscript>
keith
June 26th, 2001, 23:37
ok, you can add that yourself. all i'll tell you is to add \ before any "
so make these: "
look like this: \"
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.