The Guru College
Photoblog Archives, Now With %100 Less Stupid
By default, pixelpost browses archives by category. Which is all well and good, until you actually use the software for longer than say, a month. By default, it loads up all of the pictures in the All category. For me, that’s more than 730 400×300 pixel images. More than half of my google image results load index.php?x=browse
, which loads every thumbnail.
To fix this, I enabled the paged archives addon, and then went to work hacking about in the tags. Now, everything links around properly, and the paged archive is what loads. The second problem which was harder to fix, was changing the behivhor of the x=browse
link to only show 10 images if no date range was selected. Most of the problem was digging around to see which function was actually being used, and then to add an extra $limit = " LIMIT 10,10";
inside the last set of if/else brackets.
Rocking. Next task: get the archive date list to appear next to the thumbnails. Alas, PHP/Perl is easier than CSS.