Version Description
Download this release
Release Info
Developer | kasal |
Plugin | Hupso Share Buttons for Twitter, Facebook & Google+ |
Version | 3.9.6 |
Comparing to | |
See all releases |
Code changes from version 3.9.5 to 3.9.6
- readme.txt +34 -1
- share-buttons-hupso.php +41 -8
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -39,6 +39,7 @@ These services are used by millions of people every day, so sharing your content
|
|
39 |
* You can use your own custom social icons for Twitter, Facebook and other social networks
|
40 |
* Load social icons from your own content delivery network (CDN)
|
41 |
* Set background and border color for share button (menu)
|
|
|
42 |
|
43 |
|
44 |
Share Buttons are very easy to configure. Just select button type, size, position and which social networking services do you want to offer to your visitors.
|
@@ -116,6 +117,20 @@ Add this CSS to your style.css file:
|
|
116 |
max-width:none !important;
|
117 |
}`
|
118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
= Share counters are not aligned properly. How can I fix this? =
|
120 |
|
121 |
Add proper CSS to your style.css file. Example:
|
@@ -133,6 +148,19 @@ Add proper CSS to your style.css file. Example:
|
|
133 |
margin-right: 10px !important;
|
134 |
}`
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
= How can I show share buttons inside template files? =
|
137 |
|
138 |
Add this PHP code inside template files at position where you want to show share buttons: `echo do_shortcode('[hupso]');`
|
@@ -196,6 +224,7 @@ You image should be at least 200px in both dimensions. This is a Facebook limita
|
|
196 |
|
197 |
= Found a bug? Have a suggestion? =
|
198 |
|
|
|
199 |
Please send bug reports and suggestion using [this feedback form](http://www.hupso.com/share/feedback/).
|
200 |
|
201 |
|
@@ -214,6 +243,10 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
|
|
214 |
|
215 |
== Changelog ==
|
216 |
|
|
|
|
|
|
|
|
|
217 |
= 3.9.5 =
|
218 |
* option to set background and border color for share button (menu)
|
219 |
|
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.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
39 |
* You can use your own custom social icons for Twitter, Facebook and other social networks
|
40 |
* Load social icons from your own content delivery network (CDN)
|
41 |
* Set background and border color for share button (menu)
|
42 |
+
* Support for SSL (https)
|
43 |
|
44 |
|
45 |
Share Buttons are very easy to configure. Just select button type, size, position and which social networking services do you want to offer to your visitors.
|
117 |
max-width:none !important;
|
118 |
}`
|
119 |
|
120 |
+
= Facebook comment box is cut at the bottom. How do I fix it? =
|
121 |
+
|
122 |
+
This usually happens when you have `overflow:hidden` in your main class for post (style.css). It might look like this:
|
123 |
+
`.post {
|
124 |
+
overflow:hidden;
|
125 |
+
}`
|
126 |
+
Find it and replace it with:
|
127 |
+
`.post {
|
128 |
+
overflow:visible;
|
129 |
+
}`
|
130 |
+
|
131 |
+
It is possible that your theme is using a different name, so it might be .post, .article, .entry-content or something similar.
|
132 |
+
|
133 |
+
|
134 |
= Share counters are not aligned properly. How can I fix this? =
|
135 |
|
136 |
Add proper CSS to your style.css file. Example:
|
148 |
margin-right: 10px !important;
|
149 |
}`
|
150 |
|
151 |
+
= How can I move share icons so they would show up in the same line as title of the post? =
|
152 |
+
|
153 |
+
Hide share image (from settings) and add this CSS to your style.css file:
|
154 |
+
`.hupso_c {
|
155 |
+
float: right;
|
156 |
+
margin-right: 40px;
|
157 |
+
margin-top: -80px;
|
158 |
+
padding-bottom: 20px;
|
159 |
+
}`
|
160 |
+
|
161 |
+
Then adjust the values so that it looks great with your theme.
|
162 |
+
|
163 |
+
|
164 |
= How can I show share buttons inside template files? =
|
165 |
|
166 |
Add this PHP code inside template files at position where you want to show share buttons: `echo do_shortcode('[hupso]');`
|
224 |
|
225 |
= Found a bug? Have a suggestion? =
|
226 |
|
227 |
+
If you are using an old version of the plugin then first update to latest version. It is possible that your bug has already been fixed.
|
228 |
Please send bug reports and suggestion using [this feedback form](http://www.hupso.com/share/feedback/).
|
229 |
|
230 |
|
243 |
|
244 |
== Changelog ==
|
245 |
|
246 |
+
= 3.9.6
|
247 |
+
* support for SSL (https)
|
248 |
+
* minor bug fixes
|
249 |
+
|
250 |
= 3.9.5 =
|
251 |
* option to set background and border color for share button (menu)
|
252 |
|
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
|
@@ -17,6 +17,35 @@ $hupso_state = 'normal';
|
|
17 |
$HUPSO_SHOW = true;
|
18 |
|
19 |
$hupso_plugin_url = plugins_url() . '/hupso-share-buttons-for-twitter-facebook-google';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
add_filter( 'the_content', 'hupso_the_content', 10 );
|
21 |
add_filter( 'get_the_excerpt', 'hupso_get_the_excerpt', 1);
|
22 |
add_filter( 'the_excerpt', 'hupso_the_content', 100 );
|
@@ -655,7 +684,7 @@ function hupso_admin_settings_show() {
|
|
655 |
$categories = get_categories();
|
656 |
foreach ($categories as $category) {
|
657 |
$option = '<option value="'.$category->category_nicename.'"';
|
658 |
-
if ( in_array($category->category_nicename, $hupso_hide_categories ) ) {
|
659 |
$option .= ' selected ';
|
660 |
}
|
661 |
$option .= '>';
|
@@ -949,7 +978,7 @@ function hupso_admin_settings_save() {
|
|
949 |
update_option( 'hupso_' . $service_name, $value );
|
950 |
}
|
951 |
else {
|
952 |
-
$value = get_option ( 'hupso_' . $service_name, in_array( $service_text, $hupso_default_services ) );
|
953 |
}
|
954 |
if ( $value == '1' ) {
|
955 |
$hupso_vars .= '"' . $service_text .'",';
|
@@ -1100,7 +1129,7 @@ function hupso_the_widget( $content ) {
|
|
1100 |
|
1101 |
function hupso_the_content( $content ) {
|
1102 |
|
1103 |
-
global $hupso_plugin_url, $wp_version, $hupso_dev, $hupso_state, $HUPSO_SHOW;
|
1104 |
|
1105 |
|
1106 |
if ($HUPSO_SHOW == false) {
|
@@ -1184,7 +1213,7 @@ function hupso_the_content( $content ) {
|
|
1184 |
if ( $hupso_hide_categories == '' ) {
|
1185 |
$hupso_hide_categories = array();
|
1186 |
}
|
1187 |
-
if ( ($hupso_state == 'normal') && (@in_array($current_category, $hupso_hide_categories)) ) {
|
1188 |
$content = str_ireplace('[hupso_hide]', '', $content);
|
1189 |
$content = str_ireplace('[hupso]', '', $content);
|
1190 |
return $content;
|
@@ -1216,9 +1245,13 @@ function hupso_the_content( $content ) {
|
|
1216 |
|
1217 |
|
1218 |
/* default code */
|
1219 |
-
$share_code = '<!-- Hupso Share Buttons - http://www.hupso.com/share/ --><a class="hupso_toolbar" href="http://www.hupso.com/share/"><img src="
|
1220 |
|
1221 |
$code = get_option( 'hupso_share_buttons_code', $share_code );
|
|
|
|
|
|
|
|
|
1222 |
$button_type = get_option( 'hupso_button_type', 'share_toolbar' );
|
1223 |
|
1224 |
/* Check for old saved button code, prior to version 1.3 */
|
@@ -1348,7 +1381,7 @@ function hupso_the_content( $content ) {
|
|
1348 |
break;
|
1349 |
}
|
1350 |
|
1351 |
-
$static_server = '
|
1352 |
$code .= '<script type="text/javascript" src="' . $static_server . '"></script><!-- Hupso Share Buttons -->';
|
1353 |
|
1354 |
$position = get_option( 'hupso_button_position', 'below' );
|
@@ -1400,7 +1433,7 @@ function hupso_settings_print_services() {
|
|
1400 |
$service_name = str_replace( ' ', '', $service_name );
|
1401 |
|
1402 |
$checked = '';
|
1403 |
-
$value = get_option( 'hupso_' . $service_name , in_array( $service_text, $hupso_default_services ) );
|
1404 |
if ( $value == "1" ) {
|
1405 |
$checked = 'checked="checked"';
|
1406 |
}
|
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.6
|
7 |
Author: kasal
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
17 |
$HUPSO_SHOW = true;
|
18 |
|
19 |
$hupso_plugin_url = plugins_url() . '/hupso-share-buttons-for-twitter-facebook-google';
|
20 |
+
|
21 |
+
|
22 |
+
/* Check if SSL is used */
|
23 |
+
if ( is_ssl() ) {
|
24 |
+
$hupso_p = 'https:';
|
25 |
+
if ( strpos( $hupso_plugin_url, 'http://' ) !== false) {
|
26 |
+
$hupso_plugin_url = str_replace( 'http://', 'https://', $hupso_plugin_url);
|
27 |
+
}
|
28 |
+
}
|
29 |
+
else {
|
30 |
+
$hupso_p = 'http:';
|
31 |
+
}
|
32 |
+
|
33 |
+
if ( ! function_exists( 'is_ssl' ) ) {
|
34 |
+
function is_ssl() {
|
35 |
+
if ( isset($_SERVER['HTTPS']) ) {
|
36 |
+
if ( 'on' == strtolower($_SERVER['HTTPS']) )
|
37 |
+
return true;
|
38 |
+
if ( '1' == $_SERVER['HTTPS'] )
|
39 |
+
return true;
|
40 |
+
}
|
41 |
+
elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
|
42 |
+
return true;
|
43 |
+
}
|
44 |
+
return false;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
add_filter( 'the_content', 'hupso_the_content', 10 );
|
50 |
add_filter( 'get_the_excerpt', 'hupso_get_the_excerpt', 1);
|
51 |
add_filter( 'the_excerpt', 'hupso_the_content', 100 );
|
684 |
$categories = get_categories();
|
685 |
foreach ($categories as $category) {
|
686 |
$option = '<option value="'.$category->category_nicename.'"';
|
687 |
+
if ( in_array($category->category_nicename, (array) $hupso_hide_categories ) ) {
|
688 |
$option .= ' selected ';
|
689 |
}
|
690 |
$option .= '>';
|
978 |
update_option( 'hupso_' . $service_name, $value );
|
979 |
}
|
980 |
else {
|
981 |
+
$value = get_option ( 'hupso_' . $service_name, in_array( $service_text, (array) $hupso_default_services ) );
|
982 |
}
|
983 |
if ( $value == '1' ) {
|
984 |
$hupso_vars .= '"' . $service_text .'",';
|
1129 |
|
1130 |
function hupso_the_content( $content ) {
|
1131 |
|
1132 |
+
global $hupso_plugin_url, $wp_version, $hupso_dev, $hupso_state, $HUPSO_SHOW, $hupso_p;
|
1133 |
|
1134 |
|
1135 |
if ($HUPSO_SHOW == false) {
|
1213 |
if ( $hupso_hide_categories == '' ) {
|
1214 |
$hupso_hide_categories = array();
|
1215 |
}
|
1216 |
+
if ( ($hupso_state == 'normal') && (@in_array($current_category, (array) $hupso_hide_categories)) ) {
|
1217 |
$content = str_ireplace('[hupso_hide]', '', $content);
|
1218 |
$content = str_ireplace('[hupso]', '', $content);
|
1219 |
return $content;
|
1245 |
|
1246 |
|
1247 |
/* default code */
|
1248 |
+
$share_code = '<!-- Hupso Share Buttons - http://www.hupso.com/share/ --><a class="hupso_toolbar" href="http://www.hupso.com/share/"><img src="' . $hupso_p . '//static.hupso.com/share' . $hupso_dev . '/buttons/share-medium.png" style="border:0px; padding-top:5px; float:left;" alt="Share"/></a><script type="text/javascript">var hupso_services_t=new Array("Twitter","Facebook","Google Plus","Linkedin","StumbleUpon","Digg","Reddit","Bebo","Delicious"); var hupso_toolbar_size_t="medium";';
|
1249 |
|
1250 |
$code = get_option( 'hupso_share_buttons_code', $share_code );
|
1251 |
+
if ( $hupso_p == 'https:' ) {
|
1252 |
+
$code = str_replace( 'src="http://static.hupso.com', 'src="https://static.hupso.com', $code );
|
1253 |
+
}
|
1254 |
+
|
1255 |
$button_type = get_option( 'hupso_button_type', 'share_toolbar' );
|
1256 |
|
1257 |
/* Check for old saved button code, prior to version 1.3 */
|
1381 |
break;
|
1382 |
}
|
1383 |
|
1384 |
+
$static_server = $hupso_p . '//static.hupso.com/share' . $hupso_dev . '/js/' . $js_file;
|
1385 |
$code .= '<script type="text/javascript" src="' . $static_server . '"></script><!-- Hupso Share Buttons -->';
|
1386 |
|
1387 |
$position = get_option( 'hupso_button_position', 'below' );
|
1433 |
$service_name = str_replace( ' ', '', $service_name );
|
1434 |
|
1435 |
$checked = '';
|
1436 |
+
$value = get_option( 'hupso_' . $service_name , in_array( $service_text, (array) $hupso_default_services ) );
|
1437 |
if ( $value == "1" ) {
|
1438 |
$checked = 'checked="checked"';
|
1439 |
}
|