Yii 1.1: tweet-master

customize your twitter widget using Tweet Master Jquery
5 followers

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/

Resources

Total 3 comments

#13733 report it
Clem at 2013/06/20 08:17am
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'
        )
    )
)
#13632 report it
rclai89 at 2013/06/12 05:30pm
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

#12693 report it
rclai89 at 2013/04/05 02:44pm
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.

Leave a comment

Please to leave your comment.

Create extension