Wanting to change Classic Theme, remove links, etc. Wanting to change Classic Theme, remove links, etc.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Wanting to change Classic Theme, remove links, etc.

Started by dwdallam, November 30, 2006, 06:49:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dwdallam

I read somewhere in this site that if you wanted to remove specific things in a tempalte from display, simply comment them out in the theme's php file. Ok, easy. However, when I open the php file, it says all core items are removed:

Quote<?php
/*************************
  Coppermine Photo Gallery
  ************************
//Credits removes for this example//

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

?>
So there is nothing to comment out.

Thanks again.


Joachim Müller

#1
Quote from: dwdallam on November 30, 2006, 06:49:09 AM
I read somewhere in this site that if you wanted to remove specific things in a tempalte from display, simply comment them out in the theme's php file.
Not true for all aspects of a theme. Depends on what you actually want to see removed. Post a link to the thread where you read about the miraculous "commenting-out-will-remove-anything". Anyway: the classic theme (which you appear to use as a custom theme) has all items removed (so the default behaviour is being taken into account). If you want to see a particular feature of a theme changed, you will have to copy the corresponding section into your emtpy theme.php file first from themes/sample/theme.php.
As suggested above: post what you actually want to see changed.
If you want to get rid of menu items only, you better use the plugin "Final Extract v2.2 with Config panel", as it is easier for newbies to get rid of menu items.

Joachim


dwdallam

OK, here is an image of what I want to clean out. Items I want to remove are outlined in red.


Top: Take out all those options with + and - next to them.

Take out the icons and functions on the left.

Replace back and forward images with text (back | next)

Take out film strip graphics.

Take out bottom Rate this file function and stars below it.

Thanks again.


dwdallam

Here is the link you requested:
http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#NoLastUploads

Here is the text:

"I don't want to use the feature XYZ of Coppermine. How can I remove it?

Just remove the link; edit /themes/yourtheme/theme.php, look for the feature you want to remove and comment out the HTML code.
Example: if you want to remove the ecard-feature, just look for . . . ."

This makes no logical sense to me:

"If you want to see a particular feature of a theme changed, you will have to copy the corresponding section into your emtpy theme.php file first from themes/yourtheme/theme.php."

Your telling me to copy information from the blank php file.

dwdallam

Quote from: dwdallam on November 30, 2006, 08:41:36 AM
This makes no logical sense to me:

"If you want to see a particular feature of a theme changed, you will have to copy the corresponding section into your emtpy theme.php file first from themes/yourtheme/theme.php."

Your telling me to copy information from the blank php file.

I wanted to clarify this part, but there is no EDIT option for this forum. Please forgive me for posting again.

You said in your above post:

"If you want to see a particular feature of a theme changed, you will have to copy the corresponding section into your emtpy theme.php file first from themes/yourtheme/theme.php."

That sentence makes no logical sense to me. For example, if I were to follow those instructions I would:

1. Copy "corresponding section" from yourtheme/theme.php (which is classic and blank)
2. Paste that information back into yourtheme/theme.php (Which is the same file)

Joachim Müller

Quote from: dwdallam on November 30, 2006, 08:52:31 AM
"If you want to see a particular feature of a theme changed, you will have to copy the corresponding section into your emtpy theme.php file first from themes/yourtheme/theme.php."
I'm sorry - this is of course wrong. I edited my above posting accordingly, please re-read it.


Joachim Müller

Quote from: dwdallam on November 30, 2006, 08:20:59 AM
Take out film strip graphics.
No need to mess with the theme: go to coppermine's config, expand the "Image view" section and set "Show film strip" to "no". Please read the docs before asking questions, as this is explained there.

Quote from: dwdallam on November 30, 2006, 08:20:59 AMTake out bottom Rate this file function and stars below it.
Disallow your users to vote and the voting/rating section will disappear. You do so on the groups page. Again: reading the documentation before posting would have helped.

Joachim Müller

Quote from: dwdallam on November 30, 2006, 08:20:59 AM
Top: Take out all those options with + and - next to them.
Those are the sorting options - the corresponding section from themes/sample/theme.php looks like this:// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                                <td><img src="images/spacer.gif" width="1" alt="" /></td>
                                <td class="sortorder_cell">
                                        <table cellpadding="0" cellspacing="0">
                                        <tr>
                                                <td class="sortorder_options">{TITLE}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=ta" title="{SORT_TA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=td" title="{SORT_TD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{NAME}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=na" title="{SORT_NA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=nd" title="{SORT_ND}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{DATE}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=da" title="{SORT_DA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=dd" title="{SORT_DD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        <tr>
                                                <td class="sortorder_options">{POSITION}</td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pa" title="{SORT_PA}">&nbsp;+&nbsp;</a></span></td>
                                                <td class="sortorder_options"><span class="statlink"><a href="thumbnails.php?album={AID}&amp;page={PAGE}&amp;sort=pd" title="{SORT_PD}">&nbsp;-&nbsp;</a></span></td>
                                        </tr>
                                        </table>
                                </td>
                        </tr>
                        </table>

EOT;
To get rid of the sorting options, it should look like this:// HTML template for title row of the thumbnail view (album title + sort options)
$template_thumb_view_title_row = <<<EOT

                        <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td width="100%" class="statlink"><h2>{ALBUM_NAME}</h2></td>
                        </tr>
                        </table>

EOT;
Copy this section into themes/yourtheme/theme.php (into a new line before ?>).




Quote from: dwdallam on November 30, 2006, 08:20:59 AM
Replace back and forward images with text (back | next)
The corresponding section in themes/sample/theme.php:// 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%">
                        {PIC_POS}
                </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;
. Needed changes:// 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%">
                        {PIC_POS}
                </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}">{PREV_TITLE}</a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}">{NEXT_TITLE}</a>
                </td>
        </tr>

EOT;
(to be inserted again into a new line in themes/yourtheme/theme.php before ?>).

In the future, please respect the "one issue per thread" policy you agreed to when signing up, as your question actually deals with four totally different issues.

dwdallam

OK the sample php makes more sense for sure :)

I sure will respect asking a single question per post. I think that is a good policy. However, for this thread, you asked me to:

"As suggested above: post what you actually want to see changed."

What I wanted to see changed was a multipart question. Sorry.

I actually did read all of the documentation. I can probably recite it too you with my eyes closed at this point. What may help is asking people how the documentation could be more clear to those unfamilair with your terminology.

For instance, the "show no film strip" option sounds like it will remove the film strip completely, even the thumbnails, not just the film strip graphics. If this is true, and I understand your explanation, it should read something like, "To remove the film strip graphics, but not the thumbnails below the main images, . . . ." See what I mean? I read that part about 200 times and never thought it meant that it would only take out the film strip graphics--simply because that is not what it says. It says it will disable the film strip. I didn't even think to try it, and that is my fault for sure. Sorry again.

Last thanks for all of that. I think I need to rtead how teh sample php corresponds to theme.php's. That's a little confusing to me I guess.

Again, thanks for all this help. I'm sorry I took so much of your time :(

PS-- Can I have my Karma point back?

dwdallam

GauGau

I jsut disabled the film strip as you stated to do, and it removes teh entire film strip and thunbnails.

I want to keep the thumbnails and the "strip" but I do not want the film negative graphics above and below. See what I mean?

Example:

How it is default:
Filmstrip graphic - Filmstrip graphic - Filmstrip graphic - Filmstrip graphic
Thumbnails Thumbnails  Thumbnails Thumbnails  Thumbnails Thumbnails 
Filmstrip graphic - Filmstrip graphic - Filmstrip graphic - Filmstrip graphic

How I want it:
Thumbnails Thumbnails  Thumbnails Thumbnails  Thumbnails Thumbnails 

Thanks again.

Abbas Ali

To remove the filmstrip (tiles) graphic edit themes/yourtheme/theme.php

and Replace


$template_film_strip = <<<EOT

        <tr>
         <td valign="top" style="background-image: url({TILE1});"><img src="{TILE1}" alt="" border="0" /></td>
        </tr>
        <tr>
        <td valign="bottom" class="thumbnails" align="center">
          <table width="100%" cellspacing="0" cellpadding="3" border="0">
              <tr>
                 <td width="50%"></td>
                 {THUMB_STRIP}
                 <td width="50%"></td>
              </tr>
          </table>
        </td>
        </tr>
        <tr>
         <td valign="top" style="background-image: url({TILE2});"><img src="{TILE2}" alt="" border="0" /></td>
        </tr>
<!-- BEGIN thumb_cell -->
                <td valign="top" align="center">
                                        <a href="{LINK_TGT}">{THUMB}</a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" align="center" >&nbsp;</td>
<!-- END empty_cell -->

EOT;


with


$template_film_strip = <<<EOT

        <tr>
        <td valign="bottom" class="thumbnails" align="center">
          <table width="100%" cellspacing="0" cellpadding="3" border="0">
              <tr>
                 <td width="50%"></td>
                 {THUMB_STRIP}
                 <td width="50%"></td>
              </tr>
          </table>
        </td>
        </tr>
<!-- BEGIN thumb_cell -->
                <td valign="top" align="center">
                                        <a href="{LINK_TGT}">{THUMB}</a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" align="center" >&nbsp;</td>
<!-- END empty_cell -->

EOT;


If that section is not there in your theme.php then copy the same from themes/sample/theme.php to your theme.php
Chief Geek at Ranium Systems

dwdallam

Abbas, thank you so much. I think between GauGau and you I can finally get Coppermine like I need it. Thanks much again.