Code: Select all
'NOTIFY_ADMIN_EMAIL' => 'Please notify the board administrator or webmaster: <a href="mailto:%1$s">%1$s</a>',
Code: Select all
'NOTIFY_ADMIN_EMAIL' => 'Please notify the board administrator or webmaster: <a href="mailto:%1$s">%1$s</a>',
You will find the line in ./language/en/common.php.cwcollector wrote:I have search the original phpbb 3 files and they do not contain this line in common.php in the folder acp.
Code: Select all
'NOTIFY_ADMIN_EMAIL' => 'Please notify the board administrator or webmaster: <a href="mailto:%1$s">%1$s</a>',
You will have to change a few php files, 6 to be exact. Please see this post I made some days ago:saaiberke wrote:It would be great if additionally it would be possible to have all mailto: contact links (errors, registration problems etc) in the board point to /contact.php or another URL (ticketsystem) so that all contacts pas one single point.
Anyone knows how I can change this?
Grtz,
Nic
Code: Select all
[phpBB Debug] PHP Notice: in file /adm/index.php on line 344: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'acp_board::contact_method_select' was given
[phpBB Debug] PHP Notice: in file /adm/index.php on line 344: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'acp_board::contact_bot_forum_select' was given
[phpBB Debug] PHP Notice: in file /adm/index.php on line 149: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Code: Select all
//-- mod : Contact board administration ------------------------------------------------------------
//-- add
/**
* Create the selection for the contact method
*/
function contact_method_select($value, $key)
{
$radio_ary = array(
CONTACT_METHOD_EMAIL => 'CONTACT_METHOD_EMAIL',
CONTACT_METHOD_POST => 'CONTACT_METHOD_POST',
CONTACT_METHOD_PM => 'CONTACT_METHOD_PM',
);
return h_radio('config[contact_method]', $radio_ary, $value, $key);
}
/**
* Create the selection for the bot forum
*/
function contact_bot_forum_select($value, $key)
{
return '<select id="' . $key . '" name="config[contact_bot_forum]">' . make_forum_select($value, false, true) . '</select>';
}
//-- fin mod : Contact board administration --------------------------------------------------------
Code: Select all
}
yepBizimPencere wrote:It's this mod compatible with phpbb3 gold?
Here is what I did. Find the following lines in contact.php:saaiberke wrote: Send the message a user wrote to a (hardcoded) predefined emailaddress using the mailaddress from the user's profile info (or if guest the address that was entered in the contactform) as the from address.
Code: Select all
// Email headers
$messenger->headers('X-AntiAbuse: Board servername - ' . $config['server_name']);
$messenger->headers('X-AntiAbuse: User_id - ' . $user->data['user_id']);
$messenger->headers('X-AntiAbuse: Username - ' . $user->data['username']);
$messenger->headers('X-AntiAbuse: User IP - ' . $user->ip);
// Loop through our list of users
for ($i = 0, $size = sizeof($contact_users); $i < $size; $i++)
{
$messenger->template('admin_contact', $contact_users[$i]['user_lang']);
$messenger->to($contact_users[$i]['user_email'], $contact_users[$i]['username']);
$messenger->im($contact_users[$i]['user_jabber'], $contact_users[$i]['username']);
Code: Select all
$messenger->from($contact_email);
$messenger->replyto($contact_email);