Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Comment count in posts is wrong
Avatar
SoWhat
Member
Free Members
sp_UserOfflineSmall Offline
Feb 22, 2010 - 3:19 pm

Hi!

In linked comments is always "One comment". Doesn't matter if comments are in Mixed or in Seperate mode.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2010 - 3:22 pm

using what code?

andy-signature.png
YELLOW
SWORDFISH
Avatar
SoWhat
Member
Free Members
sp_UserOfflineSmall Offline
Feb 22, 2010 - 3:24 pm

<?php comments_number('No Comment', 'One Comment', '% Comments' );?>

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2010 - 3:33 pm

Well yes - that is WP function.
4.2 has a new template tag - sf_comments_number() which should work. We are still bringing the wiki up to date but you can look at the code for the parameters in:
simple-forum/template-tags/sf-template-tags-comments.php

andy-signature.png
YELLOW
SWORDFISH
Avatar
SoWhat
Member
Free Members
sp_UserOfflineSmall Offline
Feb 22, 2010 - 3:48 pm

thanks! function works great.

Is there also a function for editing comments?

Like if user is allowed to edit his own posts in forum, it would be cool if he could edit his own comments also.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2010 - 4:26 pm

Well that's really a WP function. I guess there may be some plugins that allow it but I am not sure.

andy-signature.png
YELLOW
SWORDFISH
Avatar
SoWhat
Member
Free Members
sp_UserOfflineSmall Offline
Feb 22, 2010 - 4:30 pm

yes, there is one, but it doesnt work on linked comments 🙁

here it is http://wordpress.org/extend/pl.....-comments/

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2010 - 4:33 pm

really? That's a bit restrictive. I guess it just goes to the database and gets the WP standard set. This might have to change as Wp intro custom post types etc... Sorry we can't help with that.

andy-signature.png
YELLOW
SWORDFISH
Avatar
SoWhat
Member
Free Members
sp_UserOfflineSmall Offline
Feb 22, 2010 - 4:41 pm

I found other plugins which do that. Will try them out 😉
 

None of them works 🙁 Tested following:

http://wordpress.org/extend/pl.....mments-xt/

http://wordpress.org/extend/pl.....-comments/

http://wordpress.org/extend/pl.....-comments/ (this is the most powerful)

Last one works only on comments which are added when option Show Topic Posts as Comments has been turned off in forum config.

 

Here is example - the first comment was added when comment linking was disabled.

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 22, 2010 - 6:41 pm

I am not really surprised. They probably all stick to the standard WP way of grabbing comments which s understandable.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625