Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Block main categorys

Quote Reply
Block main categorys
How can I protect the main categorys that

no one can add links to it?

I've thought that this is a standard function

of links sql...
Quote Reply
Re: [@webster] Block main categorys In reply to
You'd probably need a plugin - a PRE hook on user_add_link and then when a user submits a link you can check if the category id is a parent category and if so return an error.
Quote Reply
Re: [@webster] Block main categorys In reply to
You could try this and use some SQL commands to first fill in all values with yes and then the root categories with no.

http://www.gossamer-threads.com/...i?post=214727#214727
Quote Reply
Re: [afinlr] Block main categorys In reply to
I posted a manual solution to this here:

http://www.gossamer-threads.com/...orum.cgi?post=214727

Not sure if its any good to you, but it works for me - I simply block selected 'top of the tree' categories so that visitors must chose a deeper category before they submit.

All the best
Shaun
Quote Reply
Re: [qango] Block main categorys In reply to
I think that's the same link that I gave in the post above Wink.
Quote Reply
Re: [afinlr] Block main categorys In reply to
afinlr,

You're right! I didn't read the thread properly - saw the SQL part in your thread and moved on - my mistake Smile

All the best
Shaun