Author Topic: Verständnisfrage zur {MSG} Variablen in den Templates  (Read 4810 times)

0 Members and 1 Guest are viewing this topic.

Offline helluvaguy

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Verständnisfrage zur {MSG} Variablen in den Templates
« 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:
  • Liege ich mit meiner Vermutung richtig?
  • Wenn ja, wo definiere ich diesen Text? Habe ich da irgendwo diese Option übersehen?
  • Wenn nein, wofür ist es dann?
  • Wenn nein, ließe es sich für meine Wünsche ändern? Um z. B. überall ersichtlich zumachen, dass nur registrierte User zum voten, dl und ul berechtigt sind.[/list:u]

    Ich hoffe ihr könnt mir hier etwas Klarheit verschaffen.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Verständnisfrage zur {MSG} Variablen in den Templates
« Reply #1 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline helluvaguy

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Verständnisfrage zur {MSG} Variablen in den Templates
« Reply #2 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:
  • Was I right in my assumtion?
  • If so, where do I specify this "message"? did I miss an option in the control panel?
  • If not, what is it's purpose?
  • If not, could I use it for that kind off assumed purpose (message display)? (So judging from your statement, i just have to define $msg for the mentioned home.html in the index.php.)[/list:u] Hope it did make more sense to you this time. :D

Offline threelum

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • http://www.threelum.com/imagenation/
Verständnisfrage zur {MSG} Variablen in den Templates
« Reply #3 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