Hupso Share Buttons for Twitter, Facebook & Google+ - Version 3.9.12

Version Description

  • Option to hide share buttons in excerpts
Download this release

Release Info

Developer kasal
Plugin Icon 128x128 Hupso Share Buttons for Twitter, Facebook & Google+
Version 3.9.12
Comparing to
See all releases

Code changes from version 3.9.11 to 3.9.12

Files changed (2) hide show
  1. readme.txt +12 -1
  2. share-buttons-hupso.php +33 -5
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.hupso.com/
4
  Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, sexybookmarks, addtoany
5
  Requires at least: 2.8
6
  Tested up to: 3.5.1
7
- Stable tag: 3.9.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -172,6 +172,13 @@ Hide share image (from settings) and add this CSS to your style.css file:
172
 
173
  Then adjust the values so that it looks great with your theme.
174
 
 
 
 
 
 
 
 
175
  = How can I use counters under posts and share toolbar in sidebar? =
176
  You can use Hupso WP plugin for counters on top/bottom of every post and use raw HTML code for sidebar widget. Go to [Hupso Share Buttons homepage](http://www.hupso.com/share/) and generate HTML code for share buttons. In WP admin, go to Appearance->Widgets and create new text widget (drag and drop it to sidebar) and paste HTML code inside it.
177
 
@@ -235,6 +242,7 @@ Yes. Thay are free and will always be free. And you do not need to open any acco
235
  = Why is featured post image not used as thumbnail with Facebook on new posts? =
236
 
237
  You image should be at least 200px in both dimensions. This is a Facebook limitation. Please wait up to 24 hours for Facebook to fetch the new thumbnail. After that it should work.
 
238
 
239
  = Found a bug? Have a suggestion? =
240
 
@@ -257,6 +265,9 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
257
 
258
  == Changelog ==
259
 
 
 
 
260
  = 3.9.11 =
261
  * Removed option to show or hide share buttons in excerpts due to incompatibility with some themes (it will be added back in next version)
262
 
4
  Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, sexybookmarks, addtoany
5
  Requires at least: 2.8
6
  Tested up to: 3.5.1
7
+ Stable tag: 3.9.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
172
 
173
  Then adjust the values so that it looks great with your theme.
174
 
175
+ = Facebook like button is seen through my top navigation bar while other buttons are ok. How can fix it? =
176
+
177
+ Add this CSS to your style.css file:
178
+ `.fb_edge_widget_with_comment {
179
+ z-index: 0;
180
+ }`
181
+
182
  = How can I use counters under posts and share toolbar in sidebar? =
183
  You can use Hupso WP plugin for counters on top/bottom of every post and use raw HTML code for sidebar widget. Go to [Hupso Share Buttons homepage](http://www.hupso.com/share/) and generate HTML code for share buttons. In WP admin, go to Appearance->Widgets and create new text widget (drag and drop it to sidebar) and paste HTML code inside it.
184
 
242
  = Why is featured post image not used as thumbnail with Facebook on new posts? =
243
 
244
  You image should be at least 200px in both dimensions. This is a Facebook limitation. Please wait up to 24 hours for Facebook to fetch the new thumbnail. After that it should work.
245
+ Also check "og:image" meta tags on your site and use [Facebook Debugger](https://developers.facebook.com/tools/debug) to fix problems with Facebook images, titles and descriptions.
246
 
247
  = Found a bug? Have a suggestion? =
248
 
265
 
266
  == Changelog ==
267
 
268
+ = 3.9.12 =
269
+ * Option to hide share buttons in excerpts
270
+
271
  = 3.9.11 =
272
  * Removed option to show or hide share buttons in excerpts due to incompatibility with some themes (it will be added back in next version)
273
 
share-buttons-hupso.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Hupso Share Buttons for Twitter, Facebook & Google+
4
  Plugin URI: http://www.hupso.com/share/
5
  Description: Add simple social sharing buttons to your articles. Your visitors will be able to easily share your content on the most popular social networks: Twitter, Facebook, Google Plus, Linkedin, StumbleUpon, Digg, Reddit, Bebo and Delicous. These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
6
- Version: 3.9.11
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -11,9 +11,11 @@ Text Domain: share_buttons_hupso
11
  Domain Path: /languages
12
  */
13
 
 
 
 
14
  $hupso_dev = '';
15
  $hupso_state = 'normal';
16
-
17
  $HUPSO_SHOW = true;
18
 
19
  $hupso_plugin_url = plugins_url() . '/hupso-share-buttons-for-twitter-facebook-google';
@@ -121,6 +123,7 @@ function hupso_plugin_uninstall() {
121
  delete_option( 'hupso_show_frontpage' );
122
  delete_option( 'hupso_show_category' );
123
  delete_option( 'hupso_show_search' );
 
124
  delete_option( 'hupso_twitter_tweet' );
125
  delete_option( 'hupso_facebook_like' );
126
  delete_option( 'hupso_facebook_send' );
@@ -161,12 +164,17 @@ function hupso_plugin_uninstall() {
161
  }
162
 
163
  function hupso_plugin_activation() {
164
-
165
  /* Fix for bug in version 3.0 */
166
  $size = get_option( 'hupso_button_size', '');
167
  if ( ($size == 'share_button') or ($size == 'share_toolbar') or ($size == 'counters') ) {
168
- update_option( 'hupso_button_size', 'button100x23');
169
  }
 
 
 
 
 
170
  }
171
 
172
  function hupso_admin_menu() {
@@ -241,6 +249,7 @@ function hupso_admin_settings_show() {
241
  plugins_url('/js/create_button.js', __FILE__ )
242
  );
243
 
 
244
 
245
  $hupso_lang_code = __('en_US', 'share_buttons_hupso');
246
  $hupso_language = __('English', 'share_buttons_hupso');
@@ -637,6 +646,7 @@ function hupso_admin_settings_show() {
637
  $hupso_show_pages_checked = '';
638
  $hupso_show_frontpage_checked = '';
639
  $hupso_show_category_checked = '';
 
640
 
641
  /* posts */
642
  $hupso_show_posts = get_option( 'hupso_show_posts', '1' );
@@ -666,6 +676,13 @@ function hupso_admin_settings_show() {
666
  else
667
  $hupso_show_category_checked = '';
668
 
 
 
 
 
 
 
 
669
  /* search pages */
670
  $hupso_show_search = get_option( 'hupso_show_search', '1');
671
  if ( $hupso_show_search == '1' )
@@ -687,6 +704,7 @@ function hupso_admin_settings_show() {
687
  <input type="checkbox" name="hupso_show_pages" value="1" <?php echo $hupso_show_pages_checked; ?> /> <?php _e('Pages', 'share_buttons_hupso'); ?><br/>
688
  <input type="checkbox" name="hupso_show_frontpage" value="1" <?php echo $hupso_show_frontpage_checked; ?> /> <?php _e('Front page', 'share_buttons_hupso'); ?><br/>
689
  <input type="checkbox" name="hupso_show_category" value="1" <?php echo $hupso_show_category_checked; ?> /> <?php _e('Archive pages (categories, tags, dates, authors)', 'share_buttons_hupso'); ?><br/>
 
690
  <input type="checkbox" name="hupso_show_search" value="1" <?php echo $hupso_show_search_checked; ?> /> <?php _e('Search pages', 'share_buttons_hupso'); ?><br/>
691
  <input type="checkbox" name="hupso_password_protected" value="1" <?php echo $hupso_password_protected_checked; ?> /> <?php _e('Password protected posts', 'share_buttons_hupso'); ?><br/>
692
 
@@ -1046,6 +1064,9 @@ function hupso_admin_settings_save() {
1046
  $hupso_show_category = @$_POST[ 'hupso_show_category' ];
1047
  update_option( 'hupso_show_category', $hupso_show_category );
1048
 
 
 
 
1049
  $hupso_show_search = @$_POST[ 'hupso_show_search' ];
1050
  update_option( 'hupso_show_search', $hupso_show_search );
1051
 
@@ -1156,7 +1177,14 @@ function hupso_the_widget( $content ) {
1156
  function hupso_the_content_normal( $content ) {
1157
  global $hupso_state;
1158
  $hupso_state = 'normal';
1159
- return hupso_the_content( $content );
 
 
 
 
 
 
 
1160
  }
1161
 
1162
  function hupso_the_content( $content ) {
3
  Plugin Name: Hupso Share Buttons for Twitter, Facebook & Google+
4
  Plugin URI: http://www.hupso.com/share/
5
  Description: Add simple social sharing buttons to your articles. Your visitors will be able to easily share your content on the most popular social networks: Twitter, Facebook, Google Plus, Linkedin, StumbleUpon, Digg, Reddit, Bebo and Delicous. These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
6
+ Version: 3.9.12
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  Domain Path: /languages
12
  */
13
 
14
+ global $HUPSO_VERSION;
15
+ $HUPSO_VERSION = '3.9.12';
16
+
17
  $hupso_dev = '';
18
  $hupso_state = 'normal';
 
19
  $HUPSO_SHOW = true;
20
 
21
  $hupso_plugin_url = plugins_url() . '/hupso-share-buttons-for-twitter-facebook-google';
123
  delete_option( 'hupso_show_frontpage' );
124
  delete_option( 'hupso_show_category' );
125
  delete_option( 'hupso_show_search' );
126
+ delete_option( 'hupso_show_excerpts' );
127
  delete_option( 'hupso_twitter_tweet' );
128
  delete_option( 'hupso_facebook_like' );
129
  delete_option( 'hupso_facebook_send' );
164
  }
165
 
166
  function hupso_plugin_activation() {
167
+
168
  /* Fix for bug in version 3.0 */
169
  $size = get_option( 'hupso_button_size', '');
170
  if ( ($size == 'share_button') or ($size == 'share_toolbar') or ($size == 'counters') ) {
171
+ @update_option( 'hupso_button_size', 'button100x23');
172
  }
173
+
174
+ /* Save plugin version */
175
+ global $HUPSO_VERSION;
176
+ @update_option( 'hupso_version', $HUPSO_VERSION );
177
+
178
  }
179
 
180
  function hupso_admin_menu() {
249
  plugins_url('/js/create_button.js', __FILE__ )
250
  );
251
 
252
+
253
 
254
  $hupso_lang_code = __('en_US', 'share_buttons_hupso');
255
  $hupso_language = __('English', 'share_buttons_hupso');
646
  $hupso_show_pages_checked = '';
647
  $hupso_show_frontpage_checked = '';
648
  $hupso_show_category_checked = '';
649
+ $hupso_show_excerpts_checked = '';
650
 
651
  /* posts */
652
  $hupso_show_posts = get_option( 'hupso_show_posts', '1' );
676
  else
677
  $hupso_show_category_checked = '';
678
 
679
+ /* excerpts */
680
+ $hupso_show_excerpts = get_option( 'hupso_show_excerpts', '1' );
681
+ if ( $hupso_show_excerpts == 1 )
682
+ $hupso_show_excerpts_checked = $checked;
683
+ else
684
+ $hupso_show_excerpts_checked = '';
685
+
686
  /* search pages */
687
  $hupso_show_search = get_option( 'hupso_show_search', '1');
688
  if ( $hupso_show_search == '1' )
704
  <input type="checkbox" name="hupso_show_pages" value="1" <?php echo $hupso_show_pages_checked; ?> /> <?php _e('Pages', 'share_buttons_hupso'); ?><br/>
705
  <input type="checkbox" name="hupso_show_frontpage" value="1" <?php echo $hupso_show_frontpage_checked; ?> /> <?php _e('Front page', 'share_buttons_hupso'); ?><br/>
706
  <input type="checkbox" name="hupso_show_category" value="1" <?php echo $hupso_show_category_checked; ?> /> <?php _e('Archive pages (categories, tags, dates, authors)', 'share_buttons_hupso'); ?><br/>
707
+ <input type="checkbox" name="hupso_show_excerpts" value="1" <?php echo $hupso_show_excerpts_checked; ?> /> <?php _e('Excerpts', 'share_buttons_hupso'); ?><br/>
708
  <input type="checkbox" name="hupso_show_search" value="1" <?php echo $hupso_show_search_checked; ?> /> <?php _e('Search pages', 'share_buttons_hupso'); ?><br/>
709
  <input type="checkbox" name="hupso_password_protected" value="1" <?php echo $hupso_password_protected_checked; ?> /> <?php _e('Password protected posts', 'share_buttons_hupso'); ?><br/>
710
 
1064
  $hupso_show_category = @$_POST[ 'hupso_show_category' ];
1065
  update_option( 'hupso_show_category', $hupso_show_category );
1066
 
1067
+ $hupso_show_excerpts = @$_POST[ 'hupso_show_excerpts' ];
1068
+ update_option( 'hupso_show_excerpts', $hupso_show_excerpts );
1069
+
1070
  $hupso_show_search = @$_POST[ 'hupso_show_search' ];
1071
  update_option( 'hupso_show_search', $hupso_show_search );
1072
 
1177
  function hupso_the_content_normal( $content ) {
1178
  global $hupso_state;
1179
  $hupso_state = 'normal';
1180
+
1181
+ $hupso_show_excerpts = get_option( 'hupso_show_excerpts' , '1' );
1182
+ if ( $hupso_show_excerpts == 1 ) {
1183
+ return hupso_the_content ( $content );
1184
+ }
1185
+ else {
1186
+ return $content;
1187
+ }
1188
  }
1189
 
1190
  function hupso_the_content( $content ) {