coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Fed on May 24, 2005, 11:16:18 AM

Title: inserting a line of text in a specific place
Post by: Fed on May 24, 2005, 11:16:18 AM
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
Title: Re: inserting a line of text in a specific place
Post by: Abbas Ali on May 24, 2005, 01:10:32 PM
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)',
Title: Re: inserting a line of text in a specific place
Post by: Fed on May 24, 2005, 01:37:46 PM
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
Title: Re: inserting a line of text in a specific place
Post by: Abbas Ali on May 24, 2005, 01:49:23 PM
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>

Title: Re: inserting a line of text in a specific place
Post by: Fed on May 24, 2005, 02:11:23 PM
perfect

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

thanks a lot ;)