Announcement

  •  » Extensions
  •  » Social Buttons, some questions

#1 2014-07-13 12:08:02

matthys
Member
2014-04-02
70

Social Buttons, some questions

Hello everyone,

I am currently testing the Social Buttons plugin and have some questions/requests regarding it;

1) Would it be possible to use custom buttons, as I Like to use the square icons. Maybe it could be configured from the admin page at the next release? I now have overwritten the default icons with the ones I wanted to use.

2) I notice a space in the url created for Facebook. Not sure if it should be there (think not). I use the "Light mode" option and get this link:

Code:

http://www.facebook.com/sharer.php?s=100&p[url]=http%3A%2F%2Fwww.vanwageningen.net%2Findex%2Fcategories&p[title]=Home+%7C+Matthijs+van+Wageningen%27s+Photo+Gallery%20%20&p[summary]=%28from+%3Ca+href%3D%22http%3A%2F%2Fwww.vanwageningen.net%2Findex%2Fcategories%22%3EMatthijs+van+Wageningen%27s+Photo+Gallery%3C%2Fa%3E%29

Notice the space before summary "Photo+Gallery%20%20&p[summary]"?

PS .. the website is online but still a bit of "work in progress"...

Piwigo version: 2.6.3
Operating system: Linux
PHP: 5.5.9-1ubuntu4.3 [2014-07-13 12:01:18]
MySQL: 5.5.37-0ubuntu0.14.04.1-log [2014-07-13 12:01:18]
Graphics Library: External ImageMagick 6.7.7-10

Offline

 

#2 2014-07-20 12:05:28

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: Social Buttons, some questions

Hi

1) would be cool, but also a little hell if I want people to upload custom images

2) certainly you added a space in your gallery name (Configuration->Options)
not important anyway

Offline

 

#3 2014-07-20 12:55:18

matthys
Member
2014-04-02
70

Re: Social Buttons, some questions

Bit strange .. if I move all to the if ($SOCIALBUTT.basename=='picture') statement .. it works fine;

Not working:
{if $SOCIALBUTT.light}
  <a title="Share on Facebook" href="http://www.facebook.com/sharer.php?s=100&p[url]={$SOCIALBUTT.share_url|urlencode}&p[title]={$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|urlencode}
  {if $SOCIALBUTT.basename=='picture'}
    &p[summary]={$COMMENT_IMG|cat:$SOCIALBUTT.copyright|urlencode}&p[images][0]={$SOCIALBUTT.source|urlencode}"
  {else}
    &p[summary]={$CONTENT_DESCRIPTION|cat:$SOCIALBUTT.copyright|urlencode}"
  {/if}

Working;
{if $SOCIALBUTT.light}
  {if $SOCIALBUTT.basename=='picture'}
    <a title="Share on Facebook" href="http://www.facebook.com/sharer.php?s=100&p[url]={$SOCIALBUTT.share_url|urlencode}&p[title]={$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|urlencode}&p[summary]={$COMMENT_IMG|cat:$SOCIALBUTT.copyright|urlencode}&p[images][0]={$SOCIALBUTT.source|urlencode}"
  {else}
    <a title="Share on Facebook" href="http://www.facebook.com/sharer.php?s=100&p[url]={$SOCIALBUTT.share_url|urlencode}&p[title]={$PAGE_TITLE|cat:' | '|cat:$GALLERY_TITLE|urlencode}&p[summary]={$CONTENT_DESCRIPTION|cat:$SOCIALBUTT.copyright|urlencode}"
  {/if}

I now got this correct link;

Code:

http://www.facebook.com/sharer.php?s=100&p[url]=http%3A%2F%2Fwww.vanwageningen.net%2Findex%2Fcategories&p[title]=Home+%7C+Matthijs+van+Wageningen%27s+Photo+Gallery&p[summary]=%28from+%3Ca+href%3D%22http%3A%2F%2Fwww.vanwageningen.net%2Findex%2Fcategories%22%3EMatthijs+van+Wageningen%27s+Photo+Gallery%3C%2Fa%3E%29

Offline

 
  •  » Extensions
  •  » Social Buttons, some questions

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact