46
Mods & Plugins (Releases & Support) / Re: [MOD] Google Sitemap for your gallery
« on: August 21, 2009, 04:22:11 PM »
Bei mir enthalten die Links keine Umlaute, wieso die Änderung?
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.
$image_id = $site_db->get_insert_id();
if ($result && (!$cat_cache[$cat_id]['cat_image'] || $cat_cache[$cat_id]['cat_image'] == 7))
{
$sql = "UPDATE ".CATEGORIES_TABLE."
SET cat_image = ".$image_id."
WHERE cat_id = ".$cat_id;
$site_db->query($sql);
}
Hmmm try change the first line to this:
if ($result && (!$cat_cache[$cat_id]['cat_image'] || $cat_cache[$cat_id]['cat_image'] == 7))
what is 7? if cat_image is 7, then it means there is already an image assigned to that category. Otherwise it would be empty or 0.Yeah, that's what I've already told... normally the standard is "0", but in my case I've changed it to "7" for standard (via mysql and for this field).
Maybe you have an error inserting the code .... Without any codes is it impossible to find out, why this doesn't work for you .....No, it had to do with the "safe mode... now it's off and everything works fine.
Gruß
It's checking cat_image attributeToday I had the time, but it doesn't work (the way you told me).