PDA

View Full Version : Social Group Emails



admin
10-03-2010, 04:39 PM
This modification will allow social group owners and administrators to send an email to all members of a social group. Each usergroup can be configured to specifically allow or disallow sending to groups they created, if you would like to limit this ability to specific trusted user groups. By default, admins will also be able to send emails to members of any group, regardless of whether they created the group or not.

Note: If a social group member has elected not to receive emails from other members or is invited to a group and has not accepted yet, they will not receive emails sent using this modification.

Installation

1. Upload bitfield_socialgroupemail.xml to your forum/includes/xml directory before you install the product.
2. Use the Product Manager to import the product file product-rah_socialgroup_email.xml.
3. Use the Style Manager to find and edit your socialgroups_group template:

Find:

<vb:if condition="$show['postlink']">
<li><a href="group.php?{vb:raw session.sessionurl}do=message&amp;groupid={vb:raw group.groupid}" rel="nofollow">{vb:rawphrase new_discussion}</a></li>
</vb:if>

Below that ADD:

<vb:if condition="$groupoptions['email_group']">
<li><a href="sendmessage.php?{vb:raw session.sessionurl}do=groupemail&amp;groupid={vb:raw group.groupid}" rel="nofollow">{vb:rawphrase email_members}</a></li>
</vb:if>

Configuration:
By default, regular members, moderators, super moderators and administrators are configured to be able to send emails to their own social groups. Additionally, administrators are configured to be able to send email to any group. To change these permissions for these or any other groups:

1. In the AdminCP, goto Usergroups -> Usergroup Manager.
2. Edit the user group.
3. Find the section "Social Groups Permissions," and set the permissions for emailing as desired.

Uninstallation (IMPORTANT)
To properly uninstall this product, follow these instructions exactly:

1. Delete the file bitfield_socialgroupemail.xml from your forum/includes/xml directory.
2. Uninstall the product.

Screen Shot:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/03/10/04/79531268213969.jpghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/03/10/04/49981268213976.png