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: inserting a line of text in a specific place  (Read 3082 times)

0 Members and 1 Guest are viewing this topic.

Fed

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 50
    • Imagetemple.com
inserting a line of text in a specific place
« 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
« Last Edit: May 24, 2005, 02:18:54 pm by Abbas Ali »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: inserting a line of text in a specific place
« Reply #1 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
Code: [Select]
'pic_pos' => 'FILE %s/%s',

and replace with

Code: [Select]
'pic_pos' => 'FILE %s/%s (Click on image to see full size)',
Logged
Chief Geek at Ranium Systems

Fed

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 50
    • Imagetemple.com
Re: inserting a line of text in a specific place
« Reply #2 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
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: inserting a line of text in a specific place
« Reply #3 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

Code: [Select]
$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

Code: [Select]
$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>

Logged
Chief Geek at Ranium Systems

Fed

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 50
    • Imagetemple.com
Re: inserting a line of text in a specific place
« Reply #4 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 ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 20 queries.