Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Changing category order daily  (Read 2898 times)

0 Members and 1 Guest are viewing this topic.

fusionx

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 13
Changing category order daily
« 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.
Logged

fusionx

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 13
Re: Changing category order daily
« Reply #1 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  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.
« Last Edit: November 22, 2004, 11:43:20 am by Casper »
Logged
Pages: [1]   Go Up
 

Page created in 0.041 seconds with 20 queries.