Changing category order daily Changing category order daily
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Changing category order daily

Started by fusionx, November 09, 2004, 05:02:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fusionx

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.

fusionx

#1
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  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.