Topic-icon {JFBCComments} not appearing in K2 template

Active Subscriptions:

None
10 years 7 months ago #36887 by paz
Hi Alex,

I hope all is well. When I moved to J3.1 my {JFBCComments} tag is no longer being rendered in the K2 template. I made sure the parent category has k2 plugins enabled, I made sure that the Content - JFBContent is loaded at the uppermost position. Im a bit at loss what to check here. Did something change?

Even enabling JFBComments in JFB config and loading to bottom or top position shows nothing.

However, oddly enough the sh404sef social plugin tags load fine which are loaded in it's own plugin section (not content or system).

Have you seen this issue before?

Thanks,
p.
The topic has been locked.
Support Specialist
10 years 7 months ago #36914 by alzander
Paul,
Haven't heard that issue before at all. Can you try enabling the social buttons as well (FB Like, G+1, etc) to see if those show up properly?

If those don't show, let me know a URL we can take a look at the page and we'll gladly look at the output to see if we can diagnose it a little better.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #36945 by paz
Hi Alex,

Thanks for that. Here is the URL.
www.inthemix.me/archive/dubai-legends/david-craig.html

Strangely enough I cant seem to get any buttons to display. The social buttons there now are from sh404sef social.

Perhaps I removed some code from the K2 item.php template that should be there? I wonder if theres something wrong with K2. Im pretty much out of ideas. This used to work previously and I had migrated the k2 templates as is.

p.
The topic has been locked.
Support Specialist
10 years 7 months ago #36975 by alzander
Paul,
It couldn't be something wrong with your item.php file. I see the {JFBCComments} tag on the page, so that means our system isn't detecting and/or replacing that tag properly. You really couldn't have done that by overriding the K2 template files.

There's a few things I'd recommend looking into that may be the cause:
* Check if you have the System - Cache plugin enabled. If so, move it to the last (highest number) position (or temporarily disable it altogether).
* Check if there is an Admin Render Key set in the Social -> Misc area of JFBConnect. If so, try removing that altogether.
* Try on adding the JFBCLike module or {JFBCLike} tag on some other pages to see if they work there.

Let me know if any of the above helps!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #37042 by paz
Thanks Alex, it was the admin render key that was doing it..... Great feature, pesky if forgotten you've used it!!!

Cheers!
p.
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #37043 by paz
Hi Alex,

If I could make one comment, now that its working... {JFBCCommentsCount} returns Number of Comments:X.

Can this be change to only output the integer value of the comments without the "Number of Comments:" string. This is useful for me because I want to use this value in a rich snippets meta for usercomments. The extra text disables this from being usable.

Cheers,
p.
The topic has been locked.
Support Specialist
10 years 7 months ago #37047 by alzander
Paz,
Glad it was just the render key. It is a good feature and one we quickly realized was required when we added tags to the component and couldn't add them to forum posts (or other areas) without them being rendered right way. Now we can add {JFBCLike} wherever we want. The main point though was to prevent user's from doing something silly on your site, though there's not too much 'bad' that could be done with a tag, it's just not best to give users that power :)

For the Comment Counts, that's a language string. You can edit it in the /languages/en_GB/en_GB.com_jfbconnect.ini file or use the Language Manager override system of Joomla. The string you're looking for is:
COM_JFBCONNECT_COMMENTS_COUNT="Number of Comments: %s"

Just change that to "%s" and it should do what you're looking for.

Hope that helps!
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #37118 by paz
Perfect! Thanks Alex!!!

p.
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #37119 by paz
Hi Alex,

Ive looked into this some more and changed the language setting. However it appears the output is wrapped with two div tags:

<div class="jfbccomments_count"><div class="fb-comments-count" data-href="www.inthemix.me/archive/guest-stars/gene-farris.html">


Is there a way to strip this as well? Unfortunately due to the rendering of the plugins, I cant use any processing php on this string unless i declared it as an onpage jscript var and then strip it out which isnt optimal.

Any ideas? PS feel free to split this thread in case other users may want to find this issue.

Cheers,
p
The topic has been locked.
Support Specialist
10 years 7 months ago #37131 by alzander
The actual code for the comment count requires a div because it's actually loading Javascript that's calling Facebook and fetching the comment count. It would be possible to remove jfbccomments_count div, but not the inner div. If that would help, let me know, but if whatever you're doing can't process Javascript, then the counter won't work in that case.

I hope that helps explain,
Alex
The topic has been locked.