forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: FixitDave on June 11, 2009, 11:49:54 am

Title: [Solved]: Remove "File #/##" in image view
Post by: FixitDave 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
Title: Re: Remove "File #/##" in image view
Post by: Nibbler 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.
Title: Re: Remove "File #/##" in image view
Post by: FixitDave 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  :'(