'Advanced Twitter Followers Widget for Wordpress.Advanced Twitter Followers Widget is an advanced Wordpress Twitter Followers Display widget which allow to customized in lots of way. You can add or remove options as well change color of background. No of Twitter followers to display and lots of. So Hope you will enjoy our this free wordpress widget :)', 'name' => 'Advanced Twitter Followers Widget' ); parent::__construct('advancedTwitterFollowersWidget','',$params); } /** * Register and enqueue style sheet. */ public function register_plugin_styles() { wp_register_style( 'advancedTwitterFollowersWidget', plugins_url( 'assets/style.css' , __FILE__ ) ); wp_enqueue_style( 'advancedTwitterFollowersWidget' ); } public function form($instance) { extract($instance); ?>
Basic Configuration

" />

" />

" />

" />

Twitter App Configuration(Must Fill This Correctly)**

" />

" />

" />

" />

Advanced Configuration

" />

" />

" />

" />

" />

" />

" />

" />

" />

trim($accessToken), 'oauth_access_token_secret' => trim($accessTokenSecret), 'consumer_key' => trim($consumerKey), 'consumer_secret' => trim($consumerSecret) ); $urlUserInformation = "https://api.twitter.com/1.1/users/show.json"; $url = "https://api.twitter.com/1.1/followers/list.json"; $requestMethod = "GET"; $getFollowers = "?cursor=-1&screen_name=$tUsername&skip_status=true&include_user_entities=false"; $twitter = new TwitterAPIExchange($settings); $stringUserInfo = json_decode($twitter->setGetfield($getFollowers) ->buildOauth($urlUserInformation, $requestMethod) ->performRequest(),$assoc = TRUE); $string = json_decode($twitter->setGetfield($getFollowers) ->buildOauth($url, $requestMethod) ->performRequest(),$assoc = TRUE); $followers = $stringUserInfo['followers_count']; $data = ""; $data .= "
"; if($header == "true"){ $data .= "
$headerText
"; } $userScreenName = $stringUserInfo['screen_name']; $userProfileImage = $stringUserInfo['profile_image_url']; $userNameInfo = $stringUserInfo['name']; $data .= "

$followers peoples erare following $userScreenName @twitter

    "; foreach($string as $items){ $length = count($items); if($length<$connections){ $t = $length;} else{$t = $connections+1; } for($i=0;$i<$t-1;$i++){ $followImg = $items[$i]['profile_image_url']; $followURL = $items[$i]['screen_name']; $followTitle = $items[$i]['name']; $data .= "
  • "; } } $data .= "
"; if($footer=="true"){ $data .= "

follow us on twitter

"; } $data .= "
"; $data .= "
how much is my business worth
"; echo $before_widget; echo $before_title . $title . $after_title; if($consumerKey == "" && $consumerSecret == "" && $accessToken == "" && $accessTokenSecret == ""){ echo "Please check documentation. You must have to fill all require fields of Twitter Configuration"; }else{ echo $data;} echo $after_widget; } } //color picker module codies function sparx_sample_load_color_picker_script() { wp_enqueue_script('farbtastic'); } function sparx_sample_load_color_picker_style() { wp_enqueue_style('farbtastic'); } add_action('admin_print_scripts-widgets.php', 'sparx_sample_load_color_picker_script'); add_action('admin_print_styles-widgets.php', 'sparx_sample_load_color_picker_style'); //start registering the extension add_action('widgets_init','register_sparx_advancedTwitterFollowersWidget'); function register_sparx_advancedTwitterFollowersWidget(){ register_widget('advancedTwitterFollowersWidget'); }