Log in

View Full Version : Require X posts before user can use PM system.


poetic
04-14-2004, 10:00 PM
What does it do?
This mod allows you in the Admin Control Panel to require your users to have X amount of posts before they can use the PM system.

Why make this?
Some boards have a lot of people join their sites just to PM certain people about hacks/mods/downloads/tutorials, etc. It will be helpful to keep them out a little bit or atleast earn posts, from this.


Edits
1 in private.php.
1 in /includes/config.php (debug mode, then it's taken out).
1 phrase added.
1 administration option added.


Notes
- No copyright notification required
- No credit required in any form
- I'm not sure if this has been done before, but I don't think so. Sorry if so.

Sources
EvilLS1's template for instructions.txt - Did this without asking, but I'm sure it's nothing he's going to kick my shins for, as it's just a template for instructions.

In your includes/config.php before you start this hack add anywhere in the file in between <?php and ?>

$debug = 1;

After your done with this hack, please be sure to take it out.


Screenshots and text file are attached.

poetic
04-14-2004, 11:30 PM
In the screenshot, where it says you need a total of 100 posts. That is replaced with the number you have in the AdminCP.

Austin Dea
04-15-2004, 01:21 AM
Nice. :}

Oblivion Knight
04-15-2004, 07:51 AM
Thanks, I'm going to adapt this for the v3 Arcade.. :)

GeekyDesigns
04-15-2004, 09:21 AM
Hate to say this, but yet another useless hack. Somthing that can be acomplished by default within vBulletin 3's system.

How you ask?

Usergroup Promotions:
Default usergroup gets NO pm permissions
add a secondary usergroup that has PM's enabled
Add a promotion to add user to new group when XXX posts number is reached

poetic
04-15-2004, 10:12 AM
Useless to you. Don't knock it unless you know that some people don't find this handy. I find it perfect. I want all usergroups to be the same. NO pm's until X posts. Simple as that.

poetic
04-15-2004, 10:25 AM
Just a little update to what I said:

I personally would rather hack my board with, 3 lines of code, a phrase, and an option that have to fuss with another usergroup, and permissions for all my forums (53 forums) - I could just mock the permissions, but I set my forums up to be different each time.

NTLDR
04-15-2004, 12:13 PM
Note this hack has several flaws, the main one being everyone can still receive PM's if they are switched on and be notified they have new PM's, yet not be able to view them.

IMO the promotions route is a lot more comprehensive and at the end of the day the little time taken to do it means greater benefits for all. I know, I've done both methods on my board.

???`S?LV?R???`
04-15-2004, 03:12 PM
lol i might of had use for this if NTLDR hadn't pointed that out

Owen
04-15-2004, 06:59 PM
Just a little update to what I said:

I personally would rather hack my board with, 3 lines of code, a phrase, and an option that have to fuss with another usergroup, and permissions for all my forums (53 forums) - I could just mock the permissions, but I set my forums up to be different each time.
Why would you want to change permissions for your 53 forums? We are talking about the PM system here...

Zachery
04-15-2004, 07:04 PM
Why would you want to change permissions for your 53 forums? We are talking about the PM system here...
You dont need to change any permissions, create a new usergroup and base their permissions off the registered usergroup ;)

poetic
04-16-2004, 12:15 AM
Why would you want to change permissions for your 53 forums? We are talking about the PM system here...

I am still pretty new with the system, so yeah I guess what I said makes no sense at all.. is there anyway I can request this hack to be deleted?

Buczilla
04-16-2004, 12:55 AM
I am still pretty new with the system, so yeah I guess what I said makes no sense at all.. is there anyway I can request this hack to be deleted?Don't delete it......no hack is a bad hack. I certainly have a use for this, as I have over 35 usergroups.....it's a pain in the arse to set up permissions for each group, then add promotions for each group. Yes, I can do it that way......but your hack has saved me about an hour and a half! Thank you! :)

Zachery
04-16-2004, 01:04 AM
Don't delete it......no hack is a bad hack. I certainly have a use for this, as I have over 35 usergroups.....it's a pain in the arse to set up permissions for each group, then add promotions for each group. Yes, I can do it that way......but your hack has saved me about an hour and a half! Thank you! :)
Buc thats what "Base usergroup off of" and "Base usergroup permissions off of" are for ;)

