Korey's Wordpress Plugins Forums Forum Index Korey's Wordpress Plugins Forums
Home of Lazy-K Gallery
 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Korey's Wordpress Plugins Site

Comment Count incorrect for gallery - post intergration

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Korey's Wordpress Plugins Forums Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Meg



Joined: 23 Nov 2006
Posts: 2

PostPosted: Thu Nov 23, 2006 10:20 am    Post subject: Comment Count incorrect for gallery - post intergration Reply with quote

@Korey:
Whenever I try to display an gallery/sub gallery on a post, the comment count for this post will be reset to zero.

When I display the gallery/sub gallery on index page, all comment counts of all posts will be zero (actually they have comments).
when I move the gallery/sub gallery to "Read More..." part (mean user need to click Read More... to read the post, the comment count will be OK. But, when user click to see the post details, comment count of that post will be zero again even it displayed the user comments at the bottom of the page... weird !

Could you please check ? I will send a PM to you the URL of my page.

TIA

Sorry for my English, it's not my native language.
Back to top
View user's profile Send private message
Korey
Site Admin


Joined: 13 Oct 2006
Posts: 143
Location: United States

PostPosted: Sat Nov 25, 2006 2:21 am    Post subject: Reply with quote

Meg-

Sure enough, I can make the same problem occur on my test website as well. I haven't had very many people using my plugin on posts, mostly just on pages, so that hasn't been tested as thoroughly.

I'm not sure right now what the problem is, but I will take a look.

Thanks,
_________________
Korey - Developer of Lazy-K Gallery
Back to top
View user's profile Send private message Visit poster's website
Korey
Site Admin


Joined: 13 Oct 2006
Posts: 143
Location: United States

PostPosted: Sat Nov 25, 2006 9:22 am    Post subject: Reply with quote

Meg-

I figured out what's going on. I had to write some special code to report the number of comments when using the per-picture commenting feature. If you don't set that up (not everyone does), it's not reporting the number of comments correctly.

This is a bug. Until I can find and release a fix, here's a workaround, if you're not using per-picture commenting.

Edit the lazy-k-gallery.php file, which is in your plugins directory. Look for the line, around line 65, that reads:

Code:
add_filter('get_comments_number', 'lzk_get_comments_number');


What you need to do is "comment it out" by putting two slashes in front of it:

Code:
//add_filter('get_comments_number', 'lzk_get_comments_number');


Thank you for reporting this issue!
_________________
Korey - Developer of Lazy-K Gallery
Back to top
View user's profile Send private message Visit poster's website
Meg



Joined: 23 Nov 2006
Posts: 2

PostPosted: Sun Nov 26, 2006 6:39 pm    Post subject: Reply with quote

Hi Korey,
Thank you very much, I did as you said and it works (even though the comment count per image is reported wrongly, it reported the total comments for gallery, it's OK for me). This is the best photo gallery for Wordpress That I've ever used Smile Hope there will be a proper fix soon.

Cheers Smile
Back to top
View user's profile Send private message
Korey
Site Admin


Joined: 13 Oct 2006
Posts: 143
Location: United States

PostPosted: Sun Nov 26, 2006 9:39 pm    Post subject: Reply with quote

Thanks for your help. I have solved the issue in my test version, and I'll try to get it released pretty soon! If you'd like to try the experimental version to see if it works for you, let me know and I can share it with you.
_________________
Korey - Developer of Lazy-K Gallery
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Korey's Wordpress Plugins Forums Forum Index -> Bug Reports All times are GMT + 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP