Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: add link = add user ... how?

Quote Reply
Re: add link = add user ... how? In reply to
Well, if you are not using the authentication plug-ins like w3t, then you can muck with the links internals a bit more.

I would actually probably do it the simplest way I could, that would survive updates and upgrades with the minimal amount of effort.

That means, put the changes in the add/modify.cgi script, and leave everything else alone.

When the user submits a "new" link, if you have authentication on, you can do one of several things. Modify add.cgi so that if the user exists, they _cannot_ add a new link, they are forced to the modify form, showing their ONE link, where they are advised to create a new user ID if they want to add a new link. If they are not logged in, they are taken to the "log in" form, to either log in, or create a new user ID, so all that stuff doesn't have to be touched. (maybe just put a note that each link must have a separate User ID).

Personally, this is how I would do it. It means only changing add.cgi, using everything else in Links the way it is, and with luck, you'd only have to cut/paste a few lines of code between versions of add.cgi (maybe even be able to use the old version of add.cgi for the most part!).

Make sense for what you want to do?



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Subject Author Views Date
Thread add link = add user ... how? Matt G 1653 Apr 13, 2001, 11:57 AM
Thread Re: add link = add user ... how?
pugdog 1611 Apr 13, 2001, 12:18 PM
Thread Re: add link = add user ... how?
Matt G 1597 Apr 13, 2001, 1:38 PM
Post Re: add link = add user ... how?
Stealth 1579 Apr 13, 2001, 3:51 PM
Post Re: add link = add user ... how?
pugdog 1564 Apr 13, 2001, 10:32 PM