(05-29-2011 05:23 PM)ZiNgA BuRgA Wrote: RateU's code looks good - do you happen to have manually edited portal.php at all leefish?
Yes I do - and that is the "problem".
Nothing wrong with RateU's code - its using a preg_replace so yes, my manual edits are screwing it up. So I just added the required code direct to my already heavily edited portal.php.
I have a lot of plugins already (not that these plugins are causing any extra queries, its just cluttering my plugins list) and I am trying to tidy the list up.
On this pagination - its really neat, but its a full page reload (of course) and I think that means I am hitting the db every time I click to a new page. Thats not so good on the portal page
. I have a few queries already memcached so that helps, but I was actually looking around for an AJAX script so at least I only "reload" the announcements div.
I am also looking at a "select by news" type filter as well, jQuery should be easiest I think as I am already loading the jQuery library, so on the AJAX reload its probably also going to be jQuery based.