Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Add only in one category

Quote Reply
Add only in one category
http://www.gossamer-threads.com/scripts/forum/resources/Forum9/HTML/000331.html

Here is a solution working only without mod_perl :-(
I would really miss my mod_perl; so what could be done else?
When having more than x cats its not practicable to show them all.

Robert

Quote Reply
Re: Add only in one category In reply to
What you could do is put a new variable in the Admin programs called something like "$admin_feature" and set it to 1 before calling the template routines, and when you get back set it back to 0.

The other thing you could do, is if the User features are improved, force the Admin to log-on to the system, and if their userid matches an "editor" present them with the category list.

This is a subtlty of mod_perl that I'm trying to figure out -- when and where these sort of things will happen.

If it can't pick out $ENV{REMOTE_USER}, how can it pick out $ENV{'REMOTE_ADDR'} to update the tables? In each case it would have to have specific information on the remote connection.

I thought this would be server-side, and on a per-connection basis, not a compiled or in-memory basis.

Maybe someone knows for sure.

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

Quote Reply
Re: Add only in one category In reply to
I have tried it with a new one in links.pm and change all in admin.cgi and admin_templates, but it seems the var would initialisized elsewhere. But its a good tip to find all the places and say something like:
If adminvar=1 then set catlist to 1; else normal like in links.pm.
I will try this ... but maybe it makes more sense to wait just a day. Alex wrote till end of week; here in germany its 17:39pm; so he has still 6:21 hours :-)

Robert


Quote Reply
Re: Add only in one category In reply to
Have thought about the problem to add or not to add; should be a snap with a new field named add and something like:
<%if add%> Write Link to add.cgi?ID

Now i must only solve the admin-problem.
BUT ... i hate this waiting; cant understand, why Alex could not send one lonely sentence to the forum, with something like: Monday ...