1
Mods & Plugins (Requests & Discussions) / Re: Making my own {} tags... how??
« on: January 26, 2006, 10:46:24 PM »
thank you for the links ... while searching I didn't come across these posts
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.
i applied these codes and made the functions.php code look lik soCode: [Select]$cat_id_sql = (($cat_id_sql) ? "," : "")."9,10,11,12,13,14";
i use the random images on my index page as described here= http://www.4homepages.de/forum/index.php?topic=4259.0
When i refresh my home page a few times, the font images still appear. Should this new functions code also work for the random images block or is there something more i have to edit?
PS The code for top.php works fine and the code for the random cat image probably works which why I think there is something more I have to edit so no random font images appear on my home page.
So, what you are trying to say, that you still see images from categories with ID 10, 11, 12, 13 and 14 ?
Can I see it in action?
function get_random_image_cache() {
global $site_db, $cat_cache, $total_images;
$random_image_cache = array();
$cat_id_sql = get_auth_cat_sql("auth_viewcat", "NOTIN");
$cat_id_sql .= (($cat_id_sql) ? "," : "")."10, 11, 12, 13, 14";
the code for the random cat image probably works which why I think there is something more I have to edit so no random font images appear on my home page.Then my guess would be you either added that line above not below or added in a wrong place...make sure its inside get_random_image_cache() function.
function get_random_image_cache() {
global $site_db, $cat_cache, $total_images;
$random_image_cache = array();
$cat_id_sql = get_auth_cat_sql("auth_viewcat", "NOTIN");
$cat_id_sql = (($cat_id_sql) ? "," : "")."9,10,11,12,13,14";
if (SHOW_RANDOM_CAT_IMAGE) {
$sql = "SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.ima
$cat_id_sql = (($cat_id_sql) ? "," : "")."9,10,11,12,13,14";
This might also be something you're looking for :
http://www.4homepages.de/forum/index.php?topic=8682.msg40823#msg40823