We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Remove Add Topic on Certain Forums
Topic Started: Jun 12 2011, 11:07 PM (638 Views)
Wonder Pie
Member Avatar
Member
[ * ]
Board Address: Private
Board Software: Zetaboards
Description: Simply remove or hide the "Add Topic" on certain forums, so everyone can't access or use it (i.e. post new topics). I've looked around and only found a code that does this to add reply button, but I want this to work with add topic button. Thanks so much!
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Users & Groups Posted Image Forum Access Posted Image Edit: Untick the Start box.
Offline Profile Goto Top
 
Wonder Pie
Member Avatar
Member
[ * ]
Cory
Jun 12 2011, 11:18 PM
Admin CP Posted Image Users & Groups Posted Image Forum Access Posted Image Edit: Untick the Start box.
Thank you, I already know that be accomplished via board settings but it's not what I'm looking for. I'm trying to find a code that hides the add topic button, however topics can still be started in the forum.

Why would I want to do this? I'm using Reid's Flexible Form Script, which allows users to fill out a form and submit the results to a certain forum. For this to work the forum in particular must have start permissions enabled. However I want users to be able to view the forum and read their submissions, but I do not want them starting a new topic (since I want them to use the form instead).

Does that make sense?

So basically I need a hide add topic code to certain forums, and not rely on using start permissions on board settings.

Thank you.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/forum/FORUM_NUMBER') !== -1) {
$(".cat-buttons a").remove();
}
</script>
Replace the capitalized text.
Offline Profile Goto Top
 
Wonder Pie
Member Avatar
Member
[ * ]
Thank you, that works great.

This can be closed now.
Offline Profile Goto Top
 
Leonardo
Member Avatar
Hakuna Matata
[ *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic