Author Topic: cat_id not working in details.html  (Read 2500 times)

0 Members and 1 Guest are viewing this topic.

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
cat_id not working in details.html
« on: October 25, 2007, 03:51:38 PM »
Hi,

ich möchte die variable {cat_id} in meiner Details.html einbauen. Jedoch funktioniert die variable nicht korrekt.  Es wird zwar eine ID angezeigt, aber komischerweise immer diese ID der Kategorie, die im Admin an letzter Stelle steht. Jedoch nicht die korrekte ID des bildes das angezeigt wird.
Warum funktioniert das nicht? Das Bild wieder ja auch korrekt angezeigt mit{image}.
Muß ich da noch etwas includen? kann mir bitte jemand helfen.

--
I want to visible the variable {cat_id} in my details.html. but this varibable doesn´t show the right id. It only shows the iD of my last category in my admin.
 The image is also displayed correctly with (image).
Do I still includen something? Can someone please help me.


Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: cat_id not working in details.html
« Reply #1 on: October 26, 2007, 12:13:37 PM »
Quote
but this varibable doesn´t show the right id

I confirm this. I find the problem ... array_rand is no limit in get_categories ... this is bug.

@Admins:

For next version - please create new seperate function (or switch) in includes/functions.php file for load categories with $category_id.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?