vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Social Group and Album Enhancements - Social Group Emails (https://vborg.vbsupport.ru/showthread.php?t=237914)

Farcaster 03-09-2010 10:00 PM

Social Group Emails
 
1 Attachment(s)
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:
HTML Code:

                <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:

HTML Code:

                <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.

Known Issues
  • [Unconfirmed] User group settings may need to be refreshed for permissions to be correctly set. [post]

BlackJacket 03-10-2010 02:38 AM

Thanks! Tagged for later.

starman? 03-10-2010 04:45 AM

Thanks for the mod, however, I've followed the instructions to the letter, uploaded, imported the product and edited the template and the email option does not show up in the group tools menu. Am I missing something?

Farcaster 03-10-2010 04:52 AM

Quote:

Originally Posted by starman? (Post 2000694)
Thanks for the mod, however, I've followed the instructions to the letter, uploaded, imported the product and edited the template and the email option does not show up in the group tools menu. Am I missing something?

Check the settings for the Administrators user group (as well as others) and make sure that under the Group permissions section, the options for "Can Send Mass Email to Own Groups" and "Can Send Mass Email to Any Group" are selected as "Yes." For other groups, set as appropriate.

starman? 03-10-2010 05:22 AM

Set by default

Farcaster 03-10-2010 05:50 AM

Quote:

Originally Posted by starman? (Post 2000708)
Set by default

Hmm.. Grab one of your group ID's and try directly going to the following address. Replace the domain with your own forum path, and replace the ### with a known good group ID. Let me know what the results are.

http://YOURDOMAIN.COM/sendmessage.ph...il&groupid=###

starman? 03-10-2010 06:03 AM

No need for that. I went to group permissions and set "Can Send Mass Email to Own Groups" and "Can Send Mass Email to Any Group" to "No." I then saved it. I went back in and changed to "Yes" and saved it and now it works.

It seems there is a small error during installation of the bitfield, but I'm just happy to have it working now. Thanks for a really necessary product.

Farcaster 03-10-2010 02:49 PM

Quote:

Originally Posted by starman? (Post 2000729)
No need for that. I went to group permissions and set "Can Send Mass Email to Own Groups" and "Can Send Mass Email to Any Group" to "No." I then saved it. I went back in and changed to "Yes" and saved it and now it works.

Did anyone else have this problem?

Jabong82 03-10-2010 09:27 PM

I had this same issue too.

I had to set permissions to no, set it back to yes, and then the email option showed up for me in the groups.

Great mod anyway installed thank you!

Jabong82 03-10-2010 09:35 PM

Oh I have a quick question. I just tested this in one o f my groups, and after I submit the message it says "You have successfully emailed 0 members". And then the no one receives the email. Isn't this just supposed to automatically email everyone in the group?

That being said, I didn't see an option to pick who to send the email to so I'm kinda lost here. Any help would be appreciated.

Farcaster 03-11-2010 02:07 AM

Quote:

Originally Posted by Jabong82 (Post 2001168)
Oh I have a quick question. I just tested this in one o f my groups, and after I submit the message it says "You have successfully emailed 0 members". And then the no one receives the email. Isn't this just supposed to automatically email everyone in the group?

That being said, I didn't see an option to pick who to send the email to so I'm kinda lost here. Any help would be appreciated.

If the members are set to not receive email from other members, it won't send them an email at all. Check that out and see if that is it.

Jabong82 03-11-2010 03:39 AM

Ah yah that was it. Quick question, do you know what this is? In the social group email it gives the option to use a "form" in the email as well as provides the actual email address. But my form just comes out as /sendmessage.php yada yada. Am I supposed to set this somewhere? Thanks in advance.


=========================================
To email XXXXX, you can use this online form:
/sendmessage.php?do=mailmember&u=1

OR, by email:
mailto:XXXXXXXX@gmail.com

This is the message:

Test Email.

AzzidReign 03-13-2010 04:14 PM

Thank you.

daggz 05-20-2010 12:28 AM

Same issue on install as https://vborg.vbsupport.ru/showpost....29&postcount=7

Otherwise great addon. Good work

Xencored 07-06-2010 06:52 PM

Thanks man awesome stuff :)

