Re: Displaying the number of comments pending?
Posted: Tue Jul 03, 2007 4:46 pm
Hi!
Nice idea. Sadly, there is no smarty function to achieve this. But you can use the PHP function serendipity_fetchComments() and pass an additional SQL where string to it to filter for "pending" comments only, then count the number of returned rows. You could write a custom smarty functions for that and put it in your template's config.inc.php file.
Do you know how to achieve that? I think you're already quite far with stuff like that, so I saved myself to create it for you...
Best regards,
Garvin
Nice idea. Sadly, there is no smarty function to achieve this. But you can use the PHP function serendipity_fetchComments() and pass an additional SQL where string to it to filter for "pending" comments only, then count the number of returned rows. You could write a custom smarty functions for that and put it in your template's config.inc.php file.
Do you know how to achieve that? I think you're already quite far with stuff like that, so I saved myself to create it for you...
Best regards,
Garvin