View Full Version : Disable Visitor Messages before x posts
chatzworld
03-31-2008, 12:21 PM
Hi
Is their a mode yet for v6.7.x to disable visitor messages before x posts like the mod for PM's
Thanks
PaulSonny
03-31-2008, 01:56 PM
Will try and work on a solution for this now.
Thanks, Paul.
chatzworld
03-31-2008, 02:14 PM
Thanks Paul that would be great ;)
I am sure if it can be done for PM's there will be a way to do it for Visitor Messages
PaulSonny
03-31-2008, 02:54 PM
This is a little harder than I originally thought.
I have got the product set up and ready to import. The ability to turn this modification on and off. The ability to specify how many posts are required before your able to post a visitor message.
I am having a little trouble with plugin php code and which hookname to use.
This is the plugin code I have so far.
if (($vbulletin->userinfo[posts] < $vbulletin->options['novmbp']) && $vbulletin->options['vmbp']))
{
standard_error(fetch_error('cantusevm', $vbulletin->options['novmbp'], $vbulletin->userinfo[posts]));
}
Basically I have got a general idea but not sure how I would tell it to carry on with the visitor message process if the condition is met, and if the condition is not met, then fetch the error as above.
Can anybody else provide support?
Thanks, Paul.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.