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: Configuration Issue  (Read 1976 times)

0 Members and 1 Guest are viewing this topic.

terminal velocity

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Configuration Issue
« on: March 02, 2007, 10:52:53 am »

Hi, I'm not sure what category to place this in so I apologise I advance if I have posted in the wrong place.

On the main index page, there are three windows - one showing all the albums, one showing random files and one showing last additions.

We don't really like the latter two being visible and wish only to see the one window that lists all the albums. We've looked through the configuration options and admin tools but cannot find the options that will allow us to take off the two we don't want.

I know and work with php quite a lot so would not have a problem adjusting the code in the appropriate file if need be, provided of course anyone can tell me which file I can find it in - I have looked through them and cannot find it yet.

Any ideas or help would be much appreciated. I hasten to add that I use an earlier version on another site and I was able to choose the layout before. The latest version we are using is 1.4.1

Please see attached image for clarification -
Logged

terminal velocity

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Configuration Issue
« Reply #1 on: March 02, 2007, 11:33:22 am »

Ah, have sorted it, thanks anyway all.

I took the rough approach and edited the index.php file to action the changes. If anyone else wants to know, I removed the following code and all works very well:

Code: [Select]
case 'random':
                        display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Configuration Issue
« Reply #2 on: March 02, 2007, 01:49:57 pm »

Fiddling with the core code wouldn't have been necessary and is not recommended. Instead, you just would have had to read the documentation, it's explained there: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing
Get rid of "random,2/lastup,2" from "The content of the main page" and you're done.
Not related to initial install, moving accordingly.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.