Log in

View Full Version : Private Messages Enhancements - Advanced Private Messages Options


AliMadkour
11-23-2009, 10:00 PM
Hi There

Please remember to Click Mark as Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=228736) if you use this modification.

today I have A Very Important Plugins
It's allow you to control P.M Sending

With that Plugin you can :

Set minimum Posts to send Private Messages
Change the message if the member have less that Requested Posts
Disallow usergroups To send Private Messages And Change The display error message
Disallow user(s) to send Private Messages and also you can change the Display Error MessageHow to Install :
Import XML file from your AdminCP
Click Mark as Installed if you install it :rolleyes: !Control :
AdminCP -> vBulletin Options -> Advanced Private Messages OptionsNote : Arabic translation also attached :confused:
Turkish Translation Can Be Found Here (https://vborg.vbsupport.ru/showpost.php?p=1577565&postcount=24) !!

Zaiaku
11-24-2009, 02:35 AM
Was waiting for this. Helps me set up my vb4 right.

Dr.osamA
11-24-2009, 04:07 AM
?????? ???

?? ?????? ? ???????? ? ???????

thnxxx man

installed & nominated

sematopdemir
11-24-2009, 05:41 AM
Many thanks

Marek58
11-24-2009, 09:33 AM
Polish version

http://img7.imageshack.us/img7/6345/advancedpmmanage.jpg

Kolbi
11-24-2009, 09:33 AM
Why not solving this via usergroup permissions?

But nice hack!

AzzidReign
11-24-2009, 04:23 PM
I love this! I don't let people with less than 5 posts PM. I would get so many people register just to PM me about something stupid that could be found easily on my forum...this saved my life lol

AliMadkour
11-24-2009, 05:13 PM
Why not solving this via usergroup permissions?

But nice hack!


Nice !
Next Version :cool:

SİMAR
11-24-2009, 09:37 PM
thanks man

el-q6ri
11-25-2009, 04:51 AM
why not allow user how dont have the number of post to send for admin or mod ?

Baf_Jams
11-25-2009, 06:10 AM
Installed .....Thanks great idea :)

abdobasha2004
11-25-2009, 08:26 AM
rated
and reserved
thanks

acha3ir.net
11-30-2009, 02:58 PM
<font face="Arial Black">Good work you are proud to be an Arab greeting well and you are in fine..</font>

Dr.osamA
12-06-2009, 01:26 AM
Arabic xml is unreadable

plzz chek it

??? ?????? ???? ?? ?????? ?????? ??? ??? ???? ???????

???????

AliMadkour
12-06-2009, 07:51 AM
Arabic xml is unreadable

plzz chek it

اخي الكريم تاكد من المنتج العربي فهو غير قابل للقراءة

تحيااتي

it's work!
try again:erm:

woffie
12-16-2009, 04:14 PM
Great mod!

bbcentral
12-23-2009, 01:06 PM
Why not solving this via usergroup permissions?

But nice hack!

I managed to get exactly this working without a hack. I needed to stop members with less than 3 posts from sending PM's or adding a signature.

I have a usergroup called "Signatures Allowed", only members in that group can send PM's or have a signature.
I added all my members with more than 3 posts to that as a secondary usergroup.
And finally I added an automatic promotion, so once a user hits 3 posts they are automatically promoted to "Signatures Allowed".

It took me less than 5 minutes to setup, vBulletin does this by default so I see no need to install a hack. Preventing a usergroup from sending PM's is also a default feature:
http://bbhosts.net/files/vb_pm.jpg

I guess the only reason why you need this hack is if you find it too hard to use the vBulletin AdminCP.

utahraves
12-23-2009, 01:12 PM
PM Preview would be a nice addition ;) I loved PM Preview.

I'll tag it for updates since this is the only advanced private messaging for 4.0

tazattitude
12-24-2009, 01:39 PM
Excellent...great job!

04wayne
12-24-2009, 10:42 PM
Will this work with Gold?