poetic
04-16-2004, 10:27 AM
Zach, what would you do if they are already created? Also.. did no one seem to notice I'm going update this soon (Says in the text file) that you can't send PM's to a user who can't use PM system yet?

JaNa
04-23-2004, 10:48 PM
Eh, why are you people so nasty to him...Personally I find this useful, when my board gets bigger i'll probaly use it to lower bandwidth, in a small way ^^

/me clicks install

Zachery
04-23-2004, 11:15 PM
Eh, why are you people so nasty to him...Personally I find this useful, when my board gets bigger i'll probaly use it to lower bandwidth, in a small way ^^

Because of the following.
Note this hack has several flaws, the main one being everyone can still receive PM's if they are switched on and be notified they have new PM's, yet not be able to view them.

IMO the promotions route is a lot more comprehensive and at the end of the day the little time taken to do it means greater benefits for all. I know, I've done both methods on my board.

350Chevy
06-08-2004, 08:59 PM
Still a good idea.. :) I'll try to use/fix the code to block users with a certain post count from viewing a particular forum and it's threads.. :D

Battle_Ring
07-09-2004, 10:58 PM
Hate to say this, but yet another useless hack. Somthing that can be acomplished by default within vBulletin 3's system.


How you ask?

Usergroup Promotions:
Default usergroup gets NO pm permissions
add a secondary usergroup that has PM's enabled
Add a promotion to add user to new group when XXX posts number is reached
The Best Thing About This Is People Cant Go To Your Board And Spam Your PM's...

Zachery
07-09-2004, 11:20 PM
The Best Thing About This Is People Cant Go To Your Board And Spam Your PM's...
Also turning off the pm system for users who are not in a group that can send pms works much better ;)

Battle_Ring
07-10-2004, 12:56 PM
/\ This Is True....I Would Rather Change Groups, Add A Promotion Instead Of Adding The PHP....

DiscussAnything
08-07-2004, 04:14 AM
going with the usergroup promotions, what's the proper way to set it up?

I've created a second usergroup "Registered w/ PM", turned off PM's on "Registered"

As far as promotions go, set it to xxx posts, set it to secondary group and choose the new group. Once this is done, will it automatically put all members that are in the registered group with xxx or more posts in the new subgroup? I just hate to make the changes and then have 200 angry users email/IM me about their PM's not working :)

I'm not real familiar with the promotions etc as I've never used the

K

iSpanish
02-08-2005, 12:38 PM
nice hack
-Marboosh clicks install

JC
02-15-2005, 07:26 AM
Thank you, very easy.

SHANE-D-PAIN
07-11-2005, 03:49 PM
This will do for now, sick of the damned asl? PMs off little kids....

*Happily Clicks Install and looks forward to seeing a better version or making one himself...*

almqdad
07-15-2005, 03:29 AM
does it work with VB 3.07

CP,
09-28-2005, 11:11 PM
hi there im trying to install a hack which does not allow new users to pm unless they have an x amount of posts, i'm following this hack https://vborg.vbsupport.ru/show...hlight=posts+pm

i'm stuck here and dont know where to go nor where to find it, the instructions are not so clear:


###################### AddAdmin Options
Making sure you have the $debug variable in config.php
go to your admin control panel (http://yourdomain.com/vbulletin/admincp/)
and then click Vbulletin Options >> VBulletin Options >> Edit Settings >> Add new setting

Enter the following as follows:

1) varname - minpostpm
2) Setting Group - Private Message Options
3) Minimum Post Count
4) Insert the minimum amount of posts a user must have to use the Private Message System.
5) Leave the next box blank
6) Default - Instert the number you want to have
7) Display Order - Leave as is
8) vBulletin Default - No




###### End of hack ######

i just cannot find the Add new setting under vb options...., ive got a vb3.0.8 anybody help?

Zachery
09-29-2005, 03:08 AM
I highly suggest not using this hack and using promotions as it is.

CP,
09-29-2005, 08:58 PM
whys' that? and tell me about promotions??

Ghanem
10-16-2005, 05:30 PM
hi..

any update for 3.5.0

Zachery
10-17-2005, 04:59 PM
hi..

any update for 3.5.0

again, this is a stock feature of vBulletin which is useless to hack into.

sadecosefo
01-24-2006, 03:35 PM
You dont need to change any permissions, create a new usergroup and base their permissions off the registered usergroup ;)

This is exactly what I have been looking for. Thanks you. I did this and worked great.