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)
-   -   Admin Mass PM v1.0 (https://vborg.vbsupport.ru/showthread.php?t=67162)

Zero Tolerance 07-13-2004 10:00 PM

Admin Mass PM v1.0
 
Well one was made, but not to my liking, it was an edit of the email page, and didn't really please me to what i wanted. So i made this, a simple yet effective hack well requested across vbulletin and other systems.

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.
Send to usergroup only
- You can specify if you want to send to ALL usergroup's or just 1 usergroup, helps if your wanting to Pm your admins or mods, or just members.

And thats it... what more could you ask for in a mass pm hack?

Any questions please reply below, there's a preview for you all because i know myself i hate installing things just to see what they look like ;)

Enjoy,

- Zero Tolerance

nexialys 07-14-2004 11:07 AM

instead of selecting all users or one specific group, would it be possible to select a list of groups ?! (with a multiple selectable dropdown) ...

Rambo 07-14-2004 11:08 AM

Installed and worked a charm ^_^

Nice one

Zero Tolerance 07-14-2004 11:09 AM

Quote:

Originally Posted by nexialys
instead of selecting all users or one specific group, would it be possible to select a list of groups ?! (with a multiple selectable dropdown) ...

Perhaps in v1.5 i can add a list of the usergroups, and next to them checkbox's, the one's with the box's checked get the pm, the other's don't

Would that satisfy your needs?

And thanks Rambo :)

- Zero Tolerance

platnum 07-14-2004 11:40 AM

Nice! Been looking for something like this :D

nexialys 07-14-2004 12:15 PM

@Zero ... yes, it answer the need... ;)

Zero Tolerance 07-14-2004 12:46 PM

Ill get started on v1.5 in a couple of days then, need to work on other stuff atm. But for now i hope you enjoy the current version :)

@ Platnum - Glad it's what you wanted ^_^

- Zero Tolerance

kodeking 07-14-2004 02:35 PM

This looks good. It would be very resource frienldy if you added another table called adminmessage or something where you insert one row per PM with permissions on who can view it and then somehow make it so it can be marked as read by each user.

Zero Tolerance 07-14-2004 02:47 PM

Quote:

Originally Posted by kodeking
This looks good. It would be very resource frienldy if you added another table called adminmessage or something where you insert one row per PM with permissions on who can view it and then somehow make it so it can be marked as read by each user.

That would be making a seperate sort of PM, which in turn would make the whole point of the hack redundant, i mean you could just post an announcement on your site or post a thread with what your asking for..

- Zero Tolerance

Predator668 07-14-2004 06:48 PM

Hello,

Good work on this mod. Works with out fail. I do have one suggestion for your next release. When you send the PM by group, it also sends to everybody who has the group as their additional user group as well the primary. This way everybody gets the PM.

Thanks,
David

mtha 07-14-2004 06:52 PM

Quote:

Originally Posted by Zero Tolerance
Well one was made, but not to my liking, it was an edit of the email page, and didn't really please me to what i wanted. So i made this, a simple yet effective hack well requested across vbulletin and other systems.

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.
Send to usergroup only
- You can specify if you want to send to ALL usergroup's or just 1 usergroup, helps if your wanting to Pm your admins or mods, or just members.

And thats it... what more could you ask for in a mass pm hack?

Any questions please reply below, there's a preview for you all because i know myself i hate installing things just to see what they look like ;)

Enjoy,

- Zero Tolerance

Dont see the difference or advantage of this hack over the other one.

with the other one, you can do the same thing, and even more than that, isnt it?

68 Z-28 07-14-2004 06:57 PM

WOW, this looks like it'd be very usefull to me and the moderators of regional usergroups.

2 things:

Is there a way it can be integrated so moderators can mass PM also?
Is there a way to add an option to PM only the users online?

WAR 07-14-2004 07:30 PM

Does this PM "additional" groups? or only primary groups?

