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)
-   -   Administrative and Maintenance Tools - Ban individual user and/or users from sending pm, emails and and visitor messages (https://vborg.vbsupport.ru/showthread.php?t=238433)

borbole 03-15-2010 10:00 PM

Ban individual user and/or users from sending pm, emails and and visitor messages
 
1 Attachment(s)
This mod will allow you to ban individual user and/or users from sending Personal Messages, Emails and Visitor Messages. It is faster and handier in my opinion than setting up a custom usergroup and disallow them to use pm''s, emails and vm''s.

Anyway, after installing the hack, go to Settings-Options-Private Messaging Options. There you can enable and disable the hack. You can also enter the id of the users that you want to prevent from sending Personal Messages, Emails and Visitor Messages.

Kolbi 03-16-2010 08:59 PM

Tagged for future use :)

Seems to be a nice easy method :)

GeorgeB85 03-16-2010 09:13 PM

How can we edit the message that is shown to the user?

borbole 03-16-2010 09:24 PM

Quote:

Originally Posted by Kolbi (Post 2005024)
Tagged for future use :)

Seems to be a nice easy method :)

Thanks :)

Quote:

Originally Posted by GeorgeB85 (Post 2005034)
How can we edit the message that is shown to the user?

Open the pm_ban.xml file and find the following code:

PHP Code:

<phrase name="ban_pm_message"><![CDATA[An error has occurred {1}! You are not allowed to send Private Messages.]]></phrase


And change:


Code:

An error has occurred {1}! You are not allowed to send Private Messages.
{1} stands for the username.

Kolbi 03-16-2010 09:25 PM

Or search after phrase: "You are not allowed to send Private Messages."
And change it...

GeorgeB85 03-16-2010 09:34 PM

thanks to you both.

sulasno 03-17-2010 02:43 AM

can this Mod be modified to include sending of emails too?

borbole 03-17-2010 10:31 AM

Quote:

Originally Posted by GeorgeB85 (Post 2005048)
thanks to you both.

You are welcome.

Quote:

Originally Posted by sulasno (Post 2005228)
can this Mod be modified to include sending of emails too?

I will look into it as soon as I will have some free time.

BlackJacket 03-17-2010 11:49 AM

Great mod!

Suggestion - PM ban selection from user postbit?

bigcurt 03-17-2010 05:30 PM

By chance, does this work on 3.X? :)


All times are GMT. The time now is 12:45 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
  • Page Generation 0.01147 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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