Adding banners above and below each picture Adding banners above and below each picture
 

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

Adding banners above and below each picture

Started by DRN, August 25, 2006, 08:18:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DRN

Hi,

I would like to add a banner both above and below each picture when viewed (on the php page where users can rate or comment the picture... for example hxxp://mydomain.com/displayimage.php?album=6&pos=21)

Here's an image to clarify what I wish to do:
Click Here
I marked the places in which I would like to place the banners with big red BANNER title.

I managed to add a banner below the menu, after editing the theme file, but I couldn't find what exactly need to be edited in order to place banners above and below each picture.

If anyone could tell me which files need to be edited, it would be great. And if possible to refer me to the exact lines, it would be even better.

Thanks a lot :)

Gizmo

The code for $template_display_media is what you can edit to add your banners. If this code isn't in your theme.php, copy it from the sample>theme.php and paste it in. You'll want to place your banners before and after the {IMAGE} variable.


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

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

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





<!-- BEGIN img_desc -->
                        <table cellpadding="0px" cellspacing="0px" 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 -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

ackee

I want to add banners to the sides of each picture.  Can I change the look using the same method as posted for top and bottom banners in August?

Joachim Müller