Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [SandraR] The USER is allowed to ADD CATEGORIES!!

Quote Reply
Re: [SandraR] The USER is allowed to ADD CATEGORIES!! In reply to
Hi,

Not sure if andy did this or not, but thinking about this, it shouldn't be too hard to have happen.

1) *ONLY* for registered users.

2) Keep track of the number of categories a user adds total, or per unit time, and limit it to maybe 5 per 24 or 48 hours _MINIMUM_

3) Give some users "Unlimited" add ability

4) Via a form, that mimics the add-new-category data, you take the submission to an add_cat.cgi script.
4a) That form takes the data and sends it to add_cat.cgi which formats it to the correct hash, then simply either inserts it, or calls the category_add routine in the GT code. From minor playing with the system, inserting a new category using "Insert" or "Add" seems to trigger the foreign key relations, and all the tables (tree, etc) are properly updated, automagically. When I did a category import from one table to another, I used "insert" (I think) and was surprised to see the Tree table updated along with it.


In its simplest form, it's only #4/4a, but that is a *bad* idea. Really.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread The USER is allowed to ADD CATEGORIES!! Mark2 9863 Sep 28, 2002, 3:26 PM
Thread Re: [Mark2] The USER is allowed to ADD CATEGORIES!!
Andy 9763 Sep 30, 2002, 1:47 AM
Thread Re: [Andy] The USER is allowed to ADD CATEGORIES!!
Mark2 9707 Sep 30, 2002, 7:11 AM
Thread Re: [Mark2] The USER is allowed to ADD CATEGORIES!!
SandraR 9420 May 20, 2005, 12:50 PM
Thread Re: [SandraR] The USER is allowed to ADD CATEGORIES!!
SandraR 9430 May 23, 2005, 2:40 PM
Thread Re: [SandraR] The USER is allowed to ADD CATEGORIES!!
SandraR 9348 Jun 7, 2005, 5:36 PM
Thread Re: [SandraR] The USER is allowed to ADD CATEGORIES!!
pugdog 9327 Jun 9, 2005, 7:15 AM
Thread Re: [pugdog] The USER is allowed to ADD CATEGORIES!!
SandraR 9311 Jun 9, 2005, 7:56 AM
Post Re: [SandraR] The USER is allowed to ADD CATEGORIES!!
SandraR 9354 Jun 11, 2005, 1:53 PM
Thread Re: [pugdog] The USER is allowed to ADD CATEGORIES!!
webmaster33 9314 Jun 12, 2005, 4:51 PM
Thread Re: [webmaster33] The USER is allowed to ADD CATEGORIES!!
sangiro 9177 Mar 28, 2006, 12:58 AM
Post Re: [sangiro] The USER is allowed to ADD CATEGORIES!!
webmaster33 9136 Mar 28, 2006, 1:08 AM
Thread Re: [sangiro] The USER is allowed to ADD CATEGORIES!!
pugdog 9166 Mar 28, 2006, 9:57 AM
Thread Re: [pugdog] The USER is allowed to ADD CATEGORIES!!
webmaster33 9139 Mar 28, 2006, 11:55 AM
Thread Re: [webmaster33] The USER is allowed to ADD CATEGORIES!!
pugdog 9117 Mar 28, 2006, 1:11 PM
Post Re: [pugdog] The USER is allowed to ADD CATEGORIES!!
webmaster33 9165 Mar 28, 2006, 2:12 PM