Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Changing category order daily  (Read 2768 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.017 seconds with 19 queries.