vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Require X posts before user can use PM system. (https://vborg.vbsupport.ru/showthread.php?t=63889)

poetic 04-14-2004 10:00 PM

Require X posts before user can use PM system.
 
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 ?>

PHP Code:

 $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

Quote:

Originally Posted by poetic
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

Quote:

Originally Posted by Owen
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

Quote:

Originally Posted by Owen
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

Quote:

Originally Posted by poetic
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

Quote:

Originally Posted by Buczilla
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

Quote:

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.
Quote:

Originally Posted by NTLDR
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

Quote:

Originally Posted by GeekyDesigns
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

Quote:

Originally Posted by Battle_Ring
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

Quote:

Originally Posted by unicorn
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

Quote:

Originally Posted by Zachery
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.


All times are GMT. The time now is 04:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01344 seconds
  • Memory Usage 1,806KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete