Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Can I Make The Add, Modify, Search Pages Accept SSI?

Quote Reply
Can I Make The Add, Modify, Search Pages Accept SSI?
Is their anyway I can do this? Im trying to put a link rotating script on them but the ads wont apear. They apear on the other pages because they are index.shtml. And I renamed the temlpates for add,modify,search, ect... to .shtml. But it didnt work.

Any Ideas???
Quote Reply
Re: Can I Make The Add, Modify, Search Pages Accept SSI? In reply to
In links.cfg there are the following:

# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";

My guess would be you can change the extension to .shtml

I never did this, so it is only my guess.
Quote Reply
Re: Can I Make The Add, Modify, Search Pages Accept SSI? In reply to
No that wont work, SSI wont work in SSI. Here is the reason from the Apache Doc :

Quote:
9.How can I have my script output parsed?

So you want to include SSI directives in the output from your CGI script, but can't figure out how to do it? The short answer is "you can't." This is
potentially a security liability and, more importantly, it can not be cleanly implemented under the current server API. The best workaround is for your
script itself to do what the SSIs would be doing. After all, it's generating the rest of the content.

This is a feature The Apache Group hopes to add in the next major release after 1.3.

------------------
Sincerely,

Netoo! Support
Netoo! Internet Services Of America.
http://www.netoo.phiberoptix.com
Quote Reply
Re: Can I Make The Add, Modify, Search Pages Accept SSI? In reply to
Err, SSI wont work in CGI.

------------------
Sincerely,

Netoo! Support
Netoo! Internet Services Of America.
http://www.netoo.phiberoptix.com
Quote Reply
Re: Can I Make The Add, Modify, Search Pages Accept SSI? In reply to
You could think about adding sub-routines within the cgi scripts or create global values and add them in the
site_html_templates.pl file.

You can "call" sub-routines by placing &sub_routine; in your cgi files.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Can I Make The Add, Modify, Search Pages Accept SSI? In reply to
The problem would be as in the case of webadverts who prints the data instead of returning them.

------------------
Sincerely,

Netoo! Support
Netoo! Internet Services Of America.
http://www.netoo.phiberoptix.com