Advanced search  

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]

Pages: [1]   Go Down

Author Topic: {What_Are_These_Called}?  (Read 2730 times)

0 Members and 1 Guest are viewing this topic.

johndankey

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
{What_Are_These_Called}?
« on: October 25, 2006, 08:40:40 pm »

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
« Last Edit: October 25, 2006, 09:00:47 pm by GauGau »
Logged
Thank god for Coppermine!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: {What_Are_These_Called}?
« Reply #1 on: October 25, 2006, 09:00:30 pm »

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.
Logged

johndankey

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: {What_Are_These_Called}?
« Reply #2 on: October 25, 2006, 09:54:20 pm »

Thanks, GauGau.  I guess that's why I don't remember reading about them in the PHP documentation.
Logged
Thank god for Coppermine!
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.