Configuration Issue Configuration Issue
 

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

Configuration Issue

Started by terminal velocity, March 02, 2007, 10:52:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

terminal velocity

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 -

terminal velocity

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:

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;

Joachim Müller

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.