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: Category description" {CAT_DESC} in intermediate image display  (Read 2909 times)

0 Members and 1 Guest are viewing this topic.

ivonovak

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Category description" {CAT_DESC} in intermediate image display
« on: November 20, 2007, 11:16:44 am »

How can display the "Category description" {CAT_DESC} in intermediate image display?

include/themes.inc.php
// HTML template for intermediate image display
if (!isset($template_display_media)) { //{THEMES}
$template_display_media = <<<EOT
{IMAGE}
{ADMIN_MENU}
{TITLE}
{CAPTION}
// ---> here i wish insert {CAT_DESC}

I am not PHP experienced... :-(

Thank you for any idea.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Category description" {CAT_DESC} in intermediate image display
« Reply #1 on: November 20, 2007, 04:36:17 pm »

include/themes.inc.php
Don't edit that file at all, under no circumstances. Edit themes/yourtheme/theme.php instead. Did you read the docs?
Logged

ivonovak

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Category description" {CAT_DESC} in intermediate image display
« Reply #2 on: November 20, 2007, 09:49:03 pm »

Sorry, in theme.php & template.html token {CAT_DESC} not working.  >:(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Category description" {CAT_DESC} in intermediate image display
« Reply #3 on: November 21, 2007, 07:14:00 am »

You can not use the placeholder tokens in any place you see fit - this is much more complicated. As suggested, {CAT_DESC} is just a placeholder that needs to be defined inside the function that you're using it in.
Logged
Pages: [1]   Go Up
 

Page created in 0.042 seconds with 20 queries.