Can I please get something that will prevent someone "posting" in a select board if they don't have a certain amount of posts? I still want them to be able to view the board they are looking at and be able to read threads, but just not be able to post. I am currently using a code that prevents the board from being seen at all if they don't have the right amount of posts and thats not working to well..
Edit: and if it helps here is the code I am using for easy editing:
Code:
- <script>
- var restrict = [
-
- ["Affiliating","20"],
- ["Advertising","20"]
- ];
-
- if(location.href.match(/\/board\//)){
- for(i=0;i<restrict.length;i++){
- if(location.href.match(restrict[i][0]) && vf_posts<restrict[i][1]){
- alert('Sorry, you need to have at leave 20 posts to post this board.');
- history.go(-1);
- }
- }
- }
- </script>