× Joomla Facebook Connect support forum

Topic-icon JFBClike button dosen't show up in K2 category item view

Active Subscriptions:

None
Hi! I just bought the JFBConnect pocket and I am very glad to find this solution for integrating Facebook in Joomla. I would like to ask your help, I am almost sure I made something wrong because the Like button doesn't appear in category item list in K2 when I would like to display a list of items from more categories. It is working fine when I show just one category.

Another problem is that it shows the Like button only if I chose in JFBConnect-Social-Content Plugin - K2 Like view settings option to TOP. What would be the problem?


Thank you for your help.
The topic has been locked.
Support Specialist
Szaval,
Actually, not sure you've done anything wrong. I'm not sure we've tested that view type to know what would happen.

How are you creating the category list? Is that through a standard K2 menu item, or something else? Any info you have will help us test and provide a solution. Also, let us know what version of K2 you're using.

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

None
14 years 7 months ago #15056 by szaval
Thanks you try to help me.
I am using K2_v2.5.0 version (so I think this is the last one) and I make the category list through a standard K2 menu item. Interesting that if I make the menu to show the latest items from (one or more) users or categories is working fine again with more than one categories.

Waiting your answer thanks in advance
The topic has been locked.
Support Specialist
We'll have to look into it further. It's likely something we just don't support right now. Hopefully, adding our buttons to those views is a minor change, but I just can't guarantee it yet..

We'll let you know what we find!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 7 months ago #15078 by szaval
Thank you for your help! I hope you will find the answer soon.
The topic has been locked.
Support Specialist
Szaval,
Sorry for the delay in getting back to you. We have a quick code fix that works for us, and will hopefully work for you too.

In the /plugins/content/jfbccontent.php file, at approximately line 385
Change:
if (($this->_isK2Layout($layout, $task, 'category') && JRequest::getInt('id', 0))
to:
if ($this->_isK2Layout($layout, $task, 'category')

Hopefully that will take care of you, but if you run into issues, just let us know!

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

None
14 years 7 months ago #15238 by szaval
Oh! It is working perfect!!! Thank you for your help!
The topic has been locked.
Support Specialist
Fantastic! Sorry, again, for the few days in getting back to you. Bugs do happen, and we try to resolve them as quickly as possible. It's just a matter of hearing about them first :)

Finally, if you haven't already, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect and/or our support. It's certainly not required, but very appreciated!
extensions.joomla.org/extensions/social-...ook-integration/7215

Good luck with your site,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16142 by szaval
So the first problem has been resolved, the facebook like button now it is showing up on the front page (default menu) which is a standard K2 Item listings-Categories menu for more categories but the problem is, that this like button doesn't count the likes the same like in category listing when I show just one category and in the item view. The last two show the same like count, only that menu which show up more categories count different. And interesting that if I change this menu to not be the default menu it will show again a total different like count. Why is this? It should be the same count everywhere.
And moreover if I make a copy from one of the menu so to show the same category list than will start the facebook like count from zero so it will be different from the source menu.

Another question: Is there any way to show up the like button even in the K2 content module (mod_k2_content ) listing as well?
The topic has been locked.
Support Specialist
Starting from the bottom: To show the Like button in the K2 Content Module, you should simply have to enable the parameter in that module that's something like "Enable Content Plugins". That will cause the JFBCContent plugin to fire off and do it's work.

For your other issue, can you post (or private message) the URL of the page your seeing this on? It sounds like the Like button is for the 'current' page, not the 'destination' page, like it should be.. therefore, the Like button is shared across all the different categories on that page. When you click into a category (the destination), that's a different URL, so the Like button isn't showing the same count as on the previous page. We should be able to help you fix this so each Like is for the destination (individual category) page, instead of the current, but it's best to see what's happening first.

As for why the Like count is different when you change the menu item, that's correct behavior. When you change the Menu item, the URL for the page will have a different URL (usually the Itemid=xx portion will be different). This is a different page, and Facebook will assign Likes to it separately than other pages, even if they're similar.

Hope that explains things,
Alex
The topic has been locked.