All top social media share buttons like - facebook, twitter, linkedin, googleplus and pinterest.
Requirements ¶
Tested with Yii 1.1.14 & Latest Version
Install ¶
- Download the latest release package
- Unpack it in /protected/extensions/ folder
Usage ¶
Paste the code into your main.php page or also you can use this code as per your requirement.
$this->widget('application.extensions.SocialShareButton.SocialShareButton', array(
'style'=>'horizontal',
'networks' => array('facebook','googleplus','linkedin','twitter'),
'data_via'=>'', //twitter username (for twitter only, if exists else leave empty)
));
What's New? ¶
- Added Pinterest (Pin It button) Download social-share-button v1.0.1
$this->widget('application.extensions.SocialShareButton.SocialShareButton', array(
'style'=>'horizontal',
'networks' => array('facebook','googleplus','linkedin','twitter','pinterest'),
'data_via'=>'', //twitter username (for twitter only, if exists else leave empty)
));
Download ¶
https://github.com/rohitsuthar/SocialShareButton
Usual parameters to be adjusted: ¶
- style: share button styles (string: vertical or horizontal).
- social media: social network which you must have (facebook, twitter, googleplus, linkedin.);
- data_via: You can specify your twitter username (string: rohisuthar).
More Extension ¶
Visit - www.yiiexpert.github.io
Good One
thanx buddy for this nice extension ... it is what i required
RE #18063
@noorkhan
your welcome man... thanks for using this :)..
Nice
Just what I needed at this moment
RE #18278
@dragan.zivkovic
thanks for using this :)..
Just wanted to say thank you
very useful and straightforward.. Awesome!
RE #18832
thanks @redDevil...
Change Image to share
Can you change the picture to share? Is there any way to customize this?
RE #18986
@fred_12 Which picture you want to change... Content picture or other ones??
Solved
The image shows that the share facebook .
But already solved it in the shared page should add the following tag:
<link href = "image_url" rel = "image_src" />
And they can validate the image of their shared page here:
https://developers.facebook.com/tools/debug/
Thanks for the extension, very easy to implement.
RE #18998
Good one!!
@fred_12 Thanks for using this :)...
Nice
Very nice, easy to implement. Thanks
RE #19465
thanks @the.shred buddy :)..
Facebook link with added margin
Hi there,
Good extension!! Very easy to use. I do have a small problem. The facebook link has margin/padding, in which places the link a bit lower than the other ones.
You can see it on this link http://capoeiravillage.com/. Any help will much appreciated.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.