Keyword

Advanced Search

Search Results (Searched for: summary_large_image)

  • JoomlaWorks
  • JoomlaWorks's Avatar
16 Dec 2020 22:40
Replied by JoomlaWorks on topic K2 image upload not working with PHP 7.4

K2 image upload not working with PHP 7.4

Category: English K2 Community

1. Hmmm, seems you are the first actually: www.joomlaworks.net/forum/search?query=summary_large_image&childforums=1 - where exactly did other users ask that change (out of curiosity)?

2. The issue is most likely in your language pack, it's not a K2 issue.
  • RomyS
  • RomyS's Avatar
16 Dec 2020 22:24 - 16 Dec 2020 22:27
Replied by RomyS on topic K2 image upload not working with PHP 7.4

K2 image upload not working with PHP 7.4

Category: English K2 Community

OK I will do it! Thanks

I ask you: is it possible that your add some changes for everyone?

1/ In View>Item>tmpl > Change the image tag "summary" of the Twitter card to: "summary_large_image"? I have read that other users also requested it.

2/ In Administrator, mod k2 stats > the time is incorrect, it is "K2_DATE_FORMAT" (broked the hours and minutes) but it will be: "K2_DATE_FORMAT_LC2"

These are two changes that I always make manually every time I update k2 in my sites! ;)
  • STEPHAN HERBY
  • STEPHAN HERBY's Avatar
28 Feb 2018 17:28 - 28 Feb 2018 17:31
Replied by STEPHAN HERBY on topic Twitter card & Facebook Open Graph to K2 articles

Twitter card & Facebook Open Graph to K2 articles

Category: English K2 Community

Hi Robert,
I have met this issue with Twitter Card. I had to hack one file in K2 to have Facebook AND Twitter Card propely display. Krikor will probably say (and with reason :) DO NEVER HACK A CORE FILE.

But I didn't find another solution. SO this is How I did the trick :

K2 - Parameters
  • Go to K2 component
  • Go to tab "Social"
  • Make sure "Enable Facebook meta tags" is on "Yes" and choose your Image size for "og:image" (I choose Medium for example).
Hack file
  • Find file : component -> com-k2 -> models -> item.php
  • Open it with a text editor (Coda for me i.e.)
  • Find line 565 :
    // Set Facebook meta data
  • After lines 593 :
    $document->setMetaData('og:description', strip_tags($document->getDescription()));
    Add lines :
  • // Hack - Set Twitter meta data if FB = 1 $document->setMetaData('twitter:card', 'summary_large_image'); $document->setMetaData('twitter:site', '@yourtwitteraccount'); $document->setMetaData('twitter:creator', '@yourtwitteraccount'); $document->setMetaData('twitter:url', $uri->toString()); $document->setMetaData('twitter:title', (K2_JVERSION == '15') ? htmlspecialchars($document->getTitle(), ENT_QUOTES, 'UTF-8') : $document->getTitle()); $document->setMetaData('twitter:description', strip_tags($document->getDescription())); $document->setMetaData('twitter:image', $image); }
  • Et voilà ! Twitter Card are now display in your header in each K2 item
Hope this help .
Don't forget to replace "@yourtwitteraccount" by your Twitter account of course.
Don't forget to make a backup of the file concerned BEFORE making your hack, in case you do something wrong.
Displaying 1 - 3 out of 3 results.

Powered by Kunena Forum