Code: Selecteer alles
$lang['Report_email'] = 'Report E-mail';
Code: Selecteer alles
$lang['Report_email'] = 'Report E-mail';
Code: Selecteer alles
Fatal error: Call to undefined function bpm_send_pm() in D:\Inetpub\wwwroot\tc\[map]\index.php on line 335
Code: Selecteer alles
Er is een fout opgetreden
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM phpbb_users WHERE user_id =
Line : 352
File : index.php
Code: Selecteer alles
// START Birthday Mail Extension & bpm mod
{
$sql = "SELECT *
FROM " . WPM;
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "", "", __LINE__, __FILE__, $sql);
}
else
{
while($row = $db->sql_fetchrow($result))
{
$swpm_config[$row['name']] = $row['value'];
}
}
if($swpm_config['active_bpm'])
{
$bpm_subject = str_replace("[username]", $username, $swpm_config['bpm_subject']);
$bpm_subject = str_replace("[age]", $user_age, $bpm_subject);
$bpm_subject = str_replace("[sitename]", $board_config['sitename'], $bpm_subject);
$bpm_message = str_replace("[username]", $username, $swpm_config['bpm_message']);
$bpm_message = str_replace("[age]", $user_age, $bpm_message);
$bpm_message = str_replace("[sitename]", $board_config['sitename'], $bpm_message);
bpm_send_pm($user_id, $bpm_subject, $bpm_message, 1); **
}
}
if($swpm_config['active_bpmmail'])
{
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = " . $userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "", "", __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$bd_mail = intval($row['user_email']);
}
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "", "", __LINE__, __FILE__, $sql);##
}
while ($row = $db->sql_fetchrow($result))
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->email_address(trim($row['user_email']));
$emailer->use_template("birthday", $row['user_lang']);
$emailer->set_subject($bpm_subject);
$emailer->set_message($bpm_message);
$bpm_subject = str_replace("[username]", $username, $swpm_config['bpm_subject']);
$bpm_subject = str_replace("[age]", $user_age, $bpm_subject);
$bpm_subject = str_replace("[sitename]", $board_config['sitename'], $bpm_subject);
$bpm_message = str_replace("[username]", $username, $swpm_config['bpm_message']);
$bpm_message = str_replace("[age]", $user_age, $bpm_message);
$bpm_message = str_replace("[sitename]", $board_config['sitename'], $bpm_message);
$emailer->assign_vars(array(
'MESSAGE' => str_replace($bpm_message),
'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $row['username']), 0, 25)),
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']))
);
$emailer->send();
$emailer->reset();
}
$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow['user_id']) . '"' . $style_color .'>' . $birthdayrow['username'] . ' ('.$user_age.')</a>,';
}
}
if ($birthday_today_list) $birthday_today_list[ strlen( $birthday_today_list)-1] = ' ';
if ($birthday_week_list) $birthday_week_list[ strlen( $birthday_week_list)-1] = ' ';
}
$db->sql_freeresult($result);
Code: Selecteer alles
Fatal error: Call to undefined function bpm_send_pm() in D:\Inetpub\wwwroot\tc\[map]\index.php on line 335
Code: Selecteer alles
Er is een fout opgetreden
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM phpbb_users WHERE user_id =
Line : 352
File : index.php
Code: Selecteer alles
// START Birthday Mail Extension & bpm mod
{
$sql = "SELECT *
FROM " . WPM;
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "", "", __LINE__, __FILE__, $sql);
}
else
{
while($row = $db->sql_fetchrow($result))
{
$swpm_config[$row['name']] = $row['value'];
}
}
if($swpm_config['active_bpm'])
{
$bpm_subject = str_replace("[username]", $username, $swpm_config['bpm_subject']);
$bpm_subject = str_replace("[age]", $user_age, $bpm_subject);
$bpm_subject = str_replace("[sitename]", $board_config['sitename'], $bpm_subject);
$bpm_message = str_replace("[username]", $username, $swpm_config['bpm_message']);
$bpm_message = str_replace("[age]", $user_age, $bpm_message);
$bpm_message = str_replace("[sitename]", $board_config['sitename'], $bpm_message);
bpm_send_pm($user_id, $bpm_subject, $bpm_message, 1); **
}
}
if($swpm_config['active_bpmmail'])
{
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = " . $userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "", "", __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$bd_mail = intval($row['user_email']);
}
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "", "", __LINE__, __FILE__, $sql);##
}
while ($row = $db->sql_fetchrow($result))
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->email_address(trim($row['user_email']));
$emailer->use_template("birthday", $row['user_lang']);
$emailer->set_subject($bpm_subject);
$emailer->set_message($bpm_message);
$bpm_subject = str_replace("[username]", $username, $swpm_config['bpm_subject']);
$bpm_subject = str_replace("[age]", $user_age, $bpm_subject);
$bpm_subject = str_replace("[sitename]", $board_config['sitename'], $bpm_subject);
$bpm_message = str_replace("[username]", $username, $swpm_config['bpm_message']);
$bpm_message = str_replace("[age]", $user_age, $bpm_message);
$bpm_message = str_replace("[sitename]", $board_config['sitename'], $bpm_message);
$emailer->assign_vars(array(
'MESSAGE' => str_replace($bpm_message),
'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $row['username']), 0, 25)),
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']))
);
$emailer->send();
$emailer->reset();
}
$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow['user_id']) . '"' . $style_color .'>' . $birthdayrow['username'] . ' ('.$user_age.')</a>,';
}
}
if ($birthday_today_list) $birthday_today_list[ strlen( $birthday_today_list)-1] = ' ';
if ($birthday_week_list) $birthday_week_list[ strlen( $birthday_week_list)-1] = ' ';
}
$db->sql_freeresult($result);
Code: Selecteer alles
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#sugestion code for removal of the section of the birthday mod in your board config
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND, DELETE ]------------------------------------------------
#
$birthday_greeting_yes = ( $new['birthday_greeting'] ) ? "checked=\"checked\"" : "";
$birthday_greeting_no = ( !$new['birthday_greeting'] ) ? "checked=\"checked\"" : "";
#
#-----[ FIND, DELETE ]------------------------------------------------
#
"BIRTHDAY_GREETING_YES" => $birthday_greeting_yes,
"BIRTHDAY_GREETING_NO" => $birthday_greeting_no,
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND,DELETE ]------------------------------------------------
#
<tr>
<td class="row1">{L_ENABLE_BIRTHDAY_GREETING}<br /><span class="gensmall">{L_BIRTHDAY_GREETING_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="birthday_greeting" value="1" {BIRTHDAY_GREETING_YES} /> {L_YES} <input type="radio" name="birthday_greeting" value="0" {BIRTHDAY_GREETING_NO} /> {L_NO}</td>
</tr>
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND,DELETE ]------------------------------------------------
#
$lang['Enable_birthday_greeting'] = 'Enable birthday greetings';
$lang['Birthday_greeting_expain'] = 'Users who have submitted a birthday can have a birthday greeting, when thy visit the board';