fritzmg / contao-sharebuttons

Simple extension to provide share buttons as a module and content element in Contao
GNU Lesser General Public License v3.0
18 stars 2 forks source link

Pinterestbutton doesn´t show #19

Closed StudioV19 closed 9 years ago

StudioV19 commented 9 years ago

Tried to get share buttons for Facebook, Twitter, Google+ and Pinterest. All shows but NOT Pinterest. I checked the html and there are only 3 list elements. I tried other kombinations and only to pick Pinterest but it seems like all buttons are working but not Pinterest. I checked out the pictures used for the extension but a logo for Pinterest is there. Is there a bug in the extensions?

fritzmg commented 9 years ago

There is an undocumented requirement for the Pinterest button: you must provide an image. If you are using the sharebuttons in your news template via <?php echo $this->sharebuttons; ?> the news teaser image is used automatically (or at least it should be).

If you want to provide an image on any other regular page, you can either:

I'll update the README soon :)

StudioV19 commented 9 years ago

OK, thank you.

On 3 jun 2015, at 13:30, fritzmg notifications@github.com wrote:

There is an undocumented requirement for the Pinterest button: you must provide an image. If you are using the sharebuttons in your news template via <?php echo $this->sharebuttons; ?> the news teaser image is used automatically (or at least it should be).

If you want to provide an image on any other regular page, you can either:

Use the social_images extension (available in the ER2 https://contao.org/de/extension-list/view/social_images.en.html and via Composer https://packagist.org/packages/codefog/contao-social_images) - the pinterest sharebutton will then use the (first) social image defined for the current page automatically or insert an absolute URL to an image into $GLOBALS['SOCIAL_IMAGES'][0] yourself in a template or some other script before the sharebuttons are generated — Reply to this email directly or view it on GitHub https://github.com/fritzmg/contao-sharebuttons/issues/19#issuecomment-108317152.

fritzmg commented 9 years ago

Documentation added in c813abe387f957f44d6774319af55f696f92ea46