16
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.
if (!function_exists('get_total_registered_users')) {
function get_total_registered_users() {
global $site_db;
$sql = "
SELECT COUNT(user_id) AS total_users
FROM " . USERS_TABLE . "
WHERE " . get_user_table_field("", "user_level") . " >= '" . USER . "'
";
$row = $site_db->query_firstrow($sql);
$total_users = (isset($row['total_users'])) ? $row['total_users'] : 0;
if (sizeof($total_users) > 0) {
return $total_users;
}
}
}
"last_24_hour_connect" => preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content'])
"total_registered_users_gallery" => (function_exists('get_total_registered_users')) ? preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_total_registered_users(), $lang['total_registered_users_gallery']) : "";
$lang['total_registered_users_gallery'] = "Nombre de membres inscrits: <b>{value}</b>";
The multiple deletions would need a whole new process and at least one additional page and who knows what alse.
"Sorry, you've already rated for this image once recently."
I was counting each step I took and didn't pay attention to what you wrote.
It also helps control spammers. Most spammers will register just to get contact info. This way they can not get info
if ($user_row = get_user_info($user_id)) {
if (function_exists('get_upload_user_info') && !get_upload_user_info($user_info['user_id']) && $user_info['user_id'] != $user_id) {
show_error_page(preg_replace("/" . $site_template->start . "user_name" . $site_template->end . "/siU", format_text(trim($user_info['user_name']), 2), $lang['member_profile_no_uploads_find']));
}
In step 3 I put wrapped the {if loggedin_user_image_uploaded} ... {endif loggedin_user_image_uploaded} around the email in the member_profile.html
I didn't want to put it in the upload form.
if ($user_row = get_user_info($user_id)) {
if (function_exists('get_upload_user_info') && !get_upload_user_info($user_info['user_id']) && $user_info['user_id'] != $user_id) {
show_error_page(preg_replace("/" . $site_template->start . "user_name" . $site_template->end . "/siU", format_text(trim($user_info['user_name']), 2), $lang['member_profile_no_uploads_find']));
}
$lang['member_profile_no_uploads_find'] = "Sorry <b>{user_name}</b>. No upload is find from you in gallery. Upload first for see profile.";
you mean to add before the closing "?>" (this is where I added it).
In step 2 when I searched for "user_loggedin" I found it in 3 places in page_header.php file - should I put the code before all three or just the first one?
if (!function_exists('get_upload_user_info')) {
function get_upload_user_info($user_id) {
global $site_db;
$user_id = preg_replace("/[^0-9]+/i", "", $user_id);
$sql = "
SELECT COUNT(i.image_id) AS total_uploads
FROM (" . IMAGES_TABLE . " i, " . CATEGORIES_TABLE . " c)
LEFT JOIN " . USERS_TABLE . " u ON (" . get_user_table_field("u.", "user_id") . " = i.user_id)
WHERE i.image_active = 1 AND i.cat_id = c.cat_id AND " . get_user_table_field("u.", "user_id") . " = " . $user_id;
$row = $site_db->query_firstrow($sql);
$total_uploads = (isset($row['total_uploads'])) ? $row['total_uploads'] : 0;
if (sizeof($total_uploads) > 0) {
return $user_id;
}
}
}
"user_loggedin" => ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) ? 0 : 1,
"loggedin_user_image_uploaded" => (function_exists('get_upload_user_info') && get_upload_user_info($user_info['user_id'])) ? true : false,
{if loggedin_user_image_uploaded} ... {endif loggedin_user_image_uploaded}