Krajee

Twitter Embedded Timeline

Thankful to Krajee! BUY A COFFEEor to get more out of us.
An embedded timeline provides an easy way to embed multiple Tweets on your website in a compact, single-column view. Display the latest Tweets from a single Twitter account, multiple accounts, or tap into the worldwide conversation around a topic grouped in a search result. Refer embedded timeline documentation for details. You can also customize the timeline widget appearance as per your needs. There are four types of Twitter timelines available:

Tip

Not seeing the updated content on this page! Hard refresh your browser to clean cache for this page (e.g. SHIFT-F5 on Windows Chrome)

User Timeline


Search Timeline


use kartik\social\TwitterPlugin;

/**
 * If any parameters are not passed, the widget will use settings from the 
 * social module wherever possible. For example `screenname` will
 * be referred from the module settings for the example below.
 */
// User Timeline
echo TwitterPlugin::widget([
    'type' => TwitterPlugin::TIMELINE, 
    // 'screenName' => '<picked-from-module-or-can-be-set-here>',
    'settings' => ['widget-id' => '<your-widget-id>'],
    'options' => ['height'=>'350', 'width'=>'500']
]);

// Search Timeline
echo TwitterPlugin::widget([
    'type' => TwitterPlugin::TIMELINE, 
    'settings' => ['widget-id' => '<your-widget-id>'],
    'timelineConfig' => ['search' => '#bootstrap'],
    'options' => ['height'=>'350', 'width'=>'500']
]);

Note

You can now visit the Krajee Webtips Q & A forum for searching OR asking questions OR helping programmers with answers on these extensions and plugins. For asking a question click here. Select the appropriate question category (i.e. Krajee Plugins) and choose this current page plugin in the question related to field.

The comments and discussion section below are intended for generic discussions or feedback for this plugin. Developers may not be able to search or lookup here specific questions or tips on usage for this plugin.

 
visitors to Krajee Yii2 Demos since 22-May-2017