Webmastersite.net
Register Log In

Prevent submission to top level categories

Comments on Prevent submission to top level categories

blogectory
Member

Usergroup: Member
Joined: Dec 22, 2010

Total Topics: 12
Total Comments: 23
Posted Dec 23, 2010 - 4:26 AM:

Hi,

Is it possible to prevent users from being able to submit to top level categories but allow submission/addition to only below top-level?

Also when submission is disabled for top-level categories, on the home page, I prefer not to have a link to top-level category but instead just text of top-level category.

How can I do that?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 23, 2010 - 5:45 AM:

At Admin -> Settings -> Links -> "Disallow submissions to the top __ levels" fill it in with the number 1.

At Admin -> Templates -> Manage Templates -> "Main Index", replace
<!-- BEGIN REGULAR -->
<td style="{CATWIDTHSTYLE} veterical-align: top;" class="category">
<img src="{CATFOLDERIMAGE}" alt="" class="folderimage" /> <a href="{CATURL}" class="categoryname">{CATNAME}</a> <IF {SWITCH_COUNTS} and not {CATACTASLINKBOOL}>({CATNUMLINKS})</IF> {CATHASNEW} {CATADMIN}<br />
with
<!-- BEGIN REGULAR -->
<td style="{CATWIDTHSTYLE} veterical-align: top;" class="category">
<img src="{CATFOLDERIMAGE}" alt="" class="folderimage" /> <span class="categoryname">{CATNAME}</span> <IF {SWITCH_COUNTS} and not {CATACTASLINKBOOL}>({CATNUMLINKS})</IF> {CATHASNEW} {CATADMIN}<br />
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.