![]() |
script shows comments, where no comments are
Hello,
i have open the testscript for unregistert for you, to have a look on it... http://www.vogelforen.de/fotos/index.php?c=17 There you see on every picture 1 comment.. if you klick on a photo, there is no comment: http://www.vogelforen.de/fotos/index.php?n=4 Wenn you see the mainpage, the count is also correct: http://www.vogelforen.de/fotos/ Why is the count on the image-list wrong? Can someone help? |
Hi, what versions of PHP and MySQL are you using, and what rows are in the photoplog_ratecomment table?
|
PHP 4.3.10
MySQL-Version 3.23.48-Max |
You are seeing 1 instead of 0 for the counts because of how MySQL 3.23.48 handles SUM in a couple of PhotoPlog queries (see here for further details).
In the PhotoPlog index.php file find (two spots): Code:
IF(IFNULL(SUM(photoplog_ratecomment.rating),-1) < 0, 0, COUNT(*)) AS num1, Code:
IF(IFNULL(SUM(photoplog_ratecomment.commentid),-1) <= 0, 0, COUNT(*)) AS num1, |
great service...
where can i buy my licence ;-) |
Quote:
Go to the Download (Navbar) link => Click on Upgrade/Renew/Purchase. At the bottom you will see a Drop Down Menu "Prices subject to change". After choosing press the "Order" button. Now you will redirected to PayPal where you can pay PhotoPlog Pro. That's it. No big deal ;) -Mike |
All times are GMT. The time now is 09:58 AM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.