Yii 1.1: wsocialbutton

Social plugins button (Google+, Twitter, Facebook) for Yii Framework

This is a simple widget that show the google+, twitter, facebook buttons on your page.


Yii 1.0 or above


Copy the WSocialButton.php to your extensions directory.

Use this code in the view page where you want to display the buttons:

<?php $this->widget('application.extensions.WSocialButton', array('style'=>'box'));?>

Total 10 comments

#14861 report it
rei at 2013/09/16 09:54am
Only Twitter button appears in the page

I tried this extension but it only shows Twitter button in the page. Facebook and Google+ buttons are not visible. Is there anything else that needs to be configured beside putting the code above?

#11655 report it
Manoj M at 2013/01/25 04:12am
Alter Width

Hi is there any way to alter the width of the table.

#11517 report it
Manoj M at 2013/01/18 04:38am

I am using this for blog posting, but the error is that when i post the first blog it posts successfully... when i like and post the second blog the blog title is changed to default like "My Web Application" instead of my blog title....

#7537 report it
kamankily at 2012/03/28 12:04pm

quick and easy to undestand, very cool extension.

#5081 report it
ianaré at 2011/09/13 12:36pm
app id

You should make the Facebook app ID a parameter, as it is you are always sending the same one : 220227991326675

This has potential security implications.

#4586 report it
Harry Tang at 2011/07/22 05:50am
Some fix

V1.1 Fix: the scripts are inserted at the end of the body section

#4558 report it
bonnie at 2011/07/20 10:58am

I think it works out of the box. Because you said place it where you want to display the button.

#4557 report it
bonnie at 2011/07/20 10:43am
Thanks I have been looking for this

How can one add it to a blog or article posts. Like the way they do in wordpress or blogger. Thanks

#4551 report it
Newerton at 2011/07/19 06:32pm

Ótima extensão, de grande utilidade :) +1

#4549 report it
someone at 2011/07/19 12:20pm

Thx for nice extension! Very useful )

Leave a comment

Please to leave your comment.

Create extension