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: [Solved]: Remove "File #/##" in image view  (Read 1662 times)

0 Members and 1 Guest are viewing this topic.

FixitDave

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
[Solved]: Remove "File #/##" in image view
« on: June 11, 2009, 11:49:54 am »

Gallery: http://www.fixitdave.hostcell.net/cp/

When you view an image there is "File #/##" displayed on the page...I use the gallery for a monthly competition on a gaming site and some people are confusing the file number with the title (I number all images for anonymous posting).

I have limited PHP experience, so could somebody let me know which file and line number displays the "File #/##" text so I can delete it.

Thanks
« Last Edit: June 11, 2009, 01:48:30 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Remove "File #/##" in image view
« Reply #1 on: June 11, 2009, 11:59:25 am »

It's best to do this sort of thing at the theme level rather than mess with core code.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#theme_create

Add the following into your custom theme's theme.php

Code: [Select]
// HTML template for the image navigation bar
$template_img_navbar = <<<EOT

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

EOT;

All I've done there is removed {PIC_POS} from the template.

You also need to update your gallery to the current version.
Logged

FixitDave

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Remove "File #/##" in image view
« Reply #2 on: June 11, 2009, 01:45:51 pm »

Thanks, that's resolved that issue  ;)

Little worried about upgrading as I had lots of problems when I moved from one server to another, lots of DB errors and took a while to get it working on the new server  :'(
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.