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: Removing Field/Header "File Information"  (Read 7594 times)

0 Members and 1 Guest are viewing this topic.

nontekkyguy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 59
Removing Field/Header "File Information"
« on: March 04, 2006, 09:53:40 pm »

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!!!!!
« Last Edit: March 09, 2006, 06:37:20 am by GauGau »
Logged
learning requires patience; teaching requires more

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Field/Header "File Information"
« Reply #1 on: March 05, 2006, 02:11:32 am »

edit themes/yourtheme/theme.php, find
Code: [Select]
                <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
Logged

nontekkyguy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 59
Re: Removing Field/Header "File Information"
« Reply #2 on: March 05, 2006, 04:38:37 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Field/Header "File Information"
« Reply #3 on: March 05, 2006, 11:10:09 am »

Then copy
Code: [Select]
// 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: [Select]
?>(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).
Logged

nontekkyguy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 59
Re: Removing Field/Header "File Information"
« Reply #4 on: March 09, 2006, 04:19:45 am »

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.
« Last Edit: March 09, 2006, 08:35:27 am by nontekkyguy »
Logged
learning requires patience; teaching requires more

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Field/Header "File Information"
« Reply #5 on: March 09, 2006, 08:45:49 am »

That's HTML stuff you're trying to comment out, so you'll have to use HTML-style comments: change it so it reads
Code: [Select]
                <!--<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:
Code: [Select]
<?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>
« Last Edit: March 09, 2006, 08:56:30 am by GauGau »
Logged

nontekkyguy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 59
Re: Removing Field/Header "File Information"
« Reply #6 on: March 10, 2006, 02:56:16 am »

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.
« Last Edit: March 10, 2006, 03:27:46 am by nontekkyguy »
Logged
learning requires patience; teaching requires more

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Field/Header "File Information"
« Reply #7 on: March 10, 2006, 09:31:24 am »

link?
Logged

nontekkyguy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 59
Re: Removing Field/Header "File Information"
« Reply #8 on: March 11, 2006, 06:43:49 am »

Logged
learning requires patience; teaching requires more

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Field/Header "File Information"
« Reply #9 on: March 11, 2006, 10:05:36 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Removing Field/Header "File Information"
« Reply #10 on: March 14, 2006, 07:35:17 am »

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

nontekkyguy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 59
Re: Removing Field/Header "File Information"
« Reply #11 on: March 15, 2006, 04:24:33 am »

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.
Logged
learning requires patience; teaching requires more
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.