Changing category order daily Changing category order daily
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

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.