coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: louie55 on April 06, 2006, 11:33:08 PM

Title: How to add text above the picture??
Post by: louie55 on April 06, 2006, 11:33:08 PM
When someone views a picture, (not the thumbnails, but the large version of a picture) there is text above it that says "File 1/15", or "File 2/15", etc... Depending on which picture you are viewing. I would like to add a line of text above, below, or after this that says "Scroll down for More information and Price Info".

I have searched the Coppermine files for the place that this resides, but have been unable to find it. So, I thought I would ask here. Which file do I have to change to get this text to appear above the picture?? (displayimage.php). I am using the "Eyeball" theme.

Thanks.

Louie
Title: Re: How to add text above the picture??
Post by: Nibbler on April 06, 2006, 11:42:48 PM
Copy the template from the sample theme into your theme's theme.php and modify.


// HTML template for the image navigation bar
$template_img_navbar = <<<EOT

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48px"><a name="top_display_media"></a>
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0px" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48px">
                        <a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0px" align="middle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48px">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0px" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="100%">
                        {PIC_POS}
                </td>
<!-- BEGIN report_file_button -->
                <td align="center" valign="middle" class="navmenu" width="48px">
                        <a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
                </td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48px">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0px" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
<!-- END ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48px">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0px" align="middle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48px">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif"  border="0px" align="middle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>

EOT;


The File 1/15 is {PIC_POS} in the template.
Title: Re: How to add text above the picture??
Post by: sbpoole on April 07, 2006, 05:08:14 AM
I did it by editing the english.php file in the lang folder.  That way you don't have to edit each and every theme.

Search for 'pic_pos' => 'FILE %s/%s',   and edit accordingly

In mine, I changed it to 'pic_pos' => 'Photo %s of %s ---->*NOTE: Use filename below photo when ordering',
This helps to keep people from ordering pictures using the position number instead of the filename

Hope this helps

Sonny