Additional Text Additional Text
 

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

Main Menu

Additional Text

Started by davieb, December 24, 2007, 11:20:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

davieb

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.

François Keller

copy/paste the function below in your theme.php file and add your text (it's html)
// 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
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

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.

davieb

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)