Author Topic: {width_height} in der "Standardanzeige" anzeigen .  (Read 4864 times)

0 Members and 1 Guest are viewing this topic.

Offline hottemax

  • Newbie
  • *
  • Posts: 10
    • View Profile
{width_height} in der "Standardanzeige" anzeigen .
« on: July 14, 2002, 04:25:26 PM »
Hallo, mein erster Beitrag:

Daten meiner tumbnail_bit.html:
{thumbnail}<br />
<b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new} ({user_name_link})
<br />
<a href="{cat_url}">{cat_name} </a><br/>
{if allow_comments}{lang_comments} {image_comments}<br/>{endif allow_comments}
Dateigr&ouml;&szlig;e: {image_file_size}<br>
Abmessung: {width_height}<br>
{lightbox_button}

Es erscheint  : ... Dateigröße: 15.7 KB
Abmessung: width="202" height="257" ....

wie kann ich den string ...width= in der der functions.php zerlegen (ich weiss mit image_info[0] ) und an globale variablen übergeben, die auch in der ..._bit.html gültig sind?

status: absolute beginner in php
danek an alle die was zu sagen haben... 8)

ciao....hottemax

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
{width_height} in der "Standardanzeige" anzeigen .
« Reply #1 on: July 14, 2002, 05:15:36 PM »
Suche in "includes/functions.php" nach der Zeile

Code: [Select]
"width_height" => $width_height,
Im Array setzt Du direkt darunter einfach zwei neue Zeilen

Code: [Select]
"width" => $image_info[0],
"height" => $image_info[1],


Dann kannst Du im Template {width} und {height} verwenden.

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline hottemax

  • Newbie
  • *
  • Posts: 10
    • View Profile
wie sagt man : DANKE
« Reply #2 on: July 14, 2002, 06:10:56 PM »
hi jan,

super !!!! hat natürlich funtioniert....

Schöne Woche.....

hottemax