Login     Sign up
modification function mail_notice
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

this is from v4.1.1, but i think it is the same in all versions
you find this function in common.ic.php

[code]
function mailnotice($type,$username,$title,$message) {
global $client;
$key = 'dismail
'.$type;
$res = sql_query("select id,email,fullname,settings from ".tb()."accounts where username='$username'");
$user = sql_fetch_array($res);
if (!$user['id']) return false;
if ($client['id'] == $user['id']) return false;
$user_settings = unserialize($user['settings']);
if (!$user_settings[$key]) {
@jcow_mail(
$user['email'],
$title,
nl2br(t('Dear ').$user['fullname'].",\r\n ".$message."\r\n").url('home',get_gvar('site_name'))
);
}
}
[/code]

line that is changed:

[code]
nl2br(t('Dear ').$user['fullname'].",\r\n ".$message."\r\n").url('home',get_gvar('site_name'))
[/code]

why ? 1. Dear can be translated, 2. notifications are sent in html format, so \r\n is changed to <br/>

173 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

by the way, are this type of postings still allowed, or should they be reviewed before as mention here [url]http://community.jcow.net/forums/viewthread/953[/url] ?

173 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

[quote=falcone]by the way, are this type of postings still allowed, or should they be reviewed before as mention here [url]http://community.jcow.net/forums/viewthread/953[/url] ? [/quote]

Yeah I think this falls definitely into the Customizing category and not module so this kind of post should be all good ,I think Vincent just wants modules to through review before they are put up for download just as a filter..

173 months ago