SaN-DeeP 07-14-2004 11:08 PM

thnx for a wonderful addon :)
if we can only let superadmins send mass pms its gonna be more better

Regards,

trackpads 07-15-2004 01:48 AM

Is it possible to have it only send like 20 PMs at a time until complete? Would that help the issue with sending PMs to everyone?

I would actually prefer a mass PM instead of a mass email (thanks to VBs emails getting blocked all the time)

Thanks again,

-Jason

turbidblue 07-15-2004 02:15 AM

thanks! very handy and very easy to install!

[high]* turbidblue clicks install
[/high]

:)

Zero Tolerance 07-15-2004 04:09 AM

Quote:

Originally Posted by Predator668
Hello,

Good work on this mod. Works with out fail. I do have one suggestion for your next release. When you send the PM by group, it also sends to everybody who has the group as their additional user group as well the primary. This way everybody gets the PM.

Thanks,
David

I though it only sent to there primary usergroup? In any case ill look this up...

Quote:

Is it possible to have it only send like 20 PMs at a time until complete? Would that help the issue with sending PMs to everyone?

I would actually prefer a mass PM instead of a mass email (thanks to VBs emails getting blocked all the time)

Thanks again,

-Jason
Yes, where it says the number 300, thats how many it sends at a time, input 20 and it will only send 20 pm's at a time and continue to send 20 pm's untill it has sent to all members within the usergroup you chose :)

- Zero Tolerance

dssmili 07-15-2004 05:03 AM

Thanks bro.

mili

Predator668 07-16-2004 10:01 PM

Zero,

My suggestion to headed towards, everybody who has that group as pri. and addtional gets the pm.

TCB 07-18-2004 07:16 AM

Thanks for this handy script :D

HakkieDEV 07-18-2004 02:09 PM

Quote:

Originally Posted by trackpads
Is it possible to have it only send like 20 PMs at a time until complete? Would that help the issue with sending PMs to everyone?

I would actually prefer a mass PM instead of a mass email (thanks to VBs emails getting blocked all the time)

Thanks again,

-Jason

Very good hack mate!

I was looking to do something like this and you've done it!

CharlieBrownDE 07-31-2004 03:25 PM

hi,

thx for the wonderfull hack:)
sorry for my bad english:D

I have still one ask in addition.
also does the possibility exist the variable as replacementaddresses to take with this chops?

$userid, $username, $email ....

Hiro 08-08-2004 07:35 PM

Amazing hack, Successfully installed.

trackpads 09-08-2004 08:12 AM

Quote:

Originally Posted by Zero Tolerance
Well one was made, but not to my liking, it was an edit of the email page, and didn't really please me to what i wanted. So i made this, a simple yet effective hack well requested across vbulletin and other systems.

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.
Send to usergroup only
- You can specify if you want to send to ALL usergroup's or just 1 usergroup, helps if your wanting to Pm your admins or mods, or just members.

And thats it... what more could you ask for in a mass pm hack?

Any questions please reply below, there's a preview for you all because i know myself i hate installing things just to see what they look like ;)

Enjoy,

- Zero Tolerance

Any update on the new version?

Thanks again!!

-Jason

68 Z-28 09-10-2004 02:56 AM

Ran into a minor problem. I successfully installed it into my mods control panel and it's there to work.

However, this hack will only send PM's to people in a usergroup which they are a primary member of. I have made more usergroups for different regions, and the members have that as a secondary usergroup. If I try to send a PM to a specific regional group(all members are secondary not primary) it says that there are no members in that usergroup.

How would I go about modifying the code so it will also do a check for members that have a usergroup as the second one.

Thankyou in advance

dune 09-26-2004 08:28 AM

Perfect. Thank you!

I thought how helpful it would be to have these abilities, came here to look and voila!

*install*

dune 10-01-2004 05:02 PM

Quote:

