forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: nontekkyguy on March 04, 2006, 09:53:40 pm

Title: Removing Field/Header "File Information"
Post by: nontekkyguy 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!!!!!
Title: Re: Removing Field/Header "File Information"
Post by: Joachim Müller 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
Title: Re: Removing Field/Header "File Information"
Post by: nontekkyguy 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.
Title: Re: Removing Field/Header "File Information"
Post by: Joachim Müller 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).
Title: Re: Removing Field/Header "File Information"
Post by: nontekkyguy 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.
Title: Re: Removing Field/Header "File Information"
Post by: Joachim Müller 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:
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>
Title: Re: Removing Field/Header "File Information"
Post by: nontekkyguy 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.
Title: Re: Removing Field/Header "File Information"
Post by: Joachim Müller on March 10, 2006, 09:31:24 am
link?
Title: Re: Removing Field/Header "File Information"
Post by: nontekkyguy on March 11, 2006, 06:43:49 am
LINK NOT WORK SAFE:
http://www.josefaro.org/gallerypix/cpg144/index.php
Title: Re: Removing Field/Header "File Information"
Post by: Joachim Müller 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.
Title: Re: Removing Field/Header "File Information"
Post by: Joachim Müller 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.
Title: Re: Removing Field/Header "File Information"
Post by: nontekkyguy 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.