Removing Field/Header "File Information" Removing Field/Header "File Information"
 

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]

Main Menu

Removing Field/Header "File Information"

Started by nontekkyguy, March 04, 2006, 09:53:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nontekkyguy

I am using the latest version of CPG and have commented out all of the file information fields. Now I wish to remove the words "File Information"  is this possible? If so how.
Thanks for this latest update with fixes!!!!!
learning requires patience; teaching requires more

Joachim Müller

edit themes/yourtheme/theme.php, find                <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>
and comment it out

nontekkyguy

The "fruity" theme doesn't contain this line of code. I've searched for the Theme.php files in other directories but no luck.
learning requires patience; teaching requires more

Joachim Müller

Then copy // 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;
into your theme, into a new line right before ?>(code taken from the sample theme. If you can't find a certain section within your theme, copy the corresponding section from the sample theme).

nontekkyguy

#4
Oops spoke too soon
i commented it out
//<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>

But "My Favorites" still appears as a button, plus two slashes appear above the intermediate image.
learning requires patience; teaching requires more

Joachim Müller

#5
That's HTML stuff you're trying to comment out, so you'll have to use HTML-style comments: change it so it reads                <!--<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>-->
and you should be good.

Just FYI:
  • Quote//
    markes a line to be a comment in PHP
  • Quote<!--
    is the starting tag of a comment in HTML,
    Quote-->
    is the ending tag. Everything within those two tags is commented out.
  • There's a similar thing in PHP as well:
    Quote/*
    is the starting tag for a comment (that can span multiple lines),
    Quote*/
    is the ending tag
Examples:<?php
// echo "Hello world"; (won't get printed because the line is commented out)
echo "Foo bar"// will get printed because the comment starts after the actual code
/* 
This line will have no impact at all, as it is commented out by the leading slash/asterisk and the trailing asterisk/slash combination.
Our forum software SMF is even smart enough to determine the comments as well and highlight them in a different color.
*/
?>


<h1>This is HTML</h1>
<!--<p>This line won't get printed because it is commented out</p>-->
<p>This line <b>will</b> get printed</p>

nontekkyguy

#6
Thanks for clearing that up with regard to PHP vs HTML comments. Here is the code with the HTML comment tags:
<!--<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>-->
The My Favorites button on the left menu still appears however.
learning requires patience; teaching requires more

Joachim Müller


nontekkyguy

learning requires patience; teaching requires more

Joachim Müller

to view displayimage.php one needs to be registered on your page, so you should provide a non-admin test user account.

Joachim Müller

didn't ask for a PM. Post the account publicly. After the issue is solved, you can savely disable the account.

nontekkyguy

I didn't post it in public as the gallery is adults only, and the Gallery is by invitation only for photographers, models and other proven artists.
learning requires patience; teaching requires more