Removing some features Removing some features
 

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]

Main Menu

Removing some features

Started by gregerly, December 16, 2005, 11:50:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gregerly

I'm starting a gallery for my family (all of whom are NON-computer savy) and I want to make this as simple as possible for them.  I'm afraid that some of the features will go unused, and just confuse them, so I would like to remove them from the menu:  The one's I would like to remove are :

Last Comments
Most Viewed
Top Rated
My Favorites

Is there a way I can access the menu script directly to edit these out (or just comment them out to retain the file integrity for later use).  I just can't seem to find where these links are being generated from.  Thanks!

Greg



gregerly

Thanks for your reply.  One problem I'm running into is that the menu options are not available to comment out.  In the template.html I've got {SYS_MENU} and {SUB_MENU} but there is nothing I can edit.  My theme.php file only has 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/classic/theme.php,v $
  $Revision: 1.71 $
  $Author: gaugau $
  $Date: 2005/10/25 01:16:24 $
**********************************************/

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


Could you advise as to how I can remove just the menu options from the page.  Or just where I can find the html to comment out.  I figured out from your suggested readings how to change the page content, but now I just need to remove some links from the top of the page.  Thanks again for all your help.

Greg

Joachim Müller

you appear not to have read the last page I refered to: you need to copy the menu over from the sample theme (not the entire content of theme.php, but only the menu definition). This way, you override the generic definition of the menu. Then you edit the menu as you like.

gregerly

GauGau,

Thanks again for your help.  I did look over the last link you posted, but I guess this is WAY over my head.  I tried (with no luck) to edit the theme file, but I can't figure out how to get rid of a few buttons.  Anyhow, thanks for your help.  It is much appreciated.  If there is anyone here that can help this newbie out with some code examples of how to get rid of the buttons I mentions in the original post, I would really appreciate it.  Thanks again to all.

Greg

sorro

#5
Hello,

I've got the same problem as Greg. I would like to use a modified classic-theme but I don't know how to get the original menu in the theme.php. Has anybody a code example for the original menu code in an own theme.php file? I think changing it should work better than making a whole new theme.php.

Thanks!

Sorro


Quote from: gregerly on December 17, 2005, 12:38:21 PM
GauGau,

Thanks again for your help.  I did look over the last link you posted, but I guess this is WAY over my head.  I tried (with no luck) to edit the theme file, but I can't figure out how to get rid of a few buttons.  Anyhow, thanks for your help.  It is much appreciated.  If there is anyone here that can help this newbie out with some code examples of how to get rid of the buttons I mentions in the original post, I would really appreciate it.  Thanks again to all.

Greg

Joachim Müller

Quote from: sorro on December 20, 2005, 12:53:45 PM
Has anybody a code example for the original menu code in an own theme.php file?
Copy the stuff you need (not everything - only the bits you want to see changed) from the sample theme that comes with coppermine. Please do as suggested and read the theme guide I refered to earlier in this thread.

sorro

I read the theme guide but because of my expandable english and my also expandable knowledge in coding I do not understand the guide very good. Do NOT think I haven't tried a lot before asking here. You can not originate in everyone has the same wide knowledge as you have.

All I want is the theme file which I have to use for the classic theme. Perhaps somebody was successful yet and could help me with that.

Thanks!

Sorro