Author Topic: Auflösung anzeigen / Show resolution  (Read 4513 times)

0 Members and 1 Guest are viewing this topic.

Offline barkuras

  • Newbie
  • *
  • Posts: 10
    • View Profile
Auflösung anzeigen / Show resolution
« on: January 03, 2009, 04:55:10 PM »
 :flag-de:
Hallo!

Ich habe hoffentlich eine einfache Frage. Ich würde gerne die Auflösung des Bildes da anzeigen lassen wo auch zB die Dateigröße, Hits, Downloads usw steht. Ich bin soweit, dass das wohl mit "{width} x {height}" geht, aber ich weiß nicht wo und wie ich das einbauen soll.

 :flag-en:
Hello!

I'd like to display the width and height of a picture. Where do I have to put in the "{width} x {height}" tags to do that?

Rembrandt

  • Guest
Re: Auflösung anzeigen / Show resolution
« Reply #1 on: January 03, 2009, 05:14:47 PM »
Hi!

in der detail.html:

unter dem datum z.b.:
Code: [Select]
<tr>
                            <td valign="top" class="row1"><b>{lang_date}</b></td>
                            <td valign="top" class="row1">{image_date}</td>
                          </tr>
Code: [Select]
<tr>
                            <td valign="top" class="row1"><b>Bildgröße</b></td>
                            <td valign="top" class="row1">{width} x {height}"</ td>
                          </tr>

class="row" mußt du dir noch anpassen 1od.2

mfg Andi
« Last Edit: May 10, 2009, 07:08:56 PM by Rembrandt »

Offline barkuras

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Auflösung anzeigen / Show resolution
« Reply #2 on: January 03, 2009, 05:26:05 PM »
Vielen Dank für deine Hilfe!  :)
Werde ich sofort ausprobieren.

EDIT
Das hat prima geklappt, vielen Dank! Allerdings hast du eine Klammer vergessen. Falls das noch jemand suchen sollte, hier der Code wie ich ihn für mich angepasst habe:

Code: [Select]

                           <tr>
                            <td valign="top" class="row2">Abmessungen:</td>
                            <td valign="top" class="row2">{width} x {height} </td>
                          </tr>

« Last Edit: January 03, 2009, 05:37:20 PM by barkuras »