theme.php empty theme.php empty
 

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

theme.php empty

Started by Walkinman, January 05, 2006, 07:28:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Walkinman

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

donnoman


Walkinman

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

donnoman

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.