PDA

View Full Version : Email to multiple usergroups in "Email Users" section


ImportPassion
09-01-2003, 10:00 PM
Well, this is my first published hack. I did search and looked through the hacks db and found nothing that would do this.

I went to send an email to just my Vendor usergroups and found out that I would have to go through the process 3 times since I have 3 different Vendor ug's. Forget that. So I made this.

It allows you to select multiple usergroups to send emails to at once, instead of one at a time.

I will try to provide help where I can, but no guarantees.

I could have hacked vB's current function for makechoosercode, but I didn't and made my own which is 98% similar.

Should work in most 2.x versions, but no guarantees.

Anyway, I hope this hasn't been done.

Enjoy.

Derek

ImportPassion
09-02-2003, 02:34 PM
Screen shot:

assassingod
09-02-2003, 02:49 PM
Very nice! Good Job

Airs
09-02-2003, 08:00 PM
Very usefull! *clicks install* thnx!

Dean C
09-03-2003, 02:54 PM
Good idea :)

Boofo
09-04-2003, 09:09 AM
Is this multiple choice box supposed to be under "Build Mailing List" or under "Email Users"? Mine is under "Build Mailing List" and only makes the list of e-mail addresses. Shouldn't it be under "Email Users" instead? Or am I missing something here? ;)

ImportPassion
09-05-2003, 12:57 PM
It should be under both. You must have missed a step somewhere. Try going through it all again.

Derek

Sephiroth 9999
09-08-2003, 05:15 PM
Very useful. :) But you could still use copy/paste and get the job done quite fast. ;)

* Sephiroth 9999 kicks install

Boofo
09-08-2003, 06:43 PM
09-05-03 at 08:57 AM 7thgenCivic.Com said this in Post #7 (https://vborg.vbsupport.ru/showthread.php?postid=431526#post431526)
It should be under both. You must have missed a step somewhere. Try going through it all again.

Derek

I found the problem. In your instructions, you are replacing this:

makechoosercode("and usergroup is","usergroupid","usergroup",-1,"Any");

only once and it needs to be replaced in 2 places for it to show up in both parts. ;)

ImportPassion
09-10-2003, 10:03 PM
Thanks Bofo. I corrected the file.

D

Xxman
11-27-2004, 11:15 AM
I done all modification but I get this error :

Invalid SQL: SELECT COUNT(*) AS total FROM user WHERE 1=1 AND usergroupid IN (6,71,70,66,7,54,53,5,2,72,62,65,1,3,60,61) AND adminemail=1 AND Array!=9
mysql error: Unknown column 'Array' in 'where clause'

mysql error number: 1054


What appens ? :(