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
-
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!!!!!
-
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
-
The "fruity" theme doesn't contain this line of code. I've searched for the Theme.php files in other directories but no luck.
-
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).
-
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.
-
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:
//
markes a line to be a comment in PHP
<!--
is the starting tag of a comment in HTML, -->
is the ending tag. Everything within those two tags is commented out.
- There's a similar thing in PHP as well:
/*
is the starting tag for a comment (that can span multiple lines), */
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>
-
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.
-
link?
-
LINK NOT WORK SAFE:
http://www.josefaro.org/gallerypix/cpg144/index.php
-
to view displayimage.php one needs to be registered on your page, so you should provide a non-admin test user account.
-
didn't ask for a PM. Post the account publicly. After the issue is solved, you can savely disable the account.
-
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.