You are not logged in.
- Topics: Active | Unanswered
Pages: 1
#1 2009-09-04 11:00:43
- mad-wolfie
- Member
- From: Stoke on Trent (UK)
- Registered: 2008-08-10
- Posts: 36
- Website
looking for a mod.
for 1.2.. i've looked on PunRes but can't seem to find anything by a search, so think the best plan is to give a description of what i want & see if it rings any bells.
Basically i want to prevent non-posters on a forum from reading / seeing the discussions in "members only" area's until they make a set number of posts or just make a single post - as in if you haven't made a post, you only get to see what guest users can see,
If that mod isn't around or one i can use that let's me do that, basically anything anyone can suggest that stops non posters snooping unless they actively want to get involved in discussions will suffice for now.
Thanks in advance.
www.stokebikeruns.co.uk - Charity motorcycle runs
Offline
#2 2009-09-04 11:21:59
- Franz
- Lead developer

- From: Germany
- Registered: 2008-05-13
- Posts: 3,755
- Website
Re: looking for a mod.
The easiest thing to do is having two different groups set up. One for the true members, and one for the newly registered ones (make that the default).
The only mod you now need is one that automatically moves members to the new group once they reach a certain number of posts.
Offline
#3 2009-09-04 11:56:00
- mad-wolfie
- Member
- From: Stoke on Trent (UK)
- Registered: 2008-08-10
- Posts: 36
- Website
Re: looking for a mod.
thought of that, but I would rather prefer to have something to do it automatically, but if doing it manually is my only option then so be it.... just i had a similar experience on a forum i used to moderate on where we put members into gold, silver & bronze member catagories depending on how much money they paid to sponsor / support the site & each member-group opened up new areas or features of the forum, it was a right faff!
www.stokebikeruns.co.uk - Charity motorcycle runs
Offline
#4 2009-09-04 12:04:22
- Franz
- Lead developer

- From: Germany
- Registered: 2008-05-13
- Posts: 3,755
- Website
Offline
#5 2009-09-04 12:20:25
- mad-wolfie
- Member
- From: Stoke on Trent (UK)
- Registered: 2008-08-10
- Posts: 36
- Website
Re: looking for a mod.
It's a good suggestion, just not my bag!
www.stokebikeruns.co.uk - Charity motorcycle runs
Offline
#6 2009-09-04 12:22:01
- François
- Member

- From: Lyon (France)
- Registered: 2009-09-01
- Posts: 171
- Website
Re: looking for a mod.
In post.php, line 318, search
$low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
$db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());Add before
if($pun_user['num_posts'] + 1 >= NB_POSTS AND $pun_user['g_id'] == ORIGINAL_GROUP_ID)
$db->query('UPDATE '.$db->prefix.'users SET g_id=NEW_GP_ID WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());Replace :
- NB_POSTS by the number of posts to change the group
- ORIGINAL_GROUP_ID by the group id of the member who can change
- NEW_GP_ID by the id of the new group
NEW_GP_ID must be different of the admin / mod group
Sorry for my English, I'm French
Offline
Pages: 1
