Pb about permission to mass email

This mod, will add the ability to make "newsletters" and other customised mass emails, status is showen while sending mass email
It will also be posible to grant other users permissions to send mass email to a specific usergroup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Pb about permission to mass email

Postby Marco_workinimage on Thu 24. Nov, 2005 14:42

Hi everybody,

I read a lot of messages about permission problems when trying to give right to somebody else then admin to mass email. In fact, in the group admin board, whatever you do, it always turns back to admin.

I had this problem too. It was quite embarrassing since this MOD is made for this purpose !

Here is how i fixed it:

in your_forum/admin/admin_groups.php,

find
Code: Select all
$sql = "UPDATE " . GROUPS_TABLE . "

replace next line
Code: Select all
            SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator

by
Code: Select all
            SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator, group_allow_email = $group_allow_email


find
Code: Select all
      else if( $mode == 'newgroup' )

replace next line
Code: Select all
         $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user)
            VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0')";

by
Code: Select all
         $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user, group_allow_email)
            VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0', $group_allow_email)";


Hope it helps ! :D

Marco
Marco_workinimage
Poster
Poster
 
Posts: 1
Joined: Thu 24. Nov, 2005 14:22

Return to Custom mass email [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron