![]() |
Minimum posts to use pm's
Minimum posts to use pm's
What does this hack do? This allows you to have an option in your admin cp where you can define a minimum number of posts that a user must have to use pm's. If the user doesn't have enough posts they will get an error telling them they need so many posts (which you defined in the admin cp) to view the pm's. Regards - miSt |
Whoa mist. Making lots of hacks?
|
Indeed ;)
|
Crazy hacker. :)
|
I bet you woke up this morning and said, "I'm going to make every hack that is possible."
|
I bet you woke up this morning and said i'm going to increase my post count by double-posting in threads :p
- miSt |
;). darn, you caught me. No not really.. But that is a good idea. :). J/K
|
Good work buddy. :)
|
Uh oh, mist, in the TXT file, at the top it says
PHP Code:
|
*Fixed*
|
Mist- Can a user still receive PM's if they are under the post limit?
|
Yes but they can't view them. They will get a pop up message still if it is set in the usercp. I could easily cut out the pop-up message too if you would like that?
Regards - miSt |
I send pm's to new users when they register, and would like them to view. Also, if I set say the min to 15 posts, or whatever, and they have 5 posts, and I need to pm them for one reason or another, they wouldn't be able to read the pm. It would be great if they could read, but not send until they have the req number of posts.
|
Gimme a few days to think about that :)
|
my biggest problem with the pm system is knowing that someone can register, not post, and send pm's to other members.
|
maybe a check box; can view but cannot send as an option?
|
H-e-l-l-o M-i-s-t.
|
Sorry Smoothie i've been busy... i'll post the addon here when i have some time. Keep reminding me though because i have soooo much client work at the moment i easily forget.
- miSt |
/me clicks install
nice idea, I actually needed it |
Quote:
|
Ok smoothie i'll post it up within the hour - PROMISE!
- miSt |
Ok here you go Smoothie. You cannot send PM's but you can edit folders and view PM's :)
Now i'm off to have my curry Bonsoir - miSt |
oye! It lives....
I will drop everything I'm doing right now, and install this puppy..... Thanks Mist! I'll post back and let you know how it goes... |
Quote:
|
getting an error when I run the query....
|
Post up the error?
And yes you can read them and not just view the pm title.... - miSt |
Teck helped me, here is the correct query:
PHP Code:
|
Thanks mist just what i needed
|
Mist,
MASSIVE THANKS, Using your pm hack i have understood VB a lot more and have created a hack that does the same except for the quiz hack. As a lot of my users just joined to do the quiz and were not posting. Thanks Phil |
Your Welcome :)
- miSt |
It didnt work :-(
When i ran that Sql query in PhpMyadmin: This showed up: Error SQL-query : $DB_site * > query( "INSERT INTO setting(settingid,settinggroupid,title,varname,val ue,description,optioncode,disp layorder) VALUES (NULL,19,'Minimum Posts','pmminposts','0','Here you define the number of posts a user must have before he/she can use the private message system.','','18')" ) MySQL said: You have an error in your SQL syntax near '$DB_site->query("INSERT INTO setting(settingid,settinggroupid,title,varname,val u' at line 1 I'm using Vb 2.2.5 |
Run this query instead:
PHP Code:
|
*updated installation instructions*
- miSt |
Thankyou very much Mist,
Very useful hack so that people don't register just to send advertisements about their site via PM.. One thing you may want to update in your instructions though.. Code:
Find in private.php: Code:
Find in private.php: [high]* Oblivion Knight clicks install.[/high] |
*updated installation instructions again* ;)
- miSt |
this is VERY helpful
*installs* |
Great hack, easy and simple and works for vb 2.3.3
To add this functionality for the eMail feature, too, add this to member.php Look for this: Code:
if (!$bbuserinfo['userid'] or $bbuserinfo['usergroupid']==3) { Code:
if ($bbuserinfo[posts] < $pmminposts) { Sorry you need to have $pmminposts posts before you can use the private message system or the email function. That's it :) |
Hmm, how to prevent other users from sending them a PN?
|
Quote:
>Hmm, how to prevent other users from sending them a PN? |
Quote:
|
All times are GMT. The time now is 11:05 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|