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

how to move templates

Quote Reply
how to move templates
Hello,The way we have links sql setup, is directory/admin/templates. the problem with this is that when we password protect our admin directory, it can't use the template files unless you enter in your username and password for .htaccess, so in the non sql version we could tell links where to find the templates, but I don't see that option in the links.pm file, perhaps it's there and I missed it.

Can anyone tell me how to tell links that the templates are in a different directory?

Thank you
Harrison


"I've got if's pretty good, but that's about it"
Quote Reply
Re: how to move templates In reply to
Whoa!

Server security has _nothing_ to do with the perl scripts being able to find the template files!

Perl doesn't use the .htaccess files at all!

Perl, not the webserver requests the template files -- the same way it requests the Links.pm file on every script execution.

You don't have your Links.pm file unprotected, do you??

You don't want to move the templates out of the procted directory, since if you do, you run the risk of altered templates doing altered things.

Either you've got a big problem going on, or you didn't explain the situation fully.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: how to move templates In reply to
Sounds like an NT host. =) I'm not an expert, but on NT you need to remove read access from your files to make it work. However, if you remove read access from your Links.pm, or template files, all the user .cgi break.

The solution? Only remove access from *.cgi in the admin directory. You need to leave it for the others. This is a little dangerous, and if anyone has a better suggestion, I'd love to know. =)

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: how to move templates In reply to
My faux pas.

Sorry for the stupid question, I seem to remember a while back (though on which server we were on I dont remember), that if we kept the templates from links nonsql in a directory under a password protected directory, then the images on those pages required the user to login, in this case, we gave it a try and it seems fine.

Thanks and sorry.
Harrison


"I've got if's pretty good, but that's about it"
Quote Reply
Re: how to move templates In reply to
You have to serve the images from the main "public" tree. Apache won't serve pages/images from a cgi-bin directory.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/