inserting a line of text in a specific place inserting a line of text in a specific place
 

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

inserting a line of text in a specific place

Started by Fed, May 24, 2005, 11:16:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fed

Hi guys
I think lot of visitors on my site don't open fullsize images as the suppose that the medium size is the biggest available

I'd like to add a line of text like Click on the image to view it fullsize just over the image, under FILE1/1  in this page

http://imagetemple.com/gallery/displayimage.php?album=25&pos=0
obviously not only in this one but in the template so all the pages like this will have it
what should I do?

which lines do I have to modify and in which file?

thanks

Abbas Ali

You can do this in more than one way. Best and simplest would be to edit language file you use.

Edit lang/english.php (You must do this for all the languages you use)

Find

'pic_pos' => 'FILE %s/%s',


and replace with


'pic_pos' => 'FILE %s/%s (Click on image to see full size)',
Chief Geek at Ranium Systems

Fed

ok that works
but I wanted it below, just over the image and below FILE 1/1 :D

and maybe...is there a way to make it in all the languages? even if it appears always in english I'd like to have it in all the languages

Abbas Ali

For the text to appear below FILE 1/1 you will have to edit each theme file

Edit themes/classic/theme.php (You should edit all themes)

Find


$template_display_picture = <<<EOT
        <tr>
                <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}
                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>


and replace it with


$template_display_picture = <<<EOT
        <tr>
                <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
                  Click on image for full size
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}
                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>

Chief Geek at Ranium Systems

Fed

perfect

and I only allow 1 skin so the problem doesn't exist at all

thanks a lot ;)