![]() |
Email users regardless of 'no mail from admin'-setting in CP
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. |
Nice :)
|
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.
|
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.)
|
Very nice hack! We will discuss this to see if we want to install it
|
Thank you :)
I was kinda bored at work today, and desperate to do something not work-related... This was the result :) |
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 :)
|
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 |
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! |
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
|
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! |
All times are GMT. The time now is 12:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|