Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Formatting displayimage.php page  (Read 2697 times)

0 Members and 1 Guest are viewing this topic.

scarr105

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Formatting displayimage.php page
« on: February 01, 2008, 11:52:44 pm »

I would like to add some custom text at the top of the normal image that is displayed on the displayimage.php page.  Can someone tell me what file I would need to edit to add this text above the image displayed.

I'm not great with php but I'm sure I can add this text if someone can help me locate the file I need to edit.
Logged
----------------------------------------------------
Shane

inshanelife.com
rhinoenvironmentalsolutions.com

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Formatting displayimage.php page
« Reply #1 on: February 02, 2008, 09:01:14 am »

Ed themes/yourtheme/theme.php, find
Code: [Select]
$template_display_mediaand modify the section as you see fit. If you don't have that section in your custom theme, copy
Code: [Select]
// 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
Code: [Select]
?>of the file themes/yourtheme/theme.php and then edit as suggested above.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 16 queries.