coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: tbone2004 on March 15, 2004, 08:01:18 PM

Title: turn off random pictures in user galleris>user
Post by: tbone2004 on March 15, 2004, 08:01:18 PM
I was wondering if there was a way to turn off random pictures, and last additions in the user galleries>user
I just want it to show their album there. Any suggestions on how to do this?


Thanks,
Tim
Title: turn off random pictures in user galleris>user
Post by: jdbaranger on March 15, 2004, 08:08:39 PM
Hi,

You can't disable this ONLY for a specific category or album.
If you disable the function, it will be disabled everywhere, including in index.php.

To disable Random and Last Updated images, log in Admin mode, go to Config, section The content of the main page and delete :
random,x/
lastup,x/
Title: turn off random pictures in user galleris>user
Post by: Joachim Müller on March 16, 2004, 07:39:59 AM
If I remember it correctly, there has been a discussion about this a while ago. You could go into the code of index.php and add switches to the case statements where the meta album "random" is set and add some conditional statements like if (category-ID < 10000) {display the random pic}else{don't} /this is not actual code, but just a sketch to give you and idea what to add).

GauGau