PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   Troubleshooting & Problems (http://www.photoplog.com/forum/forumdisplay.php?f=6)
-   -   script shows comments, where no comments are (http://www.photoplog.com/forum/showthread.php?t=306)

Vogelfreund 06-06-2006 08:36 PM

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?

Morgan 06-06-2006 09:28 PM

Hi, what versions of PHP and MySQL are you using, and what rows are in the photoplog_ratecomment table?

Vogelfreund 06-06-2006 11:06 PM

PHP 4.3.10
MySQL-Version 3.23.48-Max

Morgan 06-07-2006 12:18 AM

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,
And replace with the following (in both spots):
Code:

IF(IFNULL(SUM(photoplog_ratecomment.commentid),-1) <= 0, 0, COUNT(*)) AS num1,
FYI to others: there is no need to apply this change unless you see 1 instead of 0 in the comment counts where zero is actually the true count.

Vogelfreund 06-07-2006 01:38 PM

great service...

where can i buy my licence ;-)

MikeD 06-19-2006 09:33 PM

Quote:

Originally Posted by Vogelfreund
where can i buy my licence ;-)

Simple as that ;)

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.