I don't have a lot of knowledge with php, but from what I can tell, nothing seems out of line compared with the "allow_emailcomments" section just above this one. I have tried renaming the variables every which way, and can't get the text to show up, nor the radio buttons to show the selected option. Please help!
Thanks, and thanks everyone for the great mod!
In db_field_definitions.php
on the end just before ?> add
$additional_user_fields['user_allowmailcomments'] = array($lang['user_allowmailcomments'], "radio", 0);
in the member.php
find
//--- Show Profile
and several lines later
$site_template->register_vars(array(
on the end of list add
"lang_allowmailcomments" => $lang['allowmailcomments']
Now find
//--- Edit Profile
in this section find (it could be little different than mine) and add this red marked fragment
$sql = "UPDATE ".USERS_TABLE."
SET ".get_user_table_field("", "user_email")." = '$user_email', ".get_user_table_field("", "user_showemail")." = $user_showemail, ".get_user_table_field("", "user_allowemails")." = $user_allowemails, ".get_user_table_field("", "user_invisible")." = $user_invisible, ".get_user_table_field("", "user_homepage")." = '$user_homepage', user_sex = '$user_gender' ,user_allowmailcomments = '$user_allowmailcomments' , ".get_user_table_field("", "user_icq")." = '$user_icq'".$additional_sql."
WHERE ".get_user_table_field("", "user_id")." = ".$user_info['user_id'];
$site_db->query($sql);
find
$user_allowemails = $user_info['user_allowemails'];
add
$user_allowmailcomments = $user_info['user_allowmailcomments'];
find
}
if ($user_allowemails == 1) {
$user_allowemails_yes = " checked=\"checked\"";
$user_allowemails_no = "";
}
else {
$user_allowemails_yes = "";
$user_allowemails_no = " checked=\"checked\"";
}
add
if ($user_allowemails == 1) {
$user_allowmailcomments_yes = " checked=\"checked\"";
$user_allowmailcomments_no = "";
}
else {
$user_allowmailcomments_yes = "";
$user_allowmailcomments_no = " checked=\"checked\"";
}
now it should works
---------------------------------
and little correction for SEO - short link system (works with seom mod instaled wersion where links looks like
http://sitename.com/img329)
Find
$image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id;
change it to
//SEO $image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id;
$image_url = $script_url."/img".$id;
---------------
Where can I setup a subject of email?