coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Omen on February 29, 2004, 10:19:33 AM

Title: Certain galleries can display random photos on the index?
Post by: Omen on February 29, 2004, 10:19:33 AM
Is there a mod that will let me chose which albums can display random images on the index?

Example:
Say I have 10 Albums
I only want the images from Album1, Album4, and Album9 to be in the random image rotation on the index page...
Title: Certain galleries can display random photos on the index?
Post by: Casper on February 29, 2004, 02:44:06 PM
not at the moment afaik.  All publicly available albums are used.
Title: Certain galleries can display random photos on the index?
Post by: Nibbler on February 29, 2004, 04:04:22 PM
You can adjust the query yourself in functions.inc.php

If you have more than 1000 pics in your gallery then alter line 713,

If you have less than 1000 pics then alter line 715,

and put a condition like AND aid NOT IN (1,2,3,4) between the $ALBUM_SET and the ORDER BY
Title: Removing Public User Galleries from Random/Last Upload Pics
Post by: caplan8293 on March 11, 2004, 04:51:37 PM
Hi,

I did a documentation search and a forum search but I could not find anything on this topic...

I have created several categories and albums as the admin.  I have also given two friends permission to create public albums to display their artwork.

However, I do not want images from their public albums to show up on the 'Random Pictures' or 'Last Uploads' sections of the website or on the front page.  I want users to be able to see their public galleries if they specifically click on them but I do not want them showing up in the above named sections.

Does anyone know how to do this?  Is it possible to tell the 'Random Images' and 'Last Uploads' functions not to include public gallery info?  You can be as technical as possible if you like.

Thanks in advance for any responses.
Title: Certain galleries can display random photos on the index?
Post by: Casper on March 11, 2004, 10:02:23 PM
Hi caplan,

merged your post with topic dealing with your request.  If you need more help on how to accomplish what nibbler said, post back here.
Title: Certain galleries can display random photos on the index?
Post by: caplan8293 on March 11, 2004, 10:27:31 PM
Quote from: "casper"Hi caplan,

merged your post with topic dealing with your request.  If you need more help on how to accomplish what nibbler said, post back here.

Worked great! Thanks very much for your help, everyone.  I appreciate it.