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

Version Description

  • Facebook comment box is now always visible
  • Fixed potential interference with Nextgen Gallery plugin (while working in admin)
  • Added Turkish "Share" image
Download this release

Release Info

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

Code changes from version 3.9 to 3.9.1

Files changed (3) hide show
  1. readme.txt +9 -4
  2. share-buttons-hupso.php +23 -13
  3. style.css +3 -0
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.hupso.com/
4
  Tags: twitter, facebook, google+, social, sharing, stumbleupon, addthis, sharethis, sexybookmarks, addtoany, lockerz, shareaholic
5
  Requires at least: 2.8
6
  Tested up to: 3.5.1
7
- Stable tag: 3.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,7 +12,7 @@ Help visitors share your posts on popular social networks: Twitter, Facebook, Go
12
 
13
  == Description ==
14
 
15
- 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, Pinterest, StumbleUpon, Digg, Reddit, Bebo and Delicous.
16
 
17
  These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
18
 
@@ -130,7 +130,7 @@ Yes. Thay are free and will always be free. And you do not need to open any acco
130
 
131
  = Why is featured post image not used as thumbnail with Facebook on new posts? =
132
 
133
- Please wait up to 24 hours for Facebook to fetch the new thumbnail. After that it should work.
134
 
135
  = Found a bug? Have a suggestion? =
136
 
@@ -139,7 +139,6 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
139
 
140
  == Screenshots ==
141
 
142
-
143
  1. Share Toolbar and Counters on the same page (demo)
144
  2. Counters (Twitter Tweet, Facebook Like, Google +1, Linkedin Share)
145
  3. Share Toolbar (big)
@@ -153,6 +152,12 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
153
 
154
  == Changelog ==
155
 
 
 
 
 
 
 
156
  = 3.9 =
157
  * Pinterest support (Pin it button)
158
  * Option to display custom Share image from URL
4
  Tags: twitter, facebook, google+, social, sharing, stumbleupon, addthis, sharethis, sexybookmarks, addtoany, lockerz, shareaholic
5
  Requires at least: 2.8
6
  Tested up to: 3.5.1
7
+ Stable tag: 3.9.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ Add simple social share 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, Pinterest, StumbleUpon, Digg, Reddit, Bebo and Delicous.
16
 
17
  These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
18
 
130
 
131
  = Why is featured post image not used as thumbnail with Facebook on new posts? =
132
 
133
+ 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.
134
 
135
  = Found a bug? Have a suggestion? =
136
 
139
 
140
  == Screenshots ==
141
 
 
142
  1. Share Toolbar and Counters on the same page (demo)
143
  2. Counters (Twitter Tweet, Facebook Like, Google +1, Linkedin Share)
144
  3. Share Toolbar (big)
152
 
153
  == Changelog ==
154
 
155
+
156
+ = 3.9.1 =
157
+ * Facebook comment box is now always visible
158
+ * Fixed potential interference with Nextgen Gallery plugin (while working in admin)
159
+ * Added Turkish "Share" image
160
+
161
  = 3.9 =
162
  * Pinterest support (Pin it button)
163
  * Option to display custom Share image from URL
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
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -28,7 +28,6 @@ if ( is_admin() ) {
28
  add_action('admin_menu', 'hupso_admin_menu');
29
  }
30
 
31
- add_action( 'admin_head', 'hupso_admin_head' );
32
  add_action( 'wp_head', 'hupso_set_facebook_thumbnail', 1 );
33
 
