Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Question regarding Pugdogs jump.cgi

Quote Reply
Question regarding Pugdogs jump.cgi
Hi pugdog,

On your site, when you use jump.cgi, like the one here:

http://postcards.com/...cards/jump.cgi?ID=10

The script doesn't redirect, but only takes you too a page which shows the postcard, etc, etc.
Is this just a type of dynamic detailed page?

Thanks.


Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
Quote Reply
Re: Question regarding Pugdogs jump.cgi In reply to
I believe that pugdog is using similar codes posted in the detail.cgi Mod in the jump.cgi script. I have this working in my Postcard site and also Library sites.

Regards,

Eliot Lee
Quote Reply
Re: Question regarding Pugdogs jump.cgi In reply to
That is about the 70th generation of my jump.cgi.

I just converted all my ugly hacks to a template based system.

On my sites, all (well 99.9%) of the links re-direct to an internal page. My "link" is just an absolute path, without http:. Any link with http: is an external link, and handled in the normal way.

So, I have jump.cgi set up when it accepts an ID number only, without an http: in the url, it starts the "send card" process. If there is an http: it redirects to the location as normal.

If it finds an ID number + .html it redirects to the detailed page.

I also wrote a detailed.cgi to auto-generate the detailed pages, using the reverse type logic. I wanted detailed pages to be dynamically generated, but statically linked (so the user was kept in static mode).

Not hard, but you need to think about what you are trying to do, before doing it. Otherwise you start getting into recursive logic problems, when really it is just a straight through decision tree, with the end point as the display of a page either via a cgi, static link, or redirect.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Question regarding Pugdogs jump.cgi In reply to
Hi pugdog,

Interesting.
So, if there is no http: in the url, it starts the send card process.

Is the send card process done internally in jump.cgi, or does jump.cgi redirect to an internal html page which shows the postcard image?

Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
Quote Reply
Re: Question regarding Pugdogs jump.cgi In reply to
jump.cgi just sends the data to HTML_Templates.pm which outputs the first send-card page. From there, the user is re-directed through the cards process.

That is the only "hard coded" page.

<%db_cgi_url%>/postcards.cgi?

And then, postcards.cgi just collects the information and passes it through, until the end, when it saves the record.

Actually, jump.cgi is one of my favorite programs to hack, most of the add ons I've done have used that as the base, and I've rewritten most of it to do all the different things.

I would really like to get the next version out, and start working on the "new" jump.cgi, and trying to make it more of a module. Under mod_perl, there would be a major systems resource savings. On my system, jump.cgi uses more resources (cpu) than search.cgi <G> I wonder if turning it into an apache module would work.... call it as a handler ... http://servername.com/jump





PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