Features + System > Registration module and restriction on forum access
Hi Flemming...
Here's a trick you can do using jQuery scripting. Basically this will hide the "Create New Post" button for anybody who is not logged in as a user with website administration capabilities. Then when an admin logs in, it will show that button to allow new topic posts. All other people will only be able to reply to previous posts, and not create new posts.
To do it, you will need to add the following scripts to your site. Add these to the Extra Header Code injection point:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(function(){
if ( $("body").hasClass("content-editable") ){
$("#new-post-button input[value='Create New Post']").show();
} else {
$("#new-post-button input[value='Create New Post']").hide();
};
});
</script>
Notes:
1. Please note that you can safely remove the first line if you are already utilizing jQuery in your site.
2. Also you may need to adjust this script if you are using forums on other pages in your site as well. This script is assuming you only have one forum page. I can revise the script if you need it to work for other specific situations.
Let me know how it works...
- Chris Cox
Chris Cox



Hi!
I just upgraded my account to a Tier II. I would like to use the public registration module and then give people access to comment on forum.
But I would like forums, where only editor can publish topics (Create New Post) and everyone can post postings (Reply) in them. And forums where everyone can publish topics and post postings.
I've created a new test user, public audience, and I can't seem to restrict him. I don't want "him" to be able to publish topics (Create New Post) in a forum, only reply.
Is there any way around this?
Thanks
Flemming