Gossamer Forum
Home : Products : Links 2.0 : Customization :

to admin control user submit at any specific category and/or subcat (templates)

Quote Reply
to admin control user submit at any specific category and/or subcat (templates)
Set auto-select category to 1
Install Nested If Mod
Add following field to category
Code:
UserSubmit => [8, 'alpha', 5, 3, 0, 'no', '']
On your category template, enclose the submit select in ifnot tags
Code:
<%ifnot UserSubmit%>
<FONT SIZE="1" FACE="Verdana, Arial">
<a href="<%build_root_url%>">Home</a> |
<a href="<%db_cgi_url%>/add.cgi">Submit a Link</a> |
<a href="<%db_cgi_url%>/modify.cgi">Modify a Link</a> |
<a href="<%db_cgi_url%>/search.cgi">Search</a>
</FONT>
<%endif%>
In the above, when the admin adds a category, he deletes "no" from the UserSubmit field and the nav selections will be available to the user. Invert the logic to if "yes", and you could have all categories available unless the admin deleted the "yes" from the field.
Subject Author Views Date
Thread to admin control user submit at any specific category and/or subcat (templates) rcjordan 1049 Jun 29, 1999, 10:47 AM
Post Re: to admin control user submit at any specific category and/or subcat (templates)
Bobsie 1008 Jun 29, 1999, 3:35 PM
Post Re: to admin control user submit at any specific category and/or subcat (templates)
rcjordan 1008 Jun 29, 1999, 4:20 PM