Advanced search  

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

Pages: [1]   Go Down

Author Topic: Changing number of images shown....  (Read 3628 times)

0 Members and 1 Guest are viewing this topic.

wassup2nite

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Changing number of images shown....
« on: January 29, 2007, 07:46:36 pm »

OK, I want to know how I can change the number of images shown under the "Random Files" and "Last Additions" - currently it lists 12 but is there a way I can change that number?
Logged

Nibbler

  • Guest
Re: Changing number of images shown....
« Reply #1 on: January 29, 2007, 08:19:08 pm »

Set the number of rows and columns in config. Please read the documentation. Default is not 12 so you have already changed it.
Logged

wassup2nite

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Changing number of images shown....
« Reply #2 on: January 29, 2007, 08:29:17 pm »

Set the number of rows and columns in config. Please read the documentation. Default is not 12 so you have already changed it.

Once I can get back into my gallery I'll check that out.
Logged

wassup2nite

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Changing number of images shown....
« Reply #3 on: January 29, 2007, 10:00:14 pm »

Set the number of rows and columns in config. Please read the documentation. Default is not 12 so you have already changed it.

OK, I've had a look but it's not changing what I want to change. What part in the config do I need to change to set the number of thumbnails in the "Random Files" and "Last Additions"?
Logged

Nibbler

  • Guest
Re: Changing number of images shown....
« Reply #4 on: January 29, 2007, 10:02:12 pm »

Rows: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing
Columns: 'Number of columns on thumbnail page' setting affects all thumbnail listings.
Logged

wassup2nite

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Changing number of images shown....
« Reply #5 on: January 29, 2007, 10:17:41 pm »

Rows: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing
Columns: 'Number of columns on thumbnail page' setting affects all thumbnail listings.

Thanks. It looks like this is the bit I'm looking for:

Quote
The content of the main page

This option allows you to change the content of the main page displayed by the script.

The default value is "catlist/alblist/random,2/lastup,2"

You can use the following "codes" to include other items:

    * 'breadcrumb': navigation inside the gallery (e.g. "home > category > subcategory > album")
    * 'catlist': category list
    * 'alblist': album list
    * 'random': random files (leaving random files "on" for huge galleries with more than 10,000 pics might result in performance problems; switch random "off" in this case)
    * 'lastup': last uploads
    * 'topn': most viewed
    * 'toprated': top rated
    * 'lastcom': last comments
    * 'lasthits': last viewed
    * 'anycontent': inserts php-generated content that has to reside within the file 'anycontent.php' into the index page. Can be used to include banner-rotation scripts or similar.
    * 'lastalb': last created albums

Unless you really know what you are doing you should always keep catlist and alblist in "the content of the main page", as they make up the core parts of the index page or any gallery site, for that matter.

The ,2 dictates that cpg should display 2 rows of thumbnails.

I need to change the ,2 to ,1 but I'm not sure where I change this. Any idea where this is?
Logged

Nibbler

  • Guest
Re: Changing number of images shown....
« Reply #6 on: January 29, 2007, 10:18:49 pm »

It's the 'The content of the main page' setting in config. If you can't find it use your browser's search.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.