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: Additional Text  (Read 4681 times)

0 Members and 1 Guest are viewing this topic.

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Additional Text
« on: December 24, 2007, 11:20:30 pm »

Is it possible to add a line of text under every image that is uploaded and if so how?

What I'm looking to do is to add the same one line of text under each image (after the image and before the comment fields) to remind members to nominate an image for our Photo of the week award. Plain text would do though ideally it could be made as a hyperlink to the e-cards which we use as the nomination tool.

I've attached a mock up what I'm after to explain it more clearly.
« Last Edit: January 12, 2008, 10:42:17 am by Joachim Müller »
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Additional Text
« Reply #1 on: December 25, 2007, 11:58:21 am »

copy/paste the function below in your theme.php file and add your text (it's html)
Code: [Select]
// 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 -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
}  //{THEMES}[/code
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Additional Text
« Reply #2 on: January 12, 2008, 09:40:25 am »

Cheers Frantz. Got my text in, now shows as "**Good enough for Photo of the Week? Then don't forget to nominate it**". Is there any way to make this a hyperlink which will open up the report file. We use that to nominate an image and I've got a feeling that making the text into a link will work better than just a reminder.
Logged

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Additional Text
« Reply #3 on: January 12, 2008, 09:41:52 am »

BTW I've also got the text centred and in bold too (not sure if that would make any difference to how it would be coded to link)
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.