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: Adding banners above and below each picture  (Read 3083 times)

0 Members and 1 Guest are viewing this topic.

DRN

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Adding banners above and below each picture
« on: August 25, 2006, 08:18:31 am »

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 :)
« Last Edit: December 18, 2006, 06:09:43 am by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Adding banners above and below each picture
« Reply #1 on: August 25, 2006, 02:47:18 pm »

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.

Code: [Select]
// 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;
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Adding banners on both sides of each picture
« Reply #2 on: December 16, 2006, 10:24:23 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding banners above and below each picture
« Reply #3 on: December 18, 2006, 06:09:18 am »

Yes.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 15 queries.