View Full Version : Email users regardless of 'no mail from admin'-setting in CP
Sparkz
04-21-2002, 10:00 PM
Description: Small hack that adds a Yes/No options to 'Email Users' and 'Build Mailing List', which allows the admin to include users that has chosen to not recieve emails from admins.
All changes are done in admin/email.php
Tested on: 2.2.5
Requested by: angelsb i tch
All directions are included in the attached file.
afterlab
04-22-2002, 10:41 AM
I'm not going to install this, but i'll help ya out with a little something.. I checked out your instructions, and why don't you add in the deletion of the "Receive notices by Moderators etc.." row in the template, editoptions. Because if you leave that in there, it would seem worthless, and members could become confused.
Sparkz
04-22-2002, 10:54 AM
I think it should stay there. The only times I would use this hack (if I had it installed myself) was if I wanted to notify the members of something really important. By leaving it the users can opt to not recieve 'normal' messages from admins (of course, the admins would have to use some common sense when chosing to send messages to all users.)
Floris
04-22-2002, 04:09 PM
Very nice hack! We will discuss this to see if we want to install it
Sparkz
04-22-2002, 04:30 PM
Thank you :)
I was kinda bored at work today, and desperate to do something not work-related... This was the result :)
Sparkz
04-23-2002, 11:08 PM
It suddenly dawned on me that this could be quite useful to notify that the site have to go offline - or something like that - for whatever reason... I might even install this myself now... lol :)
jjj0923
04-24-2002, 04:37 PM
I think it's a great hack. If you want to take advantage of all the benefits of my forum that I installed, pair for and maintain, they'd better be willing to accept important emails from me once in a while. If not, leave....
:) - jeff
Sparkz
04-24-2002, 05:39 PM
I have not tested it on 2.2.4. It is only tested on 2.2.5.
The option should be added at the bottom of the page, tho.
This hack isn't actually complete, at least it doesn't do what its supposed to fully. It works for the first page but when there is more than one page the variable isn't sent to the other pages. So basically after the first page it will only send to those who have specified that they want to receive email. I managed to fix this though.
Great hack btw!
Derek
06-20-2002, 04:08 PM
Matt, do you mind posting the code that you edited? It would be helpful as you called for the bug, fixed it yourself, yet aren't showing us what you did... :D
Kathy
06-23-2002, 08:02 PM
Yes, please?
I need to be able to email my entire membership regardless of their prefs in their control panel for emailing.
Would you mind explaining the code you changed to make sure that all the members (not just the ones on the first page) are emailed?
Thanks!
Sorry it took me so long to reply, I have been REALLY busy. Lemme try and remember what I did......
*looks at code*
FIND :
makehiddencode("postsupper",$postsupper);
UNDERNEATH add:
makehiddencode("regardless",$regardless);
This ensures that the variable $regardless is passed to every page rather than just to the first page :) Hope that helps you guys!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.