Footman 07-06-2010 09:50 PM

Excellent! This will fit nicely into my site.

Phototrope 11-12-2010 03:13 PM

This looks good. Tagged.

Wouldn't it be cool if social group members could reply to the email they received from this, and the email automatically got received by vB, and then generated vB messages for everyone in that social group.

I can dream...

starman? 01-20-2011 12:38 AM

Had to uninstall this after upgrading to 4.1.1 (and after reverting some templates) but then re-installed and it's working just great, but when you search for the code in the template in order to add the new code below it, search for this code instead;

Code:

<vb:if condition="$show['postlink']">
                                        <li><a href="{vb:link group, {vb:raw group}, 'do=message'}" rel="nofollow">{vb:rawphrase new_discussion}</a></li>
                                </vb:if>


LoveStream 02-13-2011 07:05 AM

This a great what I looking for.
Let me suggest that I prefer to PM instead of Email.

Can I use this option to PM, if it is disabled could you add a select this option?

elrafei 04-06-2011 06:09 PM

Great mod

thank you !

angeljs 05-14-2011 06:50 PM

Same problem with install, but now working fine, thanks for this, been waiting for it! :)

egysc 05-15-2011 12:09 PM

could it be personal messages please ?

MagicThemeParks 05-15-2011 01:39 PM

Quote:

Originally Posted by sciencesway.com (Post 2195958)
could it be personal messages please ?

4.x Mass PM https://vborg.vbsupport.ru/showthrea...highlight=mass

3.x Mass PM Social Groups https://vborg.vbsupport.ru/showthrea...highlight=mass

perfphysio 05-21-2011 12:42 PM

Hi there, this is a great mod. BUT I have found a privacy issue with the email it actually send. Included in that email is MY Email Address. As an administrator I do not want my email getting out. I have privacy settings on my account that don't let people email me, PM is OK but the email you send included my email. Is there a way to prevent that from happening?

It also contains a link to a form that actually is disabled when you click on it (due to my settings). It would be great if that just didn't show in the email if that was going to be the case when you had clicked on that link

e.g. it shows like this

Dear SuperFizz,

The following message was sent to all members of Dance Physiotherapy (Ballet focused).

To email xxxxxxxx, you can use this online form:
http://www.physiobob.com/forum/sendm...mailmember&u=1

OR, by email:
mailto: xxxxxxxxxx@gmail.com

This is the message:

Test email to all members

zapiy 06-03-2011 02:27 PM

Can this be configured so anyone from the group can pm all from the group about new events?

Thanks

hallenberg 10-27-2011 05:32 AM

It looks as though permissions have to be refreshed after install because the install code is a little flakey..

Code:

<installcode><![CDATA[$vbulletin->db->hide_errors();
$vbulletin->db->query_write("ALTER TABLE ".TABLE_PREFIX."usergroup ADD social_group_permissions_email INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL");
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."usergroup SET social_group_permissions_email = 3 WHERE usergroupid = 6");
build_forum_permissions;
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."usergroup SET social_group_permissions_email = 1 WHERE usergroupid IN (2,5,7)");
]]></installcode>

..should probably read like this instead:

Code:

<installcode><![CDATA[$vbulletin->db->hide_errors();
$vbulletin->db->query_write("ALTER TABLE ".TABLE_PREFIX."usergroup ADD social_group_permissions_email INT( 10 ) UNSIGNED DEFAULT 0 NOT NULL");
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."usergroup SET social_group_permissions_email = 3 WHERE usergroupid = 6");
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."usergroup SET social_group_permissions_email = 1 WHERE usergroupid IN (2,5,7)");
build_forum_permissions();
]]></installcode>

Then it works fine.


All times are GMT. The time now is 05:50 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
  • Page Generation 0.02186 seconds
  • Memory Usage 1,799KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete