Excellent sounding mod will be great for gaming clan forums wanting to notify members of wars, I havn't had a chance to test but i have a few quick questions.
1. Can you allow other specific users access to this feature without opeing the entire admin.
You would have to tinker with it but the tinkering would be very very easy. There is a place in the mod where it turns on a switch to allow the right to mass email if the user is the admin; all you would need to do is to change that code so that if the user was the admin OR the user had a user_id of ___ [fill in the blank] he would have the right. You could also open this up for everyone by changing the code so that the switch was always on - that would be easy too - but it seemed to me that you wouldn't necessarily want everyone on your board to be able to mass email to everyone.
To be more specific, if you want to allow a specific user other than the admin to have the option to email to groups, do this:
Code: Select all
// start mod email to designated groups
// the following code adds a checkbox option in new posts for the admin only
if( $userdata['user_level'] == 1 )
// end mod email to designated groups
Now change the line that reads: if( $userdata['user_level'] == 1 ) so that it instead reads:
if( $userdata['user_level'] == 1 or $userdata['user_id'] == [fill in the user_id of the user you want to allow to email to groups] )
If instead you want to allow all users to have this option, delete the if statement and the open and close curly brackets from the code block I quote above and you should be all set.
It is also possible to change things so that users in a particular usergroup would have the option to email to groups...but that is a bit more involved and since that's not useful for my board I doubt I'll get around to doing that. [edit...I have now done this...see a few posts down from here...]
If anyone wants to take a crack at that, the code block I quoted above is the key...all you need to do is to write some code figuring out whether tthe user in question is in fact authorized to email and, if so, run the $template->assign_block_vars etc. line.
I guess the nicest way to do it would be if there were a checkbox in the group management (admin_groups) page for each group that would allow the admin to designate whether members of that group would be entitled to do mass emails; if yes, a column in the group db for that group would be set to 1; then in the code block I quote above there would be code to check whether the particular user was a member of a group that had that column set to 1; if so (or, for that matter, if the user is an ADMIN), the $template->assign_block_vars etc. line would get run.
In fact, you could do the same thing for particlar users too...in the user management page you could add a checkbox that allows the admin to decide whether the user would be permitted to mass email. But this is probably wasted, since if you have already done the group thing the admin could set up a group solely for users who can mass email, and then there's no reason to designate particular users separately.
2. This mod won't allow you to send HTMl emails will it. this could maybe be a future update
, if not anyone know a mod that might work with it.