How to put banner into displayimage.php How to put banner into displayimage.php
 

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 to put banner into displayimage.php

Started by e3000, April 04, 2007, 04:31:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

e3000

Hi people,

How to put banner on top images who displayed on displayimage.php link.

[edit GauGau] Replaced hotlinked image with attachment. [/edit]

I searching for file but I only find displayimage.php file, there is no template for this page.

Sorry on my english.

e3000


Joachim Müller

1) This is not a hotline - http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#lamesupport  >:(
2) If you want answers, why do you post on the board "General discussion (no support!)". Do the words "no support" mean anything to you? Moving accordingly.
3) Did you bother to read the documentation or search the board before posting your question? Obviously not. Answer to your question is pretty easy: edit themes/yourtheme/template.html as you see fit for a static banner on all pages, edit themes/yourtheme/theme.php for dynamic content. For details, post details (link to your gallery, actual place where you want the banner to appear).

e3000

Link: http://www.autoportal.co.ba/galerija/displayimage.php?album=11&pos=2

Banner should appears between picture and her navidation, right place of banner you can see on image in my first post.

Tnx.

Joachim Müller

Edit themes/yourtheme/theme.php, find// HTML template for intermediate image display
$template_display_media = <<<EOT
and edit as suggested below. If the section I refered to doesn't exist in your custom theme, copy// HTML template for intermediate image display
$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 -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
from themes/sample/theme.php into a new line before?>in the file themes/yourtheme/theme.php

Then find$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
and add your custom banner into a new line after it - something like <img src="path/to/your/image.jpg" width="200" height="100" border="0" alt="" title="the title of your image" /> if it is suppossed to be a static image only. If it is suppossed to be a dynamic banner rotation script, add something like this:EOT;
// Your dynamic banner code goes below
$template_display_media .= 'your dynamic banner output here';
$template_display_media .= <<<EOT


Joachim

P.S. I edited your spelling / typos in your initial posting. I did so for the benefit of others who might search the board for similar issues - they wouldn't find this posting with typos in the relevant keywords. Please don't get me wrong - I'm not doing this to make you feel bad - it's OK if your English is not that good.

e3000