Keyword

K2 Items Social Buttons with Modal

  • Dennis
  • Dennis's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago #143338 by Dennis
K2 Items Social Buttons with Modal was created by Dennis
Hey there,

I am using K2 Items together with NoNumber Modals module to display items in a modal. Works fine, instead of the social buttons. Twitter and Google+ are still there, but the Facebook Like button is not displayed anymore in the modal. Think this is a JS conflict?

Looking forward on some help

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 5 months ago #143354 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Items Social Buttons with Modal
Could you send me a link Dennis?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Dennis
  • Dennis's Avatar Topic Author
  • Offline
  • New Member
More
9 years 3 months ago #144850 by Dennis
Replied by Dennis on topic K2 Items Social Buttons with Modal
One has to open the modal as an iframe. The Facebook button has to be displayed in an iframe, so that the counter of people who likes the article is displayed.
Can I also just display the Facebook button without the counter? Which part of the code i have to delete? Or are there any other social buttons without counters that work fine with K2?

Thanks

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #144873 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 Items Social Buttons with Modal
The facebook button cannot be without a counter.
You can find all of its available params here: developers.facebook.com/docs/plugins/like-button

The social icons are located in the item.php file, this post will help you locate/ override this file: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #144901 by Joe Campbell
Replied by Joe Campbell on topic K2 Items Social Buttons with Modal
Hello Dennis,

I am doing the same thing on the K2 site that I am developing. I have a share button on every page that opens a NoNumber modal, that presents each respective share button. My recommendation is to use AddThis. They offer a non-JavaScript URL that you can use. Using a non-JavaScript social share solution is a optimization/performance best practice. Best of all, using AddThis, you will be able to receive metrics for all social media engagement.

Here is the code:
gist.github.com/heyjoecampbell/a3181beec8116ccd4fee

I hope this helps,

Joe Campbell

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum