Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mass PM Usergroups (NOT via admincp) Details »»
Mass PM Usergroups (NOT via admincp)
Version: 1.1, by vBNinja vBNinja is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.2.x Rating:
Released: 05-09-2014 Last Update: 05-10-2014 Installs: 38
Uses Plugins Auto-Templates
 
No support by the author.

This is a custom mod I created for the member: XSV_4ce and was given permission to release it here.

This mod basically allows specific usergroups (not required to be admins) to be given a list of other usergroups they are allowed to mass PM (can also be allowed to PM all usergroups)

A checkbox list of the allowed usergroups will show up above the PM message area (in private.php) for those given permission to use the feature (see screenshots)

Features:
  • Setting to allow only certain usergroups to use the mass PM feature
  • Setting to allow specific usergroups to mass PM all usergroups (overwrites custom permissions / [Useful for admin/mod usergroups])
  • Allows "custom permissions" in which usergroups can only mass PM a specific list of other usergroups

Note: Checking one or more usergroups to mass PM will overwrite the "BCC Recipients" field (should't be a problem, but just letting you know )

Please "Mark as Installed" for support/updates
Also don't forget to rate
Nominate for MOTM if you'd like as well


Installation Instructions:
  1. Import the XML
  2. Change settings to your liking (http://YOURDOMAIN.COM/admincp/option...m_ugs_settings)
  3. Enjoy!

Please let me know if you find any bugs

Thanks!

Download Now

File Type: xml product-masspm_ugs.xml (5.9 KB, 60 views)
File Type: xml product-masspm_ugs_1_1.xml (6.2 KB, 179 views)

Screenshots

File Type: jpg massPM1.jpg (50.4 KB, 0 views)
File Type: jpg massPM2.jpg (57.0 KB, 0 views)
File Type: jpg Screen Shot 2014-05-09 at 8.37.52 PM.jpg (67.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
tbworld

Comments
  #12  
Old 05-11-2014, 03:44 PM
tomfuegue tomfuegue is offline
 
Join Date: May 2014
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works perfectly on my vBulletin 4.2.2 Patch Level 1.

Thanks a lot!!!.
Reply With Quote
  #13  
Old 05-14-2014, 10:23 PM
gajinoz gajinoz is offline
 
Join Date: Nov 2011
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does not seem to work on my Vers. 4.1.7

Screenshot of settings below. Why does it say no usergroups allowed?

Also, no selection boxes appear when creating new PM
Attached Images
File Type: png masspm.PNG (34.6 KB, 0 views)
Reply With Quote
  #14  
Old 05-15-2014, 10:14 PM
gajinoz gajinoz is offline
 
Join Date: Nov 2011
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've reinstalled with overwrite, followed the directions, same result. Not working.
Reply With Quote
  #15  
Old 05-15-2014, 10:22 PM
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Location: USA
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is for vB Version: 4.2.x atm
Reply With Quote
  #16  
Old 05-17-2014, 10:30 PM
gajinoz gajinoz is offline
 
Join Date: Nov 2011
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, didn't notice that bit. Any chance of a 4.1.x version?
Reply With Quote
  #17  
Old 05-20-2014, 05:10 PM
Badhabitz Badhabitz is offline
 
Join Date: Dec 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This thing is amazing for my community since we are a multi gaming community and I needed my Guild Leaders to be able to PM members within their usergroups.

However members are in mutiple usergroups since we have a usergroup for each guild. So I modified this to look for if the member is in a secondary user group instead of their primary.

I hope VBNinja doesn't mind me posting how I did this.

Go to
http://www.yourforumname.com/admincp....php?do=modify

find
Product : Mass PM Usergroups
Then click the edit button where it says:
Process PM private_insertpm_process

Find

Code:
$masspm_recipients_q = $vbulletin->db->query_read_slave(
        "SELECT username FROM " .TABLE_PREFIX. "user
        WHERE usergroupid IN (".implode(',', $masspm_recipientugs).")"
    );

And replace with this line


Code:
$masspm_recipients_q = $vbulletin->db->query_read_slave(
        "SELECT username FROM " .TABLE_PREFIX. "user
        WHERE membergroupids LIKE '%".implode(',', $masspm_recipientugs)."%'"
    );
Save and your done.

Hope this helps anyone else looking to send mass pm's based on a secondary usergroup. Thanks VBNinja for a great mod!
Reply With Quote
Благодарность от:
Daniel
  #18  
Old 06-12-2014, 09:41 AM
blackberry's Avatar
blackberry blackberry is offline
 
Join Date: Feb 2008
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Give blank page :-s
Reply With Quote
  #19  
Old 10-14-2014, 07:06 PM
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Location: USA
Posts: 707
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This breaks if there is a ' in the usergroup name.

Parse error: syntax error, unexpected 's' (T_STRING) in /includes/class_core.php(4715) : eval()'d code on line 79
Reply With Quote
  #20  
Old 10-15-2014, 01:50 AM
Sforums Sforums is offline
 
Join Date: Dec 2010
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uninstalled. Doesn't work properly, too many problems.
Reply With Quote
  #21  
Old 10-15-2014, 01:58 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sforums View Post
Uninstalled. Doesn't work properly, too many problems.
You need to be more descriptive so the developer knows what the issue are so he can potentially fix them.
Reply With Quote
2 благодарности(ей) от:
Daniel, tbworld
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:48 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.05227 seconds
  • Memory Usage 2,350KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete