How do I add the category name below the intermediary image caption /description How do I add the category name below the intermediary image caption /description
 

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

How do I add the category name below the intermediary image caption /description

Started by photo-mariages, February 16, 2008, 09:42:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

photo-mariages

Hello,

I would like to add the category name below the caption of the image.

I've modified theme.php in my template directory (Project_vii) but can't get it to work dynamically - ie instead of a fix text have the category name.

http://photo06.fr/displayimage-4-2.html

I tried to use {TITLE} but get the caption. I then tried {CAT_TITLE} and I then simply see {CAT_TITLE) displayed - not the actualy category.

In the URL I attached above, I would like the "Nice" to appear.

In advance - thank you!

photo-mariages

Hi,

I'm still looking to solve this. I've tried several ways and I can not find how to retrieve the CATEGORY field and integrate it below my intermediary image.

This is the code I have in theme.php:

// HTML template for intermediate image display
if (!isset($template_display_media)) { //{THEMES}
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}

                                        </b></center></td>
                                </tr>
<!-- END title -->

<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
</center></td>
                                </tr>
<!-- END caption -->
<!-- BEGIN free text -->
                                <tr>
                                <td class="tableb"><center>
                                </p>FREE TEXT GOES HERE</a>.
</center></td>
                                </tr>
<!-- END free text -->

                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
}  //{THEMES}[/code

?>


What I would like is that in the part where I have "FREE TEXT GOES HERE" (in the Begin free text section) that the category appears (in the example link I provide below - I would like "Nice" to appear...

In advance - thank you!