Hi,
I'm not sure if this would work with 2.0 (I've got it in operation on 1.13) or if it's the solution you're looking for, but the way I 'block' submissions to certian categories is to NOT put the submission link on the category page that I want blocked.
This is how it works for me:
• Added a field to
Category table called "isSub" (Yes/No) - default to Yes
• In
footer.txt added the following:
(You could probably add this to the category.html template instead if you like) Code:
<%if isSub eq 'Yes'%>
<a href="<%db_cgi_url%>/add.cgi?ID=<%category_id%>">Suggest a Site</a> -
<%endif%>
• Finally, to pass the value for the category when building the pages, edited nph-build.cgi at
# Get the category info. and added this:
Code:
$OUT{isSub} = $category_r->{'isSub'};
If you don't want submissions from a particular category, edit it and change 'isSub' to "NO".
Like I said, I'm not sure if it'll work with 2.0 (I haven't had time to try 2.0 yet), but it might be worth a shot. Hope this helps.
All the best
Shaun