Link code...

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 !

Postby Brando on Wed 07. May, 2003 06:07

Thx Man!
It looks and works great! :D
Thanks a lot, my Mass Email is finally functional! 8)
Brando
Poster
Poster
 
Posts: 22
Joined: Tue 22. Apr, 2003 02:06

Postby bigboy on Wed 07. May, 2003 13:49

glad I could help you out.

can you please try and help me out a little now please :cry:

I have tried to install this mass email but to no avail, there are no instructions in the sip file apart drom how to edit 2 files (which I have done)

It does not mention where to place other files or how to use this mod.

basicaly there are no instructions worth mentioning.
bigboy
Poster
Poster
 
Posts: 16
Joined: Thu 13. Feb, 2003 16:31

Postby Brando on Wed 07. May, 2003 19:47

Well I'll try to help ya out the best that I can...

You said you edited two files and that the instructions were unclear....the instructions are a little choppy, but it's not too hard...
So, I'll ask, do you have the latest version? (1.1.0)

In the instructions it tells you to add a table to SQL, have you done this?
Code: Select all
#
#-----[ ADD SQL ]------------------------------------------
#
ALTER TABLE groups ADD group_allow_email TINYINT (2) DEFAULT "5" NOT NULL


I am thinking you don't have the latest version because you have to edit 3 files, not just 2, although at the very beginning it only talks about 2.
Here are the intructions for editing the 3 files.

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// addded to mass email mod
$lang['group_allow_email'] = 'Permissions to mass email';
$lang['group_allow_email_explain'] = 'Select which type of users have the rights to mass email this group.';

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_groups.php

#
#-----[ FIND ]------------------------------------------
#
'group_moderator' => '',

#
#-----[ AFTER, ADD ]------------------------------------------
#
'group_allow_email' => AUTH_ADMIN,

#
#-----[ FIND ]------------------------------------------
#
$group_hidden = ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : '';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$group_alllow_all = ( $group_info['group_allow_email'] == AUTH_ALL ) ? ' checked="checked"' : '';
$group_allow_reg = ( $group_info['group_allow_email'] == AUTH_REG ) ? ' checked="checked"' : '';
$group_allow_private = ( $group_info['group_allow_email'] == AUTH_ACL ) ? ' checked="checked"' : '';
$group_allow_mod = ( $group_info['group_allow_email'] == AUTH_MOD ) ? ' checked="checked"' : '';
$group_allow_admin = ( $group_info['group_allow_email'] == AUTH_ADMIN ) ? ' checked="checked"' : '';


#
#-----[ FIND ]------------------------------------------
#
'GROUP_MODERATOR' => $group_moderator,

#
#-----[ AFTER, ADD ]------------------------------------------
#
'GROUP_ALLOW_EMAIL' => $group_info['group_allow_email'],

'L_GROUP_ALLOW_EMAIL' => $lang['group_allow_email'],
'L_GROUP_ALLOW_EMAIL_EXPLAIN' => $lang['group_allow_email_explain'],
'L_GROUP_ALL_ALLOW_EMAIL' => $lang['Forum_ALL'],
'L_GROUP_REG_ALLOW_EMAIL' => $lang['Forum_REG'],
'L_GROUP_PRIVATE_ALLOW_EMAIL' => $lang['Forum_PRIVATE'],
'L_GROUP_MOD_ALLOW_EMAIL' => $lang['Forum_MOD'],
'L_GROUP_ADMIN_ALLOW_EMAIL' => $lang['Forum_ADMIN'],

'S_GROUP_ALL_ALLOW_EMAIL_CHECKED' => $group_allow_all,
'S_GROUP_REG_ALLOW_EMAIL_CHECKED' => $group_allow_reg,
'S_GROUP_PRIVATE_ALLOW_EMAIL_CHECKED' => $group_allow_private,
'S_GROUP_MOD_ALLOW_EMAIL_CHECKED' => $group_allow_mod,
'S_GROUP_ADMIN_ALLOW_EMAIL_CHECKED' => $group_allow_admin,
'S_GROUP_ALL_ALLOW_EMAIL' => AUTH_ALL,
'S_GROUP_REG_ALLOW_EMAIL' => AUTH_REG,
'S_GROUP_PRIVATE_ALLOW_EMAIL' => AUTH_ACL,
'S_GROUP_MOD_ALLOW_EMAIL' => AUTH_MOD,
'S_GROUP_ADMIN_ALLOW_EMAIL' => AUTH_ADMIN,

#
#-----[ FIND ]------------------------------------------
#
$delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? true : false;

