Changeset 1572193
- Timestamp:
- 01/11/2017 12:09:31 AM (9 years ago)
- Location:
- db-share-count
- Files:
-
- 2 added
- 2 edited
- 6 copied
-
tags/0.1.1 (copied) (copied from db-share-count/trunk)
-
tags/0.1.1/changelog.txt (added)
-
tags/0.1.1/db_share_count.php (copied) (copied from db-share-count/trunk/db_share_count.php)
-
tags/0.1.1/dbsc_admin_options.php (copied) (copied from db-share-count/trunk/dbsc_admin_options.php)
-
tags/0.1.1/incl (copied) (copied from db-share-count/trunk/incl)
-
tags/0.1.1/js (copied) (copied from db-share-count/trunk/js)
-
tags/0.1.1/readme.txt (copied) (copied from db-share-count/trunk/readme.txt)
-
trunk/changelog.txt (added)
-
trunk/db_share_count.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
db-share-count/trunk/db_share_count.php
r1572176 r1572193 4 4 Plugin URI: https://github.com/Crasily/db_share_count 5 5 Description: Social share buttons with count 6 Version: 0.1. 16 Version: 0.1.2 7 7 Author: Nathan Webb 8 8 License: GPLv2 or later … … 99 99 $rawdata = file_get_contents($countUrl); 100 100 $data = json_decode($rawdata, true); 101 if( array_key_exists("share", $data)) {101 if(is_array($data) && array_key_exists("share", $data)) { 102 102 $newCount = $data["share"]["share_count"]; 103 103 } else { … … 114 114 $dTwitter = file_get_contents($urlTwitter); 115 115 $data = json_decode($dTwitter, true); 116 if( array_key_exists("count", $data)) {116 if(is_array($data) && array_key_exists("count", $data)) { 117 117 $newCount = $data["count"]; 118 118 } else { … … 142 142 $dStumble = file_get_contents($urlStumble); 143 143 $data = json_decode($dStumble, true); 144 if( array_key_exists("count", $data) and145 array_key_exists("views", $data["count"])) {144 if(is_array($data) && array_key_exists("count", $data) && 145 is_array($data["count"]) && array_key_exists("views", $data["count"])) { 146 146 $newCount = $data["count"]["views"]; 147 147 } else { … … 157 157 $dPinterest = preg_replace("/receiveCount\(({.*})\)$/", "$1", $dPinterest); 158 158 $data = json_decode($dPinterest, true); 159 if( array_key_exists("count", $data)) {159 if(is_array($data) && array_key_exists("count", $data)) { 160 160 $newCount = $data["count"]; 161 161 } else { -
db-share-count/trunk/readme.txt
r1572168 r1572193 11 11 12 12 == Description == 13 DB Social Share count has been designed to be a simple and effective social share counter. We needed a solution when migrating to https, as the old share counts weren \'t visible anymore. DB Social Share count solved this problem.13 DB Social Share count has been designed to be a simple and effective social share counter. We needed a solution when migrating to https, as the old share counts weren't visible anymore. DB Social Share count solved this problem. 14 14 15 15 [See it in action at Go Science Girls](https://gosciencegirls.com/dirt-backyard-science-experiment/) … … 19 19 * add share buttons to your site 20 20 * display your social share count on each post 21 * only show share counts above some amount - so small shares don \'t look so bad!21 * only show share counts above some amount - so small shares don't look so bad! 22 22 23 23 = Features = … … 35 35 Via the Wordpress Admin page: 36 36 37 1. Navigate to \"Plugins\",38 1. Click on \"Add New\"39 1. Search for \"db share count\"40 1. Click on \"Install Now\"41 1. Click on \"Activate Plugin\"37 1. Navigate to "Plugins", 38 1. Click on "Add New" 39 1. Search for "db share count" 40 1. Click on "Install Now" 41 1. Click on "Activate Plugin" 42 42 43 43 To install manually: 44 44 45 45 1. Download the db_share_count.zip from [github](https://github.com/Crasily/db_share_count/archive/master.zip). 46 1. Extract the archive and upload the whole directory to your \"/wp-content/plugins/\" directory46 1. Extract the archive and upload the whole directory to your "/wp-content/plugins/" directory 47 47 1. Go to the Wordpress admin page 48 1. Go to \"Plugins\" and scroll down until you can see DB Share Count48 1. Go to "Plugins" and scroll down until you can see DB Share Count 49 49 50 50 Note for Twitter: … … 68 68 69 69 == Changelog == 70 = 0.1.2 = 71 * Fixed readme.txt incorrect shortcode 72 * Added extra error checking for bad responses 73 70 74 = 0.1.1 = 71 75 * Fixed facebook API 72 73 = 0.1.0 =74 * Initial release.
Note: See TracChangeset
for help on using the changeset viewer.