vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Private Messages Enhancements - Advanced Private Messages Options (https://vborg.vbsupport.ru/showthread.php?t=228736)

AliMadkour 11-23-2009 10:00 PM

Advanced Private Messages Options
 
1 Attachment(s)
Hi There

Please remember to Click Mark as Installed 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 Message
How to Install :
  • Import XML file from your AdminCP
  • Click Mark as Installed if you install it :rolleyes: !
Control :
  • AdminCP -> vBulletin Options -> Advanced Private Messages Options
Note : Arabic translation also attached :confused:
Turkish Translation Can Be Found Here !!

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

1 Attachment(s)
Polish version


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

Quote:

Originally Posted by Kolbi (Post 1920035)
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

Quote:

Originally Posted by Dr.osamA (Post 1926056)
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

Quote:

Originally Posted by Kolbi (Post 1920035)
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

1 Attachment(s)
@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.

Code:

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
Code:

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:

PHP Code:

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

1 Attachment(s)
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. Attachment 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

Quote:

Originally Posted by MarkFL (Post 2591980)
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.


All times are GMT. The time now is 04:59 PM.

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.01183 seconds
  • Memory Usage 1,784KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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