#
#-----[ AFTER, ADD ]------------------------------------------
#
$group_allow_email = isset($HTTP_POST_VARS['group_allow_email']) ? intval($HTTP_POST_VARS['group_allow_email']) : AUTH_ADMIN;


#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_type =

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$group_moderator

#
#-----[ IN-LINE AFTER,ADD ]------------------------------------------
#
, group_allow_email='$group_allow_email'

#
#-----[ FIND ]------------------------------------------
#
else if( $mode == 'newgroup' )
{
$sql = "INSERT INTO " . GROUPS_TABLE . " (
VALUES (

#
#-----[ IN-LINE FIND ]------------------------------------------
#
, group_moderator

#
#-----[ IN-LINE AFTER,ADD ]------------------------------------------
#
, group_allow_email

#
#-----[ IN-LINE FIND ]------------------------------------------
#
, $group_moderator

#
#-----[ IN-LINE AFTER,ADD ]------------------------------------------
#
, '$group_allow_email'


#
#-----[ OPEN ]------------------------------------------
#
template/subsilver/admin/group_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#
   {L_GROUP_HIDDEN}</td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#

<tr>
  <td class="row1" width="38%"><span class="gen">{L_GROUP_ALLOW_EMAIL}:</span><br/>
  <span class="gensmall">{L_GROUP_ALLOW_EMAIL_EXPLAIN}</span></td>
  <td class="row2" width="62%">
   <input type="radio" name="group_allow_email" value="{S_GROUP_ALL_ALLOW_EMAIL}" {S_GROUP_ALL_ALLOW_EMAIL_CHECKED} /> {L_GROUP_ALL_ALLOW_EMAIL} &nbsp;&nbsp;
   <input type="radio" name="group_allow_email" value="{S_GROUP_REG_ALLOW_EMAIL}" {S_GROUP_REG_ALLOW_EMAIL_CHECKED} /> {L_GROUP_REG_ALLOW_EMAIL} &nbsp;&nbsp;
   <input type="radio" name="group_allow_email" value="{S_GROUP_PRIVATE_ALLOW_EMAIL}" {S_GROUP_PRIVATE_ALLOW_EMAIL_CHECKED} /> {L_GROUP_PRIVATE_ALLOW_EMAIL} &nbsp;&nbsp;
   <input type="radio" name="group_allow_email" value="{S_GROUP_MOD_ALLOW_EMAIL}" {S_GROUP_MOD_ALLOW_EMAIL_CHECKED} /> {L_GROUP_MOD_ALLOW_EMAIL} &nbsp;&nbsp;
   <input type="radio" name="group_allow_email" value="{S_GROUP_ADMIN_ALLOW_EMAIL}" {S_GROUP_ADMIN_ALLOW_EMAIL_CHECKED} /> {L_GROUP_ADMIN_ALLOW_EMAIL}
  </td>
</tr>


After you have added the table to your SQL and edited the 3 files, you must upload mass_email.php and lang_mass_email.php.

Code: Select all
#
#-----[ COPY ]------------------------------------------
#
copy mass_email.php to mass_email.php (The Root Directory of Your Forum)


Code: Select all
#
#-----[ COPY ]------------------------------------------
#
copy lang_mass_email.php to language/english/lang_mass_email.php


After that, you just make the link to mass_email.php in groupcp_info_body.tpl, which is located in templates/(You Current Template)/groupcp_info_body.tpl

Once you have done all of this, it should work fine.
Brando
Poster
Poster
 
Posts: 22
Joined: Tue 22. Apr, 2003 02:06

Postby bigboy on Mon 12. May, 2003 16:47

that was the problem with this mod there were no clear instructions.

I have downloaded the latest version (still poor on instructions) but the thing that was missing was the fact you run the mass email file from the index page, I was using the file in the admin pannel??? should have been noted in the mod.

anyway all seems to be working now will give it a test and see what happens.

thanks for the help and glad you finaly got sorted
bigboy
Poster
Poster
 
Posts: 16
Joined: Thu 13. Feb, 2003 16:31

Postby Brando on Mon 12. May, 2003 22:19

Well I am glad I could clear it up a little for you, and thanks for your help too. Yea, PHPBB2 comes with mass email for the admin, the point of this MOD is to allow the moderators to mass email. Anywayz, hope it works for ya and thx for the link code and images.


Brando

P.S. The Instructions are quite UNCLEAR, needs a little rewording...
Brando
Poster
Poster
 
Posts: 22
Joined: Tue 22. Apr, 2003 02:06

Previous

Return to Custom mass email [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron