forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: fusionx on November 09, 2004, 05:02:59 am

Title: Changing category order daily
Post by: fusionx on November 09, 2004, 05:02:59 am
Hello,

I've searched high and low for this - sorry if I missed it somewhere else in the forums.

I'd like to reorder the top-level categories on a daily basis.

I was digging through the code and had some ideas, then it hit me that the easiest way would be to run a cron job on a small script that would reorder the pos values where parent = 0 and cid != 1

My question is would this cause any problems that you know of?

Thanks!

BTW - I'm loving coppermine.. it's a life saver.
Title: Re: Changing category order daily
Post by: fusionx on November 22, 2004, 12:19:26 am
I found a different, possibly better solution.

I just changed the SQL query to order by RAND, and it reorders the output for each view. I like it - it gives each category new exposure.

Prima Nudes (http://www.primanudes.com)  WARNING as the name suggests, not worksafe

Fusionfx, we do not mind links to adult sites, but you MUST give a warning, even when the title seems obvious.