vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Allow Super Mods to PM members without PM abilities? (https://vborg.vbsupport.ru/showthread.php?t=309026)

findingpeace 02-28-2014 04:39 PM

Allow Super Mods to PM members without PM abilities?
 
By default, new members on our forum cannot use the PM system. However, they can receive PMs from Admins.

How can we also allow Super Mods to send PM to members without PM abilities?

Thanks!

Max Taxable 02-28-2014 04:41 PM

Pretty sure you want something like this, that allows restricted users to PM by usergroup, you can make it admins, Smods, mods, etc.

https://vborg.vbsupport.ru/showthread.php?t=233979

findingpeace 02-28-2014 05:00 PM

Thanks Max! I have automatic promotion setup to allow PMs based on post count & registration time, but what I'm looking for is a way to let Super Moderators PM new members (who have no PM abilities). By default, it seems that only admins can do this?

Max Taxable 02-28-2014 05:05 PM

Quote:

Originally Posted by findingpeace (Post 2484321)
Thanks Max! I have automatic promotion setup to allow PMs based on post count & registration time, but what I'm looking for is a way to let Super Moderators PM new members (who have no PM abilities). By default, it seems that only admins can do this?

I don't know about that I only know the Mod I linked makes what you're doing superfluous and allows anyone you designate to send and receive PMs from the restricted group(s).

findingpeace 02-28-2014 05:35 PM

Thanks for your help, Max! Unfortunately we needed several more options than post count in order to allow PMs.

This hook in pmdata_start did the trick:

Code:

if (is_member_of($registry->userinfo, 5))
{
    $this->overridequota = true;
}

Along with editing the template memberaction_dropdown:

Changed

Code:

<vb:if condition="$show['pmlink']">
To

Code:

<vb:if condition="$show['pmlink'] OR is_member_of($bbuserinfo, 5)">


All times are GMT. The time now is 10:28 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.01258 seconds
  • Memory Usage 1,716KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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