- Code: Select all
$post_pm_img = '<a href=
// Start add - Custom mass email MOD
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_mass_email.' . $phpEx);
if ( $userdata['user_level'] == ADMIN )
{
$mass_email_img = '<a href="' . append_sid("mass_email.$phpEx") . '"><img src="' . $images['mass_email'] . '" border="0" alt="' . $lang['Mass_email'] . '" /></a>';
} else
{
$sql_g = "SELECT DISTINCT g.group_id
FROM ".GROUPS_TABLE . " g, ".USER_GROUP_TABLE . " ug
WHERE g.group_single_user <> 1
AND (
(g.group_allow_email='".AUTH_MOD."' AND g.group_moderator = '" . $userdata['user_id']."') OR
(g.group_allow_email='".AUTH_ACL."' AND ug.user_id = " . $userdata['user_id'] . " AND ug.group_id = g.group_id ) OR
(g.group_allow_email='".AUTH_REG."' AND '".$userdata['user_id']."'!='-1' ) OR
(g.group_allow_email='".AUTH_ALL."')
)" ;
if( !$g_result = $db->sql_query($sql_g) )
{
message_die(GENERAL_ERROR, "Could not select group names!", __LINE__, __FILE__, $sql_g);
}
if( $db->sql_numrows($g_result))
{
$mass_email_img = '<a href="' . append_sid("mass_email.$phpEx") . '"><img src="' . $images['mass_email'] . '" border="0" alt="' . $lang['Mass_email'] . '" /></a>';
}
}
// End add - Custom mass email MOD"
' . $post_pm . '"><img src="' . $images['pm_postmsg'] . '" alt="' . $lang['Post_new_pm'] . '" border="0" /></a>';
$post_pm = '<a href="' . $post_pm . '">' . $lang['Post_new_pm'] . '</a>';
I keep getting the error "Parse error: parse error, unexpected T_STRING in /home/fds/html/zone/privmsg.php on line 2005" (which is the place with the above code), everything else works like a jiffy.
Working with PhpBB 2.0.11, Theme: Subsilver, Php5 (Works with it), APache2 and I did add the SQL update to my db.
I have taken the most recent version here of the mod, but still can't get it to parse... it may be php5 yes.... but.... a new pair of eyes peeking thru can do wonders when ya stuck
- Steven / Explorerdk