34
  $hupso_all_services = array(
@@ -47,6 +46,16 @@ if ( $hupso_widget_text == '1' ) {
47
  add_filter('widget_text', 'do_shortcode');
48
  }
49
 
 
 
 
 
 
 
 
 
 
 
50
  function hupso_widget_init() {
51
  include_once(plugin_dir_path( __FILE__ ) . '/share-buttons-hupso-widget.php');
52
  register_widget('Hupso_Widget');
@@ -92,6 +101,7 @@ function hupso_plugin_uninstall() {
92
  delete_option( 'hupso_twitter' );
93
  delete_option( 'hupso_facebook' );
94
  delete_option( 'hupso_googleplus' );
 
95
  delete_option( 'hupso_linkedin' );
96
  delete_option( 'hupso_stumbleupon' );
97
  delete_option( 'hupso_digg' );
@@ -106,7 +116,8 @@ function hupso_plugin_uninstall() {
106
  delete_option( 'hupso_widget_text' );
107
  delete_option( 'hupso_password_protected' );
108
  delete_option( 'hupso_page_url' );
109
- delete_option( 'hupso_page_title' );
 
110
  }
111
 
112
  function hupso_plugin_activation() {
@@ -122,14 +133,6 @@ function hupso_admin_menu() {
122
  add_options_page('Hupso Share Buttons Settings', 'Hupso Share Buttons', 'manage_options', __FILE__, 'hupso_admin_settings_show', '', 6);
123
  }
124
 
125
- function hupso_admin_head() {
126
- if ( is_admin() ) {
127
- wp_enqueue_script(
128
- 'hupso_create_button',
129
- plugins_url('/js/create_button.js', __FILE__ )
130
- );
131
- }
132
- }
133
 
134
  function hupso_set_facebook_thumbnail() {
135
  global $post;
@@ -188,6 +191,11 @@ function hupso_get_the_excerpt($content) {
188
  function hupso_admin_settings_show() {
189
  global $hupso_all_services, $hupso_default_services, $hupso_plugin_url;
190
 
 
 
 
 
 
191
  $hupso_lang_code = __('en_US', 'share_buttons_hupso');
192
  $hupso_language = __('English', 'share_buttons_hupso');
193
  $hupso_share_image = __('Share', 'share_buttons_hupso');
@@ -395,7 +403,8 @@ function hupso_admin_settings_show() {
395
  <option value="bs" <?php if ($hupso_share_image_lang == 'bs') echo ' selected ';?>>Bosnian</option>
396
  <option value="ms" <?php if ($hupso_share_image_lang == 'ms') echo ' selected ';?>>Malay</option>
397
  <option value="zh" <?php if ($hupso_share_image_lang == 'zh') echo ' selected ';?>>Chinese</option>
398
- <option value="cs" <?php if ($hupso_share_image_lang == 'cs') echo ' selected ';?>>Czech</option>
 
399
  </select><br/>
400
  <input type="radio" name="hupso_share_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="hide" <?php echo $hupso_share_image_hide_checked; ?>/> <?php _e('Hide', 'share_buttons_hupso'); ?><br/>
401
  <input type="radio" name="hupso_share_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="custom" <?php echo $hupso_share_image_custom_checked; ?>/> <?php _e('Custom image from URL', 'share_buttons_hupso'); ?>: <input name="hupso_share_image_custom_url" type="text" onmouseout="hupso_create_code()" onchange="hupso_create_code()" value="<?php echo $hupso_share_image_custom_url;?>" size="50" /><br/><span style="padding-left:30px; font-size:10px;">(<?php _e('Optimal image height: 32px - big, 24px - medium, 16px - small/counters', 'share_buttons_hupso'); ?>)</span><br/>
@@ -705,7 +714,7 @@ function hupso_admin_settings_show() {
705
  $header_image = trim(get_header_image());
706
 
707
  ?>
708
- <span style="font-size:10px"><?php _e('After you change settings here, please wait 24 hours (or more) for Facebook to fetch new thumbnails', 'share_buttons_hupso');?>.</span><br/>
709
 
710
  <input type="radio" name="hupso_facebook_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="header" <?php echo $hupso_facebook_image_header_checked; ?>/> <?php _e('Header image', 'share_buttons_hupso'); ?> <?php if ( $header_image != '' ) { echo '(<a href="' . $header_image . '" title="' . __( 'Click here to see full header image', 'share_buttons_hupso' ) . '" target="_blank">' . __( 'preview', 'share_buttons_hupso' ) . '</a>)'; } ?><br/>
711
  <input type="radio" name="hupso_facebook_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="featured" <?php echo $hupso_facebook_image_featured_checked; ?>/> <?php _e('Featured image of post', 'share_buttons_hupso'); ?><br/>
@@ -1229,6 +1238,7 @@ function hupso_the_content( $content ) {
1229
  }
1230
 
1231
  $static_server = 'http://static.hupso.com/share' . $hupso_dev . '/js/' . $js_file;
 
1232
  $code .= '<script type="text/javascript" src="' . $static_server . '"></script><!-- Hupso Share Buttons -->';
1233
 
1234
  $position = get_option( 'hupso_button_position', 'below' );
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.1
7
  Author: kasal
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
28
  add_action('admin_menu', 'hupso_admin_menu');
29
  }
30
 
 
31
  add_action( 'wp_head', 'hupso_set_facebook_thumbnail', 1 );
32
 
33
  $hupso_all_services = array(
46
  add_filter('widget_text', 'do_shortcode');
47
  }
48
 
49
+
50
+ /* Add stylesheet */
51
+ add_action( 'wp_enqueue_scripts', 'hupso_add_my_stylesheet' );
52
+
53
+ function hupso_add_my_stylesheet() {
54
+ wp_register_style( 'hupso_css', plugins_url('style.css', __FILE__) );
55
+ wp_enqueue_style( 'hupso_css' );
56
+ }
57
+
58
+
59
  function hupso_widget_init() {
60
  include_once(plugin_dir_path( __FILE__ ) . '/share-buttons-hupso-widget.php');
61
  register_widget('Hupso_Widget');
101
  delete_option( 'hupso_twitter' );
102
  delete_option( 'hupso_facebook' );
103
  delete_option( 'hupso_googleplus' );
104
+ delete_option( 'hupso_pinterest' );
105
  delete_option( 'hupso_linkedin' );
106
  delete_option( 'hupso_stumbleupon' );
107
  delete_option( 'hupso_digg' );
116
  delete_option( 'hupso_widget_text' );
117
  delete_option( 'hupso_password_protected' );
118
  delete_option( 'hupso_page_url' );
119
+ delete_option( 'hupso_page_title' );
120
+ delete_option( 'hupso_hide_categories' );
121
  }
122
 
123
  function hupso_plugin_activation() {
133
  add_options_page('Hupso Share Buttons Settings', 'Hupso Share Buttons', 'manage_options', __FILE__, 'hupso_admin_settings_show', '', 6);
134
  }
135
 
 
 
 
 
 
 
 
 
136
 
137
  function hupso_set_facebook_thumbnail() {
138
  global $post;
191
  function hupso_admin_settings_show() {
192
  global $hupso_all_services, $hupso_default_services, $hupso_plugin_url;
193
 
194
+ wp_enqueue_script(
195
+ 'hupso_create_button',
196
+ plugins_url('/js/create_button.js', __FILE__ )
197
+ );
198
+
199
  $hupso_lang_code = __('en_US', 'share_buttons_hupso');
200
  $hupso_language = __('English', 'share_buttons_hupso');
201
  $hupso_share_image = __('Share', 'share_buttons_hupso');
403
  <option value="bs" <?php if ($hupso_share_image_lang == 'bs') echo ' selected ';?>>Bosnian</option>
404
  <option value="ms" <?php if ($hupso_share_image_lang == 'ms') echo ' selected ';?>>Malay</option>
405
  <option value="zh" <?php if ($hupso_share_image_lang == 'zh') echo ' selected ';?>>Chinese</option>
406
+ <option value="cs" <?php if ($hupso_share_image_lang == 'cs') echo ' selected ';?>>Czech</option>
407
+ <option value="tr" <?php if ($hupso_share_image_lang == 'tr') echo ' selected ';?>>Turkish</option>
408
  </select><br/>
409
  <input type="radio" name="hupso_share_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="hide" <?php echo $hupso_share_image_hide_checked; ?>/> <?php _e('Hide', 'share_buttons_hupso'); ?><br/>
410
  <input type="radio" name="hupso_share_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="custom" <?php echo $hupso_share_image_custom_checked; ?>/> <?php _e('Custom image from URL', 'share_buttons_hupso'); ?>: <input name="hupso_share_image_custom_url" type="text" onmouseout="hupso_create_code()" onchange="hupso_create_code()" value="<?php echo $hupso_share_image_custom_url;?>" size="50" /><br/><span style="padding-left:30px; font-size:10px;">(<?php _e('Optimal image height: 32px - big, 24px - medium, 16px - small/counters', 'share_buttons_hupso'); ?>)</span><br/>
714
  $header_image = trim(get_header_image());
715
 
716
  ?>
717
+ <span style="font-size:10px"><?php _e('All images for Facebook should be at least 200px in both dimensions (Facebook limitation)', 'share_buttons_hupso');?>.<br/><?php _e('After you change settings here, please wait 24 hours (or more) for Facebook to fetch new thumbnails', 'share_buttons_hupso');?>.</span><br/>
718
 
719
  <input type="radio" name="hupso_facebook_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="header" <?php echo $hupso_facebook_image_header_checked; ?>/> <?php _e('Header image', 'share_buttons_hupso'); ?> <?php if ( $header_image != '' ) { echo '(<a href="' . $header_image . '" title="' . __( 'Click here to see full header image', 'share_buttons_hupso' ) . '" target="_blank">' . __( 'preview', 'share_buttons_hupso' ) . '</a>)'; } ?><br/>
720
  <input type="radio" name="hupso_facebook_image" onclick="hupso_create_code()" onchange="hupso_create_code()" value="featured" <?php echo $hupso_facebook_image_featured_checked; ?>/> <?php _e('Featured image of post', 'share_buttons_hupso'); ?><br/>
1238
  }
1239
 
1240
  $static_server = 'http://static.hupso.com/share' . $hupso_dev . '/js/' . $js_file;
1241
+ $static_server = 'http://www.hupso.com/share' . $hupso_dev . '/js/debug/' . $js_file;
1242
  $code .= '<script type="text/javascript" src="' . $static_server . '"></script><!-- Hupso Share Buttons -->';
1243
 
1244
  $position = get_option( 'hupso_button_position', 'below' );
style.css ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ iframe {
2
+ max-width: none;
3
+ }