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)

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 02:21 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.01260 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete