loading twitter widget can be very slow and doesn't let you customize it's styling that's why I've created this extension to customize your twitter widget using Tweet Master Jquery
Requirements ¶
Yii 1.1 or above
Usage ¶
extract the files under extension folder
<?php $this->widget('ext.tweet-master.TweetMaster',array(
'username'=>'twitter-username',
//'cssFile'=>Yii::app()->theme->baseUrl.'/css/tweet-master.css', // customize your twitter css file
'options'=>array(
'avatar_size'=>32,
'template'=>'{avatar}{join} {text}' // optional field
)
)); ?>
check this page to know more about other "options" http://tweet.seaofclouds.com/
Compatibility with the new API?
Are you able to update the code so that it is using the new API instead? I think this is a great plugin.
Here's mine
Just wanted to let you guys know that there's a version I created that is compatible with Twitter API 1.1.
https://github.com/rclai/yii-new-tweet
Uff!
Thanks a lot rclai89.
For remember, the POST params in getTwitterJSON function are:
array ( 'YII_CSRF_TOKEN' => '' 'request' => array ( 'host' => 'api.twitter.com' 'url' => '/1.1/statuses/user_timeline.json' 'parameters' => array ( 'include_entities' => '1' 'screen_name' => array ( 0 => 'username' ) 'page' => '1' 'count' => '3' 'include_rts' => '1' ) ) )
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.