Permalink
Browse files

fixes && improvements

  • Loading branch information...
1 parent 7167781 commit 43dc3011bcf784625d946e91b0c75fe6b722d101 hybridauth committed Nov 30, 2011
Showing with 73 additions and 28 deletions.
  1. +1 −1 callback.php
  2. +9 −9 includes/hybridauth.settings.php
  3. +14 −0 includes/plugin.settings.php
  4. +7 −5 includes/ui.php
  5. +38 −9 readme.txt
  6. BIN screenshot-3.png
  7. +4 −4 wp-social-login.php
View
2 callback.php
@@ -145,7 +145,7 @@ function init() {
<td align="center"><br /><br /><h3>Something bad happen!</h3><br /></td>
</tr>
<tr>
- <td align="center">&nbsp;<?php echo $message ; ?><pre style="text-align:left;"><?php print_r( $config ); print_r( $e ); ?></td>
+ <td align="center">&nbsp;<?php echo $message ; ?></td>
</tr>
</table>
<?php
View
18 includes/hybridauth.settings.php
@@ -1,63 +1,63 @@
<?php
$WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG = ARRAY(
ARRAY(
- "provider_id" => "facebook",
+ "provider_id" => "Facebook",
"provider_name" => "Facebook",
"require_client_id" => TRUE,
"new_app_link" => "https://www.facebook.com/developers/apps.php",
)
,
ARRAY(
- "provider_id" => "google",
+ "provider_id" => "Google",
"provider_name" => "Google",
"callback" => TRUE,
"require_client_id" => TRUE,
"new_app_link" => "https://code.google.com/apis/console/",
)
,
ARRAY(
- "provider_id" => "twitter",
+ "provider_id" => "Twitter",
"provider_name" => "Twitter",
"callback" => TRUE,
"new_app_link" => "https://dev.twitter.com/apps",
)
,
ARRAY(
- "provider_id" => "live",
+ "provider_id" => "Live",
"provider_name" => "Windows Live",
"require_client_id" => TRUE,
"new_app_link" => "https://manage.dev.live.com/ApplicationOverview.aspx",
)
,
ARRAY(
- "provider_id" => "myspace",
+ "provider_id" => "MySpace",
"provider_name" => "MySpace",
"new_app_link" => "http://www.developer.myspace.com/",
)
,
ARRAY(
- "provider_id" => "foursquare",
+ "provider_id" => "Foursquare",
"provider_name" => "Foursquare",
"callback" => TRUE,
"require_client_id" => TRUE,
"new_app_link" => "https://www.foursquare.com/oauth/",
)
,
ARRAY(
- "provider_id" => "linkedin",
+ "provider_id" => "LinkedIn",
"provider_name" => "LinkedIn",
"callback" => TRUE,
"new_app_link" => "https://www.linkedin.com/secure/developer?newapp=",
)
,
ARRAY(
- "provider_id" => "yahoo",
+ "provider_id" => "Yahoo",
"provider_name" => "Yahoo!",
"new_app_link" => NULL,
)
,
ARRAY(
- "provider_id" => "aol",
+ "provider_id" => "AOL",
"provider_name" => "AOL",
"new_app_link" => NULL,
)
View
14 includes/plugin.settings.php
@@ -89,6 +89,20 @@ function wsl_render_settings()
<br />
<strong>WordPress Social Login</strong> = <a href="http://wordpress.org/extend/plugins/social-connect/" target='_blank'>Social Connect Plugin</a> + <a href="http://hybridauth.sourceforge.net/" target='_blank'>HybridAuth Library</a> + Hack and rework.
</p>
+
+ <br />
+ <p style="margin-left:25px;margin:10px;">
+ <b>Important:</b>
+ </p>
+ <ul style="list-style:circle inside;margin-left:25px;">
+ <li>This plugin is still in <strong>Alpha Stage</strong> and as such, should be used for <strong>testing only</strong> until a real stable release come to life,</li>
+ <li>This plugin is tested on a <strong>default</strong> installation of WordPress without any extra add-ons,</li>
+ <li>This plugin is for peoples who don't fancy the idea of having a middleman webservice for this purpose. If not, then most likely this plugin is not the right one for you!</li>
+ <li>As an open source project and alpha stage plugin, We Appreciate Your Feedback!</li>
+ <li>Also to get <strong>help and support</strong>, join us on the <a href="https://groups.google.com/forum/#!forum/hybridauth-plugins">discussion group</a> or email me at <b>hybridauth@gmail.com</b></li>
+ </ul>
+
+ <br />
<br />
View
12 includes/ui.php
@@ -13,11 +13,13 @@ function wsl_render_login_form()
$assets_base_url = WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/assets/img/icons/';
- ?>
- <a href="javascript:void(0);" title="Connect with <?php echo $provider_name ?>" class="wsl_connect_with_provider" provider="<?php echo $provider_id ?>">
- <img alt="<?php echo $provider_name ?>" title="<?php echo $provider_name ?>" src="<?php echo $assets_base_url . $provider_id . '.png' ?>" />
- </a>
- <?php
+ if( get_option( 'wsl_settings_' . $provider_id . '_enabled' ) ){
+ ?>
+ <a href="javascript:void(0);" title="Connect with <?php echo $provider_name ?>" class="wsl_connect_with_provider" provider="<?php echo $provider_id ?>">
+ <img alt="<?php echo $provider_name ?>" title="<?php echo $provider_name ?>" src="<?php echo $assets_base_url . strtolower( $provider_id ) . '.png' ?>" />
+ </a>
+ <?php
+ }
}
// provide popup url for hybridauth callback
View
47 readme.txt
@@ -1,29 +1,58 @@
=== WordPress Social Login ===
Contributors: miled
-Tags: twitter, facebook, google, yahoo, linkedin, myspace, foursquare, aol, login, register
+Tags: twitter, facebook, google, yahoo, linkedin, myspace, foursquare, aol, login, register, comment
Requires at least: 3.0
Tested up to: 3.2.1
-Stable tag: no clue what is that
+Stable tag: 1.1.3
-WordPress Social Login Open Source Plugin allow your visitors to comment and login with social networks and identities providers such as Twitter, Facebook, Google, Yahoo, LinkedIn, MySpace, Foursquare and AOL.
+Allow your visitors to comment and login with social networks and identities providers such as Facebook, Twitter, Foursquare and Google.
== Description ==
-WordPress Social Login plugin allow your visitors to comment and login with social networks and identities providers such as Twitter, Facebook, Google, Yahoo, LinkedIn, MySpace, Foursquare and AOL.
+**IMPORTANT**
+
+* This plugin is still in **Alpha Stage** and as such, should be used for **testing only** until a real stable release come to life,
+* This plugin is tested on a **default** installation of WordPress without any extra add-ons,
+* This plugin is for peoples who don't fancy the idea of having a middleman webservice for this purpose. If not, then most likely this plugin is not the right one for you!
+
+This plugin is allow your visitors to comment and login with social networks and identities providers such as Twitter, Facebook, Google, Yahoo, LinkedIn, MySpace, Foursquare and AOL.
WordPress Social Login = Social Connect Plugin + HybridAuth Library + some hack and rework.
-- Social Connect GPL2 Open Source Plugin: http://wordpress.org/extend/plugins/social-connect/
+- Social Connect : http://wordpress.org/extend/plugins/social-connect/
- HybridAuth Open Source Library: http://hybridauth.sourceforge.net/
- Social icon set: http://www.wpzoom.com/wpzoom/500-free-icons-wpzoom-social-networking-icon-set/
+== Installation ==
+
+1. Upload `wordpress-social-login` to the `/wp-content/plugins/` directory
+2. Activate the plugin through the 'Plugins' menu in WordPress
+3. Visit the "Settings | WP Social Login" administration page to configure social media providers.
+
+== Frequently Asked Questions ==
+
+= Where can I report bugs & get support? =
+
+As an open source project and alpha stage plugin, We Appreciate Your Feedback!
+
+Also to get **help and support**, join us on the [discussion group](https://groups.google.com/forum/#!forum/hybridauth-plugins) or email me at &lt;hybridauth (at) gmail (dot) com&gt;
+
== Screenshots ==
-1. **Comment** - buttons for 3rd party services are also provided on the comment form.
-2. **Login** - on the login and registration form, buttons for 3rd party services are provided.
+1. **Comment** - Buttons for 3rd party services are also provided on the comment form.
+2. **Login** - On the login and registration form, buttons for 3rd party services are provided.
+3. **Setup** - To correctly setup these Identity Providers please carefully follow the help section of each one.
== Changelog ==
-= 0.1 =
+= 1.1.3 =
+
+* Fix a bug with hybridauth settings
+
+= 1.1.1 =
+
+* Fix a bug when displaying not enbaled provider on the login form
+
+= 1.1.0 =
-* Initial release.
+* Initial release.
View
BIN screenshot-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
8 wp-social-login.php
@@ -2,16 +2,16 @@
/*
Plugin Name: WordPress Social Login
Plugin URI: http://wordpress.org/extend/plugins/wordpress-social-login/
-Description: Allow your visitors to comment and login with social networks such as Twitter, Facebook, Google, Yahoo, LinkedIn, MySpace, Foursquare and AOL. <strong>WordPress Social Login</strong> = <strong>Social Connect Plugin</strong> + <strong>HybridAuth Library</strong> + Hack and rework.
-Version: 1.0.1
+Description: This plugin is still in <strong>Alpha Stage</strong> and as such, should be used for <strong>testing only</strong> until a real stable release come to life!! This plugin allow your visitors to comment and login with social networks such as Twitter, Facebook, Google, Yahoo, LinkedIn, MySpace, Foursquare and AOL. <strong>WordPress Social Login</strong> = <strong>Social Connect Plugin</strong> + <strong>HybridAuth Library</strong> + Hack and rework.
+Version: 1.1.3
Author: Miled
Author URI: http://wordpress.org/extend/plugins/wordpress-social-login/
License: GPL2
*/
/**
* Check technical requirements before activating the plugin.
- * Wordpress 3.0 or newer required
+ * Wordpress 3.0 or newer required, 3.1 would be better
* PHP 5.2 or newer
* CURL Required
*/
@@ -28,7 +28,7 @@ function wsl_activate()
die( sprintf( __( "WordPress Social Login requires the <a href='http://www.php.net/manual/en/intro.curl.php'>PHP libcurl extension</a> to be installed." ) ) );
}
- if ( version_compare( PHP_VERSION, '5.2', '<' ) ){
+ if ( version_compare( PHP_VERSION, '5.2.0', '<' ) ){
die( sprintf( __( "WordPress Social Login requires WordPress 5.2 or newer." ) ) );
}
}

0 comments on commit 43dc301

Please sign in to comment.