4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: helluvaguy on February 13, 2003, 04:16:14 AM

Title: Verständnisfrage zur {MSG} Variablen in den Templates
Post by: helluvaguy on February 13, 2003, 04:16:14 AM
Mir ist aufgefallen, dass in allen Templets eine Varaible auftaucht, die auf mich den Eindruck macht, als wenn sie eine allgemeine Mitteilung auf all diesen Seiten der Galerie anzeigen könnte.
Ich meine die {msg} die von {if msg} und {endif msg} eingeschloßen wird.
Hier mal ein Beispielauzug aus der home.html
Code: [Select]

                      </td>
                    </tr>
                  </table>
                  <br />
                  {endif categories}{lang_site_stats}<br />
                  <br />
                  {if msg}<b>{msg}</b><br />
                  <br />
                  {endif msg}
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
Von der Positionierung her, zwischen den Kategorien und den Thumbs, habe ich halt die Vermutung angestellt.

Meine Fragen sind nun folgende:
Title: Verständnisfrage zur {MSG} Variablen in den Templates
Post by: V@no on February 13, 2003, 04:25:56 AM
I'm sorry, as much as I understud translation from altalavista,
all {...} tags are generated in .php files. for example:
Code: [Select]
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream

so, u can add as many new tags u want, all u need is register them in .php files.
Title: Verständnisfrage zur {MSG} Variablen in den Templates
Post by: helluvaguy on February 13, 2003, 06:50:24 AM
I'm sorry v@no, I should have done it bilingual in the first place.

My question concerning the {msg} tag was, does it have a specific use?
I did a guess that it could be used to display a general message (like who has  rights to dl, ul, vote and so on).  So the other questions were:
Title: Verständnisfrage zur {MSG} Variablen in den Templates
Post by: threelum on February 16, 2003, 12:21:48 PM
das {msg} tag zeigt usern auf den verschiedenen seiten hinweise auf aktionen an.

z.B wenn du in den categories ein bild zur lightbox hinzufügst oder entfernst wird an der plazierung des {msg} tags "added to the lightbox" oder "deleted from the lightbox" angezeigt.

oder wenn du in einem formfeld einen eintrag vergißt z.b. bei der registrierung die emailadresse.

den message text kannst du in der jeweiligen /lang/english(german)/main.php ändern. Alle tags mit "???_msg"

geez threelum