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
  #22  
Old 12-02-2014, 08:56 PM
mrsupps mrsupps is offline
 
Join Date: Jun 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I try to send PM I get an error because some of my users have special characters but I see the list of receipents at that point.

I copied the BCC list and removed the bad names (Just 3 so easy to do).

Now when I try to send the PM to that list I just get a blank page.

So this is not technically an issue with the script I don't think.

Any help would be appreciated.
Reply With Quote
  #23  
Old 12-02-2014, 09:02 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the error message you are getting would help. As well as the names that are causing the error.
Reply With Quote
  #24  
Old 12-18-2014, 12:09 AM
yippykiyey yippykiyey is offline
 
Join Date: Feb 2014
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Running into an issue using 4.2.2

Parse error: syntax error, unexpected 's' (T_STRING) in /home/yippykiyey/public_html/forums/includes/class_core.php(4715) : eval()'d code on line 185

Any ideas on a solution?
Reply With Quote
  #25  
Old 12-18-2014, 01:51 AM
yippykiyey yippykiyey is offline
 
Join Date: Feb 2014
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disregard, fixed.
Reply With Quote
  #26  
Old 03-08-2015, 09:15 PM
bounty7565 bounty7565 is offline
 
Join Date: Jul 2014
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to set this up to allow you to message someone regardless to whether their usergroup is primary, or additional usergroup?

Edit: I followed Badhabitz's instructions below, and it appears that I can now PM both primary and secondary groups.

Quote:
Originally Posted by Badhabitz View Post
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
Благодарность от:
EasyEazy
  #27  
Old 04-17-2015, 08:42 PM
EasyEazy EasyEazy is offline
 
Join Date: Feb 2011
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bounty7565 View Post
Is it possible to set this up to allow you to message someone regardless to whether their usergroup is primary, or additional usergroup?

Edit: I followed Badhabitz's instructions below, and it appears that I can now PM both primary and secondary groups.
Nice update and great mod vbNinja. Working perfectly.
Reply With Quote
  #28  
Old 04-30-2015, 02:43 PM
Novablaze Novablaze is offline
 
Join Date: Mar 2013
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blackberry View Post
Give blank page :-s
This is what i am getting when i select my Registered users group to send a mass MSG to all other usegroups seem to be working fine just that one is not i have added the code for a secondry usergroup now that it only sends to a few users when i send a msg to registered users if you can think of a fix to this issue it will be a great help.

PS i think it maybe due to the # and others like [ {etc etc so if we can find a fix for that it would be appricated.
Reply With Quote
  #29  
Old 12-02-2015, 10:34 AM
blackberry's Avatar
blackberry blackberry is offline
 
Join Date: Feb 2008
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

plugin is enabled but options are not showing anymore ??
it seems to be working fine.
Reply With Quote
  #30  
Old 12-02-2015, 10:35 AM
blackberry's Avatar
blackberry blackberry is offline
 
Join Date: Feb 2008
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Novablaze View Post
This is what i am getting when i select my Registered users group to send a mass MSG to all other usegroups seem to be working fine just that one is not i have added the code for a secondry usergroup now that it only sends to a few users when i send a msg to registered users if you can think of a fix to this issue it will be a great help.

PS i think it maybe due to the # and others like [ {etc etc so if we can find a fix for that it would be appricated.
best is to select few usergroups and send.
Reply With Quote
  #31  
Old 08-27-2016, 03:34 AM
Guardian Hope Guardian Hope is offline
 
Join Date: Mar 2015
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uninstalled. Worked with vBulletin 4.2.2 but not 4.2.3 or 4.2.5.

Selecting to go to the "full editor" results in a page of the UserCP loaded with a blank spot where the full editor should be.

A shame, it was a useful modification.
Reply With Quote
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 07:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05584 seconds
  • Memory Usage 2,348KB
  • 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
  • (4)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
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)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