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: Wanting to change Classic Theme, remove links, etc.  (Read 7752 times)

0 Members and 1 Guest are viewing this topic.

dwdallam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Wanting to change Classic Theme, remove links, etc.
« 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. 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.

« Last Edit: December 02, 2006, 07:59:13 am by Abbas Ali »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #1 on: November 30, 2006, 07:33:41 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

« Last Edit: November 30, 2006, 09:06:06 am by GauGau »
Logged

dwdallam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #2 on: November 30, 2006, 08:20:59 am »

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.

Logged

dwdallam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #3 on: November 30, 2006, 08:41:36 am »

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.
Logged

dwdallam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #4 on: November 30, 2006, 08:52:31 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)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #5 on: November 30, 2006, 09:07:33 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.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #6 on: November 30, 2006, 09:14:06 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.

Take 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #7 on: November 30, 2006, 09:24:50 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:
Code: [Select]
// 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:
Code: [Select]
// 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 ?>).



Replace back and forward images with text (back | next)
The corresponding section in themes/sample/theme.php:
Code: [Select]
// 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:
Code: [Select]
// 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.
Logged

dwdallam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #8 on: December 01, 2006, 10:24:46 am »

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?
Logged

dwdallam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #9 on: December 01, 2006, 11:03:10 am »

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.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #10 on: December 01, 2006, 01:38:19 pm »

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

and Replace

Code: [Select]
$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

Code: [Select]
$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
Logged
Chief Geek at Ranium Systems

dwdallam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Wanting to change Classic Theme, remove links, etc.
« Reply #11 on: December 02, 2006, 06:00:56 am »

Abbas, thank you so much. I think between GauGau and you I can finally get Coppermine like I need it. Thanks much again.
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.