Advanced search  

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

Pages: [1]   Go Down

Author Topic: theme.php empty  (Read 3804 times)

0 Members and 1 Guest are viewing this topic.

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
theme.php empty
« on: January 05, 2006, 07:28:31 pm »

Hello folks,

I've made some progress with my site now, thank you for your help here. But now, as I try to remove some of the defualt modes, like 'user comments', "most viewde' 'top rated', etc, I can't find how to do this. When i go to themes/waterdrop/theme.php, and open that file, all I get is this:

<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2005 Coppermine Dev Team
  v1.1 originaly written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.2
  $Source: /cvsroot/coppermine/devel/themes/water_drop/theme.php,v $
  $Revision: 1.65 $
  $Author: gaugau $
  $Date: 2005/10/25 01:16:24 $
**********************************************/

define('THEME_IS_XHTML10_TRANSITIONAL',1); // Remove this if you edit this template until
                                           // you have validated it. See docs/theme.htm.

// HTML template for template sys_menu spacer
$template_sys_menu_spacer ='<img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />';

?>


That's all there is in there. Some of the themes, like "eyeball" "fruity" etc, all have a whole bunch of coding and whatnot in there .. but the 'water_drop" theme, which I'm using, is empty. What do I do? Specifically, for example, to remove the "Most Viewed" or "Top rated" options from the bar? I've looked at pages like this one:

http://coppermine.sourceforge.net/faq.php#removeFeature

or this one:

http://forum.coppermine-gallery.net/index.php?topic=19967.0

But I can't seem to find those files.

Thank you.

Cheers

Carl
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: theme.php empty
« Reply #1 on: January 06, 2006, 06:58:45 am »

Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: theme.php empty
« Reply #2 on: January 06, 2006, 08:52:49 am »

hey Donnoman,

Thank you, I had looked n the archives but didn't see that one.

It appears I've messed things up somewhere. Now when I try to copy any of the samplle.php code and comment it out (with this -- "//"    ?) I get the following error:

Template error
Failed to find block 'logout'(#(<!-- BEGIN logout -->)(.*?)(<!-- END logout -->)#s) in :

            <!-- BEGIN home -->
        <a href="{HOME_TGT}" title="{HOME_TITLE}">{HOME_LNK}</a>
  <!-- END home -->  <!-- BEGIN login -->
        <a href="{LOGIN_TGT}" title="{LOGIN_TITLE}">{LOGIN_LNK}</a>
  <!-- END login -->

I went ahead and re-edited my template back like it was (as posted above)  so the pages still work, but it appears I need to fix something before I go any further? If someone can take alook, it's

http://www.skolaiimages.com/stock/index.php

Thank you again.

Cheers

Carl
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: theme.php empty
« Reply #3 on: January 07, 2006, 08:35:53 pm »

just use the plugin final_extract thats listed in that thread.

If you're not modifying how the buttons look, then you actually don't need to make any changes to your theme.php, the plugin should take care of the removal.

If you still can't get it to work, zip up your custom theme and attach it to this thread, I'll look at the plugin and your theme and see If I can work out the changes it would require.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.