ramtha
12-25-2009, 04:07 PM
thanks dear Ali .. its very nice

بارك الله فيك

Gnoll
12-25-2009, 07:06 PM
@bbcentral , you need to set promote things etc right ? you set Member and Member2 ... I dont know i'm bit newbie @ vB using it for 1 week
---------------------------------------
Helpful about PM spammers :) thank you and Marked as Installed also
Turkish translate added

http://img697.imageshack.us/img697/8444/ttom.jpg

pjaco
12-25-2009, 08:21 PM
Thanks:)

adreen
03-04-2010, 04:00 AM
downloaded. thanks!

imedic
01-26-2011, 03:57 PM
From my experience is v useful to let newbies send PM to moderators and admin but not to the rest of the people I have this for 3.8 and I am looking for a 4.1.1. version.
Unfortunately the promotion setup does not work like this. This cut all PM from newbies.
You might consider this ...

Stratis
12-31-2017, 03:53 PM
In vb4.2.5 PHP 7 I get this error when I try send pm.

Call to undefined function split() on line 3 in /var/www/vhosts/TEST FORUM/httpdocs/private.php(1461) : eval()'d code
#0 /var/www/vhosts/TEST FORUM/httpdocs/private.php(1461): eval()
#1 {main}

When mod is disabled all is fine.
This mod has 2 plugins, when disable this, pm works.

private_newpm_start
if($vbulletin->options['advanced_pm_manage_onoff'])
{
$madkour_banusers=split(',', $vbulletin->options['advanced_pm_manage_BannedMembers']);
$madkour_bangroups=split(',', $vbulletin->options['advanced_pm_manage_BannedGroups']);
if ($vbulletin->userinfo['posts'] < $vbulletin->options['advanced_pm_manage_reqPosts'])
{
standard_error($vbulletin->options['advanced_pm_manage_reqMessage']);
}
if (is_member_of($vbulletin->userinfo, $madkour_bangroups))
{
standard_error($vbulletin->options['advanced_pm_manage_BannedGroupsMessage']);
}
if (in_array($vbulletin->userinfo['userid'], $madkour_banusers))
{
standard_error($vbulletin->options['advanced_pm_manage_BannedMembersMessage']);
}
}
/*
standard_error($vbulletin->options['advanced_pm_manage_BannedMembersMessage']);
*/

Any idea ?

Thanks :)

MarkFL
12-31-2017, 05:33 PM
Replace that with the following:

if($vbulletin->options['advanced_pm_manage_onoff'])
{
$madkour_banusers=explode(',', $vbulletin->options['advanced_pm_manage_BannedMembers']);
$madkour_bangroups=explode(',', $vbulletin->options['advanced_pm_manage_BannedGroups']);
if ($vbulletin->userinfo['posts'] < $vbulletin->options['advanced_pm_manage_reqPosts'])
{
standard_error($vbulletin->options['advanced_pm_manage_reqMessage']);
}
if (is_member_of($vbulletin->userinfo, $madkour_bangroups))
{
standard_error($vbulletin->options['advanced_pm_manage_BannedGroupsMessage']);
}
if (in_array($vbulletin->userinfo['userid'], $madkour_banusers))
{
standard_error($vbulletin->options['advanced_pm_manage_BannedMembersMessage']);
}
}
/*
standard_error($vbulletin->options['advanced_pm_manage_BannedMembersMessage']);
*/

Stratis
12-31-2017, 05:56 PM
Yes my friend thanks that's ok now.
As I see explode rather split. Do I must change and in the other plugin? it has there to.


* Split must be change where ever it is in other mods?

Thank youuuuu. 156829

MarkFL
12-31-2017, 05:58 PM
Yes, the split() function is deprecated in PHP 7.x, so all instances of that function needs to be replaced with the explode() function.

Stratis
12-31-2017, 06:09 PM
Yes, the split() function is deprecated in PHP 7.x, so all instances of that function needs to be replaced with the explode() function.


Well that's very interesting :) thanks.