View Full Version : how to block a category for submision
Hello everyone,
Is there any way i can block a category and a subcategory to block for submission, so users can not submit their links on that category,
Looking for someone to solve this problem
Thanks,
Optimit
11-20-2006, 01:43 PM
I dont understand. Cant you disable the category, or do you stil need it to be seen?
Isabel
11-20-2006, 06:14 PM
World-China
|-Japan
I think that you want to block the category World (by example) for submission. Good idea.
yes thats i want, i have this structure
A
|-- Category starting with A
|-- category starting with A
B
|-- Category starting with B
And so on
I want to block submission for A-Z categories
proprod
11-21-2006, 07:03 AM
Ok, I just tried this and it worked. It may not be the easiest solution, but it works.
Locate in either your header.tpl or your top_bar.tpl (depending on your template), the code that shows the submit link, link. Should look something like this:
Content visible to registered users only.
Add this code {if $category.ID gt 2} before the above code and {/if} after it. But you will have to do this for all the categories you want to block... so if you wanted to block categories 2 and 3, you'd have :
Content visible to registered users only.
This will prevent the Submit Link link from appearing on those particular category pages.
I hope this makes sense.
Isabel
11-21-2006, 09:03 AM
Thank you proprod, but how do I know the number of each category?
thank you for the solution :)
I know the ID of category, because i will block first 26 :D
Thank you again
i just have found another solution to pull out the category from selection list in submit page. by editing the SQL query not to include those categories. So user will not be able to select those categories.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.