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>
Isn't this a built in feature?![]()
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>
A certain amount of posts could be called a rank. And so you can easily set permissions for a particular board such that people in below that rank can view but not post in the board. The rank will be needed to post as well. Use the admin panel.![]()
...none of my ranks work with the post count I have setup, and the forum I need this code on is an RP forum so I cant very well chance the ranks to make it fit like I could with a chat forum, other wise I would of done it view rank and no requested a code.
Perhaps make a rank with the same name? I think it does something like:
var vf_usergroup = Array('9');
Like mine is on vForums Support.
It's easily doable as posts are stored in vf_posts![]()
Perhaps make a rank with the same name? I think it does something like:
var vf_usergroup = Array('9');
Like mine is on vForums Support.
I took the "Same Name" thing into thought and tried it out and it worked, but because I am using the Staff has User Groups code, I can make hidden ranks by adding them only into the members ranks area and not into the ranks to display via the code, so it worked perfectlythanks, so ok no code needed then
![]()
It's easily doable as posts are stored in vf_posts![]()
Yes it is,but my javascript sucks really bad
![]()
Do you still need this?
nope, making a rank with the same name worked great, thanks for asking