forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: terminal velocity on March 02, 2007, 10:52:53 am

Title: Configuration Issue
Post by: terminal velocity 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 -
Title: Re: Configuration Issue
Post by: terminal velocity 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;
Title: Re: Configuration Issue
Post by: Joachim Müller 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.