Originally Posted by 68 Z-28
However, this hack will only send PM's to people in a usergroup which they are a primary member of. I have made more usergroups for different regions, and the members have that as a secondary usergroup. If I try to send a PM to a specific regional group(all members are secondary not primary) it says that there are no members in that usergroup.

How would I go about modifying the code so it will also do a check for members that have a usergroup as the second one.

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).

dune 10-01-2004 05:08 PM

Quote:

Originally Posted by Zero Tolerance
And thats it... what more could you ask for in a mass pm hack?

Well, since you asked. ;)

The ability to preview the PM and at least the number of people (if not the full list for shorter lists) who will receive the PM BEFORE it gets sent would be nice.

kristian 12-23-2004 10:47 AM

Trust me to be the one...! :tired:

I can send to Admins, mods and Super Mods. But I cant send to Registered users (6500+); even at 30 at a time!

The page goes blank and nothing happens. I checked out the PMtexts table and nothing is sent.

Any ideas???

T3MEDIA 12-24-2004 10:27 AM

Good point that happend to me as well the screen went blank.
is it sending? I thought it would show the names and say sent sent sent.

I guess I have to wait and see.
================================================== =
edit:
Found out what is up but dont know why it happens.
If I pick a uersergoup. Like reg. users.
and have something in the title. it works.
If I just do "usergroups" nada.

So just to let you guys know.

Clb 12-25-2004 12:43 PM

[high]* Clb clicks install
[/high]

thnx! :D

T3MEDIA 12-25-2004 04:47 PM

Can we PLEASE have this set up so I can PM females or only people in Texas? or even better only females in Texas of a certain age.

This is a HOT hack and I want to do marketing with it.

PLEASE and THANK YOU!!!!

T3MEDIA 01-05-2005 09:48 PM

Dont know why. just not working

T3MEDIA 01-18-2005 06:19 PM

Quote:

Originally Posted by kristian
Trust me to be the one...! :tired:

I can send to Admins, mods and Super Mods. But I cant send to Registered users (6500+); even at 30 at a time!

The page goes blank and nothing happens. I checked out the PMtexts table and nothing is sent.

Any ideas???

Did you ever get a fix for this? mine does the same thing.

dune 01-28-2005 03:59 PM

I am having the same issue when trying to send to "Registered" group. I submit and the page goes blank. As far as I know the PM wasn't received by any users.

I can send to all other groups with no problem.

The only thing I see different with that "Registered" group is that it's the only "primary" group on the Usergroup page in Admin. The rest are secondary, and the mass pm work with those secondary groups just fine. Dunno if that means diddly or not, but thought I would throw it out there. Heh.

If anyone can figure this one out I will be most grateful. Thanks!

T3MEDIA 01-31-2005 02:37 AM

bump!

Haiko 01-31-2005 12:23 PM

Nice Hack!

Quick question though, I want to use this to send out merchant advertisements, how can this be modified so that it wouldn't say PM (cause it really wouldn't be) but let's say "new merchant announcement" without changing any functionality.

T3MEDIA 02-01-2005 11:41 PM

Quote:

Originally Posted by dune
I am having the same issue when trying to send to "Registered" group. I submit and the page goes blank. As far as I know the PM wasn't received by any users.

I can send to all other groups with no problem.

The only thing I see different with that "Registered" group is that it's the only "primary" group on the Usergroup page in Admin. The rest are secondary, and the mass pm work with those secondary groups just fine. Dunno if that means diddly or not, but thought I would throw it out there. Heh.

If anyone can figure this one out I will be most grateful. Thanks!

Can anyone HELP here PLEASE??????

vbtester33 02-02-2005 05:45 AM

what about people that have pm's turned off?

T3MEDIA 02-06-2005 02:37 PM

Well once again... vb ++++s you up the ass.
thanks Z.T. I guess you live up to your name. Hey its free but why even put it out there and say you support it?
++++.


All times are GMT. The time now is 01:47 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.01368 seconds
  • Memory Usage 1,830KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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