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 - Mass PM Usergroups (NOT via admincp) (https://vborg.vbsupport.ru/showthread.php?t=311208)

tomfuegue 05-11-2014 03:44 PM

It works perfectly on my vBulletin 4.2.2 Patch Level 1.

Thanks a lot!!!.

gajinoz 05-14-2014 10:23 PM

1 Attachment(s)
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

gajinoz 05-15-2014 10:14 PM

I've reinstalled with overwrite, followed the directions, same result. Not working.

vBNinja 05-15-2014 10:22 PM

This is for vB Version: 4.2.x atm

gajinoz 05-17-2014 10:30 PM

Sorry, didn't notice that bit. Any chance of a 4.1.x version?

Badhabitz 05-20-2014 05:10 PM

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!

blackberry 06-12-2014 09:41 AM

Give blank page :-s

Daniel 10-14-2014 07:06 PM

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

Sforums 10-15-2014 01:50 AM

Uninstalled. Doesn't work properly, too many problems.

ozzy47 10-15-2014 01:58 AM

Quote:

Originally Posted by Sforums (Post 2518821)
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.


All times are GMT. The time now is 12:40 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.01160 seconds
  • Memory Usage 1,729KB
  • 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_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