1
Feedback & Suggestions / Re: Downloading older versions
« on: September 22, 2006, 04:55:05 PM »
But the question is still open!
PS. I need 4images1.7.1 and I can't find it.
PS. I need 4images1.7.1 and I can't find it.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Where can I set number of characters (numbers)?No ideas? =[
$site_db->query($sql);
$commentid = $site_db->get_insert_id();
update_comment_count($id, $user_info['user_id']);
//-----------------------------------------------------
// Start Emailer for comments
//-----------------------------------------------------
$recipient_name = $image_row['user_name'];
$recipient_email = $image_row['user_email'];
$image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id;
$sql = "SELECT user_allowemails FROM ".USERS_TABLE." WHERE ".get_user_table_field("", "user_name")." = ".$recipient_name;
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$user_allowemails = ($row['user_allowemails']);
if ($image_row['user_id'] != $user_info['user_id'] && $user_allowemails == 1) {
include(ROOT_PATH.'includes/email.php');
$site_email = new Email();
$site_email->set_to($recipient_email);
$site_email->set_from($config['site_email'], $config['site_name']);
$site_email->set_subject($lang['send_comment_emailsubject']);
$site_email->register_vars(array(
"user_name" => stripslashes($user_name),
"recipient_name" => stripslashes($image_row['user_name']),
"image_name" => $image_row['image_name'],
"comment_date" => format_date($config['date_format']." ".$config['time_format'], $current_time),
"site_name" => $config['site_name'],
"image_url" => $image_url,
"comment_text" =>(stripslashes($comment_text)),
"comment_headline"=>(stripslashes($comment_headline)),
));
$site_email->set_body("comment_email", $config['language_dir']);
$site_email->send_email();
}
}
}
unset($row);
unset($spam_row);
}
//-----------------------------------------------------
//--- Show Comments -----------------------------------
//-----------------------------------------------------
Dear {recipient_name},
{user_name} posted a comment on {image_name} at {site_name}.
To view the comment go to: {image_url}
------
Best regards, {site_name}
Upload comment_email.html to /lang/language/email/.$lang['post_comment'] = "post comment";
$lang['send_comment_emailsubject'] = "COMMENT_NOTIFICATION_SUBJECT_HERE";
Replace COMMENT_NOTIFICATION_SUBJECT_HERE to whatever you want to appear in mail subject. <tr>
<td class="row2"><b>{lang_allow_emails}</b></td>
<td class="row2">
<input type="radio" name="user_allowemails" value="1"{user_allowemails_yes} />
{lang_yes}
<input type="radio" name="user_allowemails" value="0"{user_allowemails_no} />
{lang_no}</td>
</tr>
This switch will allow users to enable or disable comments notification.Update :I guess I should do the same with 'comment_text'.
I found it. You're probably talking about this line :Quote
"comment_headline"=>$comment_headline,
change it to :Code: [Select]
"comment_headline"=>(stripslashes($comment_headline)),
@fgallery:Does it make any difference?
Looks good. However, these two lines :Quote
$image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id."";
$sql = "SELECT user_allowemails FROM ".USERS_TABLE." WHERE user_name = '$recipient_name'";
could also simply be stated like this :Quote
$image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id;
$sql = "SELECT user_allowemails FROM ".USERS_TABLE." WHERE ".get_user_table_field("", "user_name")." = ".$recipient_name;
//-----------------------------------------------------
// Start Emailer for comments
//-----------------------------------------------------
$recipient_name = $image_row['user_name'];
$recipient_email = $image_row['user_email'];
$image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id;
$sql = "SELECT user_allowemails FROM ".USERS_TABLE." WHERE ".get_user_table_field("", "user_name")." = ".$recipient_name;
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$user_allowemails = ($row['user_allowemails']);
if ($image_row['user_id'] != $user_info['user_id'] && $user_allowemails == 1) {
include(ROOT_PATH.'includes/email.php');
$site_email = new Email();
$site_email->set_to($recipient_email);
$site_email->set_from($config['site_email'], $config['site_name']);
$site_email->set_subject($lang['send_comment_emailsubject']);
$site_email->register_vars(array(
"user_name" => stripslashes($user_name),
"recipient_name" => stripslashes($image_row['user_name']),
"image_name" => $image_row['image_name'],
"comment_date" => format_date($config['date_format']." ".$config['time_format'], $current_time),
"site_name" => $config['site_name'],
"image_url" => $image_url,
"comment_text" =>(stripslashes($comment_text)),
"comment_headline"=>(stripslashes($comment_headline)),
));
$site_email->set_body("comment_email", $config['language_dir']);
$site_email->send_email();
}
}
}
unset($row);
unset($spam_row);
}
$lang['send_comment_emailsubject'] = "COMMENT_NOTIFICATION_SUBJECT_HERE";
to /lang/language/main.phpI'd suggest you using this code instead:Wow V@no! It works!
http://www.4homepages.de/forum/index.php?topic=2705.msg14792#msg14792
then replaceCode: [Select]if ($user_allowemails == 1) {
with:Code: [Select]if ($image_row['user_id'] != $user_info['user_id'] && $user_allowemails == 1) {
òå ÷òî âûãëÿäÿò êàê îðèãèíàëû 4images (êâàäðàòíûå), áûëè âçÿòû îòñþäà:Òû íå íàõîäèøü, ÷òî êíîïêè mawenzi íåìíîãî îòëè÷àþòñÿ îò îðèãèíàëüíûõ?
http://www.4homepages.de/forum/index.php?topic=1094.0
À äðóãèå (ñ êðóãëûìè óãëàìè) áûëè âçÿòû ñ phpBB ôîðóìà.
Nevermind V@no I've found the problem.Why admins do not receive comments for their images?Only admins? have you tested it with regular member(s) or more then one admin account with VALID email address?
Так блин, на вопросы по топику никто не отвечаетКакие вопросы-то?
Ошибка в темплете, не хватает </form> после <form method="post" action="./search.php">
P.S. Народ, прекратите задавать вопросы под этим топиком не касающие русского перевода галери и кнопок!