1
Mods & Plugins (Requests & Discussions) / Re: Splash page
« on: June 04, 2010, 05:42:22 PM »
Anyone knows where to put the javascript code to display this? Please advise.
Thank you
Thank you
4images code on GitHub Click here to visit GitHub.
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.
$sql = "SELECT SUM(image_hits) AS sum
FROM ".IMAGES_TABLE;
$row = $site_db->query_firstrow($sql);
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
$total_hits = "".$lang['total_hits']."<B> ".number_format($row['sum'])."</B>\n";
$site_template->register_vars("total_hits", $total_hits);
unset($total_hits);
into this version: $sql = "SELECT COUNT(*) as all_total_users
FROM ".USERS_TABLE."
WHERE user_id <> ".GUEST;
$row = $site_db->query_firstrow($sql);
$all_total_users = $row['all_total_users'];
$lang_all_total_users = $lang['all_total_users'];
$site_template->register_vars("all_total_users", number_format($all_total_users));
$site_template->register_vars("lang_all_total_users", $lang_all_total_users);
unset($all_total_users);
unset($lang_all_total_users);
. $sql = "SELECT SUM(image_hits) AS sum
FROM ".IMAGES_TABLE;
$row = $site_db->query_firstrow($sql);
$sum = (isset($row['sum'])) ? $row['sum'] : 0;
$total_hits = "".$lang['total_hits']."<B> ".number_format($row['sum'])."</B>\n";
$site_template->register_vars("total_hits", $total_hits);
unset($total_hits);
into a more friendly one like: $sql = "SELECT COUNT(*) as all_total_users
FROM ".USERS_TABLE."
WHERE user_id <> ".GUEST;
$row = $site_db->query_firstrow($sql);
$all_total_users = $row['all_total_users'];
$lang_all_total_users = $lang['all_total_users'];
$site_template->register_vars("all_total_users", number_format($all_total_users));
$site_template->register_vars("lang_all_total_users", $lang_all_total_users);
unset($all_total_users);
unset($lang_all_total_users);
$sql = "SELECT COUNT(*) as all_total_users
FROM ".USERS_TABLE."
WHERE user_id <> ".GUEST;
$row = $site_db->query_firstrow($sql);
$all_total_users = $row['all_total_users'];
$lang_all_total_users = $lang['all_total_users'];
$site_template->register_vars("all_total_users", $all_total_users);
$site_template->register_vars("lang_all_total_users", $lang_all_total_users);
unset($all_total_users);
unset($lang_all_total_users);
I want the , in this code again. I tried to modify it but I always get a Parse error. Please help."search_keywords" => htmlspecialchars(stripslashes($org_search_keywords)),
does not exist in search.php, instead THIS exists in search.php: "search_keywords" => format_text(stripslashes($org_search_keywords), 2),
is it the same? Should I add it after that?In v1.7.6 search for:Does this mod work with the latest version of 4images? I tried to install it but I can't find the code in step 1.2. I know you posted a fix for version 1.7.6. Does this also apply for 1.7.7? Please advise.
if ($split_words[$i] == "and" || $split_words[$i] == "und" || $split_words[$i] == "or" || $split_words[$i] == "oder" || $split_words[$i] == "not") {
$search_word_cache[$i] = ($search_terms) ? "and" : $split_words[$i];
}
else {
Hello JossRembrandt, I do not understand what to do with this line. I searched for comment_text in index.php but can't find this line. I apologize if I sound like a noob. I have *some* experience but I really can't understand what to do with this code. Please advise.
I have found a better solution:
index.php
Search:Code: [Select]"comment_text" => format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1, 0),
$config['bb_comments'] should be "1" in settings [ACP -> Settings -> Allow BB-Code in comments = YES]