Contributors: claudiosanches, felipesantana
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y8HP99ZJ5Z59L
Tags: facebook, twitter, youtube, google, instagram, soundcloud, steam, counter, widget, shortcode
Requires at least: 3.8
Tested up to: 4.1
Stable tag: 3.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Display the counting data of Twitter, Facebook, Google+, YouTube, Instagram, Steam Community, SoundCloud posts and comments.
The Social Count Plus performs counting Twitter followers, Facebook fans, YouTube subscribers, Google+ page/profile followers, Instagram followers, Steam Community group members, SoundCloud follwers, number of posts and comments.
You can view this information by a widget (with account options models icons) or Shortcodes (to be used in posts and pages) or PHP functions in your theme.
The results of the counters are cached and new values ​​are checked only once a day. This cache can be wiped when published a new post.
The cache avoids not only that your blog be seeking new results every time a page is loaded, but also prevents collapse of services from Twitter and Facebook, if one of these services does not respond, the counter displays the last count it was successful.
Displays only the count in plain text:
- Twitter:
[scp code="twitter"]
- Facebook:
[scp code="facebook"]
- YouTube:
[scp code="youtube"]
- Google Plus:
[scp code="googleplus"]
- Instagram:
[scp code="instagram"]
- Steam:
[scp code="steam"]
- SoundCloud:
[scp code="soundcloud"]
- Posts:
[scp code="posts"]
- Comments:
[scp code="comments"]
Displays only the count in plain text:
- Twitter:
<?php echo get_scp_twitter(); ?>
- Facebook:
<?php echo get_scp_facebook(); ?>
- YouTube:
<?php echo get_scp_youtube(); ?>
- Google Plus:
<?php echo get_scp_googleplus(); ?>
- Instagram:
<?php echo get_scp_instagram(); ?>
- Steam:
<?php echo get_scp_steam(); ?>
- SoundCloud:
<?php echo get_scp_soundcloud(); ?>
- Posts:
<?php echo get_scp_posts(); ?>
- Comments:
<?php echo get_scp_comments(); ?>
Displays the widget with icons:
- Widget:
<?php echo get_scp_widget(); ?>
You can contribute to the source code in our GitHub page.
You can contribute to the source code in our GitHub page.
- Flat icons set, Instagram, SoundCloud and Steam icons by Felipe Santana
- Steam counter by Tadas Krivickas
- Instagram access token generator by Pedro Rogério
- Upload plugin files to your plugins folder, or install using WordPress built-in Add New Plugin installer;
- Activate the plugin;
- Navigate to Settings -> Social Count Plus and fill the plugin options.
- This plugin is released under a GPL license.
You probably have not been able to generate API keys as it should.
You can test the API key with the following link:
https://www.googleapis.com/plus/v1/people/+ClaudioSanches?key=API_KEY_HERE
The answer must contain the following line:
"circledByCount": XXX,
If you do not find anything related to circledByCount
means that your API key is incorrect, but do not worry, just follow the steps in this video to generate an valid API key:
https://www.youtube.com/watch?v=kj078EN_hpU
- Because you need to have a fan page with more than 15 people in it to run the Facebook API.
You can change using the filter social_count_plus_transient_time
.
Example:
function social_count_plus_custom_transient_time( $time ) {
return 43200; // 12 hours in seconds.
}
add_filter( 'social_count_plus_transient_time', 'social_count_plus_custom_transient_time' );
Yes, you can!
Select one of the options without icons in "WordPress admin > Social Count Plus > Design" and create your own CSS in your theme or anywhere you prefer.
The CSS classes you will need to use:
.social-count-plus .custom .count-twitter a {}
.social-count-plus .custom .count-facebook a {}
.social-count-plus .custom .count-youtube a {}
.social-count-plus .custom .count-googleplus a {}
.social-count-plus .custom .count-instagram a {}
.social-count-plus .custom .count-steam a {}
.social-count-plus .custom .count-soundcloud a {}
.social-count-plus .custom .count-posts a {}
.social-count-plus .custom .count-comments a {}
- Used only HTTPS for the social links.
- Removed rel nofollow and target blank for posts and comments.
- Refactored all code.
- Improved the admin option screens.
- Added System Status admin screen.
- Added option to display the widget without icons (this way it is simple for you to add your icons in your theme CSS).
- Added option to sort the icons order.
- Improved the counter styles.
- Changed the default options in plugin install.
- Added new Google Plus API.
- Added Google Plus API key option.
- Fixed the Google Plus counter, now is possible grab the pages and profiles followers count.
- Improved the Facebook counter.
- Improved the validation of data for all counters.
- Added a option to enter with you YouTube Channel URL.
- Added Swedish translation by Ramrod.
- Added option to insert
rel="nofollow"
in social URLs. - Added option to insert
target="_blank"
in social URLs.
- Added rel="nofollow" in social icons URLs.
- Fixed get_scp_instagram() function.
- Fixed get_scp_soundcloud() function.
- Added support to WordPress 3.8.
- Added fr_FR translation by Gilles Santacreu.
- Fixed SimpleXMLElement errors.
- Added Albanian translation by Lorenc.
- Added Russian translation by Elvisrk.
- Fixed the textdomain for new WordPress 3.7 standard.
- Fixed the icons padding.
- Fixed icons order.
- Added Intagram counter.
- Added Steam counter.
- Added SoundCloud counter.
- Added
social_count_plus_transient_time
filter. - Added flat icons.
- Added uninstall file.
- Added option to change the text color of the widget.
- Added Google Plus counter.
- Updated the Twitter API to 1.1 version.
- Added
social_count_plus_number_format
filter.
- Removed cleaning transients to save a post.
- Fixed a bug that was generated by adding an incorrect user the option of YouTube.
- Fixed styles.
- Fixed YouTube widget icon.
- Source code reformulation.
- Added YouTube counter.
- Improved performance with fewer options in the database.
- Added Brazilian Portuguese and English languages.
- Removed support for Feedburner since Google has disabled the API.
- Free version.
- Final configuration of the plugin.
- Initial release.
- Refactored all code.
- Improved the admin option screens.
- Added System Status admin screen.
- Added option to display the widget without icons (this way it is simple for you to add your icons in your theme CSS).
- Added option to sort the icons order.
Social Count Plus is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Social Count Plus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Social Count Plus. If not, see http://www.gnu.org/licenses/.