Author Topic: Additional field on the jpg MEDIA template  (Read 2567 times)

0 Members and 1 Guest are viewing this topic.

computer123

  • Guest
Additional field on the jpg MEDIA template
« on: October 11, 2007, 01:01:28 AM »
Hello,

I've tried to add an additional field {image_country} under the image on the jpg template, but the gallery shows randomly the country.
For instance i get the country of an other image instead the right image.
How can I make that the gallery shows the right country of the image {image_country}?
It happend the same when I put {image_country} on the home.html. ({image_country} is working fine only on detail.html.
Any help please? :roll:
SZ
« Last Edit: October 11, 2007, 09:35:25 AM by computer123 »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Addition field on the jpg template
« Reply #1 on: October 11, 2007, 01:13:14 AM »
For random image with {image_country}, is possible you have SELECT DISTINCT in index.php file ? If so, what is MOD install ?
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 ?

computer123

  • Guest
Re: Additional field on the MEDIA jpg template
« Reply #2 on: October 11, 2007, 09:34:24 AM »
Hello thunderstrike,

I am not using any mod for this one. I just want to show {image_country} (The additional field) on the jpg media template (jpg.html).
I mean that I want to put the tag {image_country} on the jpg.htm.

{image_name} (is not an additional fields) is working good on the jpg.html, but the additional field like {image_country}, {image_sort) he is not showing the GOOD one!!
For example:

I have picture of Spain. He shows the word USA onder this picture, en that means that the gallery can read the additional field tags on the media templates, but he does not choose the right one.

All what I want is that gallery shows the right additional field tags.

Do not hesitate to ask me if you want more explanation.

Help me please!  :(

Thank you
« Last Edit: October 11, 2007, 03:50:35 PM by computer123 »