vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Mass Admin PM v1.5 (https://vborg.vbsupport.ru/showthread.php?t=70223)

Zero Tolerance 10-04-2004 10:00 PM

Mass Admin PM v1.5
 
This is a minor upgrade from the first version, 1 main new feature, and a little code revision.

Features:
Number of PM's to send at a time
It's a server intensive process and you don't want to ultimatly send to everyone at once on your forum unless you have like 50 member's.
New Usergroup Selecting
Your now able to select all, 1 or certain usergroup's to which the PM is sent to, so if you wish to send to staff, Ie, Admins, SMods + Mods, you would simply check all those, making it much easier and saving time.
Very simple install, take you 3 seconds, im not joking, yet very useful, a preview is below for those desiring to see what it look's like first.


Enjoy,

- Zero Tolerance

Techguy1 10-05-2004 02:34 PM

Thanks for the update. I have your hack installed, use it very rarely, but I find it useful.

You like apostrophes waaay too much ;)

Tarion 10-05-2004 03:09 PM

Quote:

Originally Posted by Zero Tolerance
This is a minor upgrade from the first version, 1 main new feature, and a little code revision.

Features:
Number of PM's to send at a time
It's a server intensive process and you don't want to ultimatly send to everyone at once on your forum unless you have like 50 member's.
New Usergroup Selecting
Your now able to select all, 1 or certain usergroup's to which the PM is sent to, so if you wish to send to staff, Ie, Admins, SMods + Mods, you would simply check all those, making it much easier and saving time.
Very simple install, take you 3 seconds, im not joking, yet very useful, a preview is below for those desiring to see what it look's like first.


Enjoy,

- Zero Tolerance

Nice work

Tarion klicked install

68 Z-28 10-05-2004 04:19 PM

Thanks for the update. bravo.

However I have a minor problem. The usergroupd I have set-up are for members to join as a secondary usergroup. They show up on the window, but when trying to send a PM to users I get the error

Quote:

There are no user's within the specified usergroup(s) to PM. Please go back.
select * from user where usergroupid IN(24) order by userid
Can you add support to pm users in the group that are in them as secondary users as well?

Zero Tolerance 10-05-2004 04:32 PM

It's something ill have to look into, i've never used secondary usergroups (never saw any reason to) and im not exactly sure how they are constructued =)

- Zero Tolerance

Johnny 10-05-2004 04:56 PM

awsome update, but just a question...

does the user that disables PMs in the USERCP still recieave a PM from the admin or do they have to have it enabled.

Zero Tolerance 10-05-2004 05:08 PM

They still get the PM, permissions are by-passed, no matter what settings they have, they will recieve this PM :)

- Zero Tolerance

WAR 10-05-2004 05:09 PM

I would need support for secondary usergroups as well.

I think that the is_member_of() function accounts for secondary usergroups as opposed to using the $bbuserinfo[groupid] (that's probably not exactly right)

the Sandman 10-05-2004 05:27 PM

Dune had the following modification posted in the original Thread for version 1.0, however at first glance I don't see how this will apply to the new version 1.5.
Quote:

Originally Posted by dune
We use secondary groups too, primarily. ;) (We leave everyone except admins in Reg users (and banned, unregistered, etc). Additional permissions are in secondary groups, so we needed this to.

Here's what you need to do:

In admin_pmall.php

Find:
Code:

                // Collect Array Of Members Within Specified Usergroup
                $Get_Members=$DB->query("select * from ".TABLE_PREFIX."user where usergroupid='{$_POST['to_usergroup']}' order by userid");

REPLACE WITH:
Code:

                // Collect Array Of Members Within Specified Usergroup
                $Get_Members=$DB->query("select * from ".TABLE_PREFIX."user where usergroupid='{$_POST['to_usergroup']}' or membergroupids REGEXP '[[:<:]]{$_POST['to_usergroup']}[[:>:]]' order by userid");

Find:
Code:

                // Collect Array Of Members Within Specified Usergroup
                $Get_Members=$DB->query("select * from ".TABLE_PREFIX."user where usergroupid='{$_GET['usergroup']}' order by userid");

REPLACE WITH:
Code:

                // Collect Array Of Members Within Specified Usergroup
                $Get_Members=$DB->query("select * from ".TABLE_PREFIX."user where usergroupid='{$_GET['usergroup']}' or membergroupids REGEXP '[[:<:]]{$_GET['usergroup']}[[:>:]]' order by userid");

This will find members who are in the specified group as EITHER their primary or as a secondary. Hope that helps. Credit for the REGEXP goes to my sysadmin Dan (the Man).


Zero Tolerance 10-05-2004 06:40 PM

Im not too sure on using REGEXP and IN within a query, Ie: where field REGEXP IN(bla,bla,bla)

But ill run some tests :)

- Zero Tolerance


All times are GMT. The time now is 02:12 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.01607 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)bbcode_code_printable
  • (3)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