{What_Are_These_Called}? {What_Are_These_Called}?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

{What_Are_These_Called}?

Started by johndankey, October 25, 2006, 08:40:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

johndankey

Please excuse a sort of off-topic question.  :-[ I'm having a really weird PHP problem & I'm trying to figure out just what the script is doing.  So could someone tell me what these are called, for instance: {IMAGE}, {ADMIN_MENU}, {USER1}?

With that knowledge I can check the PHP documentation or go to a PHP board.

I found a reference to "placeholder" somewhere in the boards, but that doesn't seem to be the official name for these things.

Thank you,

JD
Thank god for Coppermine!

Joachim Müller

Those are no PHP elements, but placeholder tokens that only have a special meaning in Coppermine's template engine. You won't find anything about those tokens in the PHP documentation nor will you be able to re-use them on other (non-coppermine) pages. They have been deliberately created using the curly brackets, the coppermine devs could as well have chosen any other unique string (e.g. instead of using {GALLERY}, we could have created the template engine to use a token named |FOOBAR| or ##WHATEVER##).

Please understand that this board deals with Coppermine-related questions, there are better places to learn PHP.

johndankey

Thanks, GauGau.  I guess that's why I don't remember reading about them in the PHP documentation.
Thank god for Coppermine!