Nextend Social Login and Register (Facebook, Google, Twitter) - Version 1.1

Version Description

Download this release

Release Info

Developer nextendweb
Plugin Icon 128x128 Nextend Social Login and Register (Facebook, Google, Twitter)
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

nextend-fb-connect.php → nextend-facebook-connect.php RENAMED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nextend Facebook Connect
4
  Plugin URI: http://nextendweb.com/
5
  Description: This plugins helps you create Facebook login and register buttons. The login and register process only takes one click.
6
- Version: 1.0
7
  Author: Roland Soos
8
  License: GPL2
9
  */
@@ -121,7 +121,7 @@ function new_fb_login_url(){
121
 
122
 
123
  /* Options Page */
124
- require_once(trailingslashit(dirname(__FILE__)) . "nextend-fb-settings.php");
125
 
126
  if(class_exists('NextendFBSettings')) {
127
  $nextendfbsettings = new NextendFBSettings();
@@ -136,8 +136,8 @@ add_filter( 'plugin_action_links', 'nextend_fb_plugin_action_links', 10, 2 );
136
  function nextend_fb_plugin_action_links( $links, $file ) {
137
  if ( $file != NEW_FB_LOGIN_PLUGIN_BASENAME )
138
  return $links;
139
- $settings_link = '<a href="' . menu_page_url( 'nextend-fb-connect', false ) . '">'
140
- . esc_html( __( 'Settings', 'nextend-fb-connect' ) ) . '</a>';
141
 
142
  array_unshift( $links, $settings_link );
143
 
3
  Plugin Name: Nextend Facebook Connect
4
  Plugin URI: http://nextendweb.com/
5
  Description: This plugins helps you create Facebook login and register buttons. The login and register process only takes one click.
6
+ Version: 1.1
7
  Author: Roland Soos
8
  License: GPL2
9
  */
121
 
122
 
123
  /* Options Page */
124
+ require_once(trailingslashit(dirname(__FILE__)) . "nextend-facebook-settings.php");
125
 
126
  if(class_exists('NextendFBSettings')) {
127
  $nextendfbsettings = new NextendFBSettings();
136
  function nextend_fb_plugin_action_links( $links, $file ) {
137
  if ( $file != NEW_FB_LOGIN_PLUGIN_BASENAME )
138
  return $links;
139
+ $settings_link = '<a href="' . menu_page_url( 'nextend-facebook-connect', false ) . '">'
140
+ . esc_html( __( 'Settings', 'nextend-facebook-connect' ) ) . '</a>';
141
 
142
  array_unshift( $links, $settings_link );
143
 
nextend-fb-settings.php → nextend-facebook-settings.php RENAMED
@@ -28,9 +28,9 @@ function NextendFB_Options_Page() {
28
  <?php
29
  global $newfb_status;
30
  if($newfb_status == 'update_success')
31
- $message =__('Configuration updated', 'nextend-fb-connect') . "<br />";
32
  else if($newfb_status == 'update_failed')
33
- $message =__('Error while saving options', 'nextend-fb-connect') . "<br />";
34
  else
35
  $message = '';
36
 
@@ -41,29 +41,29 @@ function NextendFB_Options_Page() {
41
  ?></p></strong></div><?php
42
  } ?>
43
  <div id="newfb-desc">
44
- <p><?php _e('This plugins helps you create Facebook login and register buttons. The login and register process only takes one click and you can fully customize the buttons with images and other assets.', 'nextend-fb-connect'); ?></p>
45
- <h3><?php _e('Setup', 'nextend-fb-connect'); ?></h3>
46
  <p>
47
- <?php _e('<ol><li><a href="https://developers.facebook.com/apps/?action=create" target="_blank">Create a facebook app!</a></li>', 'nextend-fb-connect'); ?>
48
- <?php _e('<li>Choose an App Name, it can be anything you like</li>', 'nextend-fb-connect'); ?>
49
- <?php _e('<li>Click on <b>Continue</b></li>', 'nextend-fb-connect'); ?>
50
- <?php _e('<li>Go to the newly created <b>App settings page</b> and click <b>Edit Settings</b></li>', 'nextend-fb-connect'); ?>
51
- <?php _e('<li>Fill out <b>App Domains</b> field with: <b>'.$domain.'</b></li>', 'nextend-fb-connect'); ?>
52
- <?php _e('<li>Click on <b>Website with Facebook Login</b> tab abd fill out <b>Site URL</b> field with: <b>'.get_option('siteurl').'</b></li>', 'nextend-fb-connect'); ?>
53
- <?php _e('<li>Click on <b>Save changes</b> and the top of the page contains the <b>App Id</b> and <b>App secret</b> which you have to copy and past below.</li>', 'nextend-fb-connect'); ?>
54
- <?php _e('<li><b>Save changes!</b></li></ol>', 'nextend-fb-connect'); ?>
55
 
56
 
57
  </p>
58
- <h3><?php _e('Usage', 'nextend-fb-connect'); ?></h3>
59
- <h4><?php _e('Simple link', 'nextend-fb-connect'); ?></h4>
60
- <p><?php _e('&lt;a href="'.get_option('siteurl').'/loginFacebook?redirect='.get_option('siteurl').'" onclick="window.location = \''.get_option('siteurl').'/loginFacebook?redirect=\'+window.location.href; return false;"&gt;Click here to login or register with Facebook&lt;/a&gt;', 'nextend-fb-connect'); ?></p>
61
 
62
- <h4><?php _e('Image button', 'nextend-fb-connect'); ?></h4>
63
- <p><?php _e('&lt;a href="'.get_option('siteurl').'/loginFacebook?redirect='.get_option('siteurl').'" onclick="window.location = \''.get_option('siteurl').'/loginFacebook?redirect=\'+window.location.href; return false;"&gt; &lt;img src="HereComeTheImage" /&gt; &lt;/a&gt;', 'nextend-fb-connect'); ?></p>
64
 
65
- <h3><?php _e('Note', 'nextend-fb-connect'); ?></h3>
66
- <p><?php _e('If the Facebook user\'s email address already used by another member of your site, the facebook profile will be automatically linked to the existing profile!', 'nextend-fb-connect'); ?></p>
67
 
68
  </div>
69
 
@@ -74,10 +74,10 @@ function NextendFB_Options_Page() {
74
 
75
  <!--about-->
76
  <div id="newfb-about" class="postbox">
77
- <h3 class="hndle"><?php _e('About this plugin', 'nextend-fb-connect'); ?></h3>
78
  <div class="inside"><ul>
79
- <li><a href="http://wordpress.org/extend/plugins/nextend-facebook-connect/"><?php _e('Plugin URI', 'nextend-fb-connect'); ?></a></li>
80
- <li><a href="http://profiles.wordpress.org/nextendweb" target="_blank"><?php _e('Author URI', 'nextend-fb-connect'); ?></a></li>
81
  </ul></div>
82
  </div>
83
  <!--about end-->
@@ -95,22 +95,22 @@ function NextendFB_Options_Page() {
95
 
96
  <!--setting-->
97
  <div id="newfb-setting" class="postbox">
98
- <h3 class="hndle"><?php _e('Settings', 'nextend-fb-connect'); ?></h3>
99
  <?php $nextend_fb_connect = maybe_unserialize(get_option('nextend_fb_connect')); ?>
100
 
101
- <form method="post" action="<?php echo get_bloginfo("wpurl"); ?>/wp-admin/options-general.php?page=nextend-fb-connect">
102
  <input type="hidden" name="newfb_update_options" value="Y">
103
 
104
  <table class="form-table">
105
  <tr>
106
- <th scope="row"><?php _e('Facebook App ID:', 'nextend-fb-connect'); ?></th>
107
  <td>
108
  <input type="text" name="fb_appid" value="<?php echo $nextend_fb_connect['fb_appid']; ?>" />
109
  </td>
110
  </tr>
111
 
112
  <tr>
113
- <th scope="row"><?php _e('Facebook App Secret:', 'nextend-fb-connect'); ?></th>
114
  <td>
115
  <input type="text" name="fb_secret" value="<?php echo $nextend_fb_connect['fb_secret']; ?>" />
116
  </td>
@@ -118,7 +118,7 @@ function NextendFB_Options_Page() {
118
  </table>
119
 
120
  <p class="submit">
121
- <input style="margin-left: 10%;" type="submit" name="Submit" value="<?php _e('Save Changes', 'nextend-fb-connect'); ?>" />
122
  </p>
123
  </form>
124
  </div>
@@ -136,7 +136,7 @@ function NextendFB_Options_Page() {
136
  }
137
 
138
  function NextendFB_Menu() {
139
- add_options_page(__('Nextend FB Connect'), __('Nextend FB Connect'), 'manage_options', 'nextend-fb-connect', array(__CLASS__,'NextendFB_Options_Page'));
140
  }
141
 
142
  }
28
  <?php
29
  global $newfb_status;
30
  if($newfb_status == 'update_success')
31
+ $message =__('Configuration updated', 'nextend-facebook-connect') . "<br />";
32
  else if($newfb_status == 'update_failed')
33
+ $message =__('Error while saving options', 'nextend-facebook-connect') . "<br />";
34
  else
35
  $message = '';
36
 
41
  ?></p></strong></div><?php
42
  } ?>
43
  <div id="newfb-desc">
44
+ <p><?php _e('This plugins helps you create Facebook login and register buttons. The login and register process only takes one click and you can fully customize the buttons with images and other assets.', 'nextend-facebook-connect'); ?></p>
45
+ <h3><?php _e('Setup', 'nextend-facebook-connect'); ?></h3>
46
  <p>
47
+ <?php _e('<ol><li><a href="https://developers.facebook.com/apps/?action=create" target="_blank">Create a facebook app!</a></li>', 'nextend-facebook-connect'); ?>
48
+ <?php _e('<li>Choose an App Name, it can be anything you like</li>', 'nextend-facebook-connect'); ?>
49
+ <?php _e('<li>Click on <b>Continue</b></li>', 'nextend-facebook-connect'); ?>
50
+ <?php _e('<li>Go to the newly created <b>App settings page</b> and click <b>Edit Settings</b></li>', 'nextend-facebook-connect'); ?>
51
+ <?php _e('<li>Fill out <b>App Domains</b> field with: <b>'.$domain.'</b></li>', 'nextend-facebook-connect'); ?>
52
+ <?php _e('<li>Click on <b>Website with Facebook Login</b> tab abd fill out <b>Site URL</b> field with: <b>'.get_option('siteurl').'</b></li>', 'nextend-facebook-connect'); ?>
53
+ <?php _e('<li>Click on <b>Save changes</b> and the top of the page contains the <b>App Id</b> and <b>App secret</b> which you have to copy and past below.</li>', 'nextend-facebook-connect'); ?>
54
+ <?php _e('<li><b>Save changes!</b></li></ol>', 'nextend-facebook-connect'); ?>
55
 
56
 
57
  </p>
58
+ <h3><?php _e('Usage', 'nextend-facebook-connect'); ?></h3>
59
+ <h4><?php _e('Simple link', 'nextend-facebook-connect'); ?></h4>
60
+ <p><?php _e('&lt;a href="'.get_option('siteurl').'/loginFacebook?redirect='.get_option('siteurl').'" onclick="window.location = \''.get_option('siteurl').'/loginFacebook?redirect=\'+window.location.href; return false;"&gt;Click here to login or register with Facebook&lt;/a&gt;', 'nextend-facebook-connect'); ?></p>
61
 
62
+ <h4><?php _e('Image button', 'nextend-facebook-connect'); ?></h4>
63
+ <p><?php _e('&lt;a href="'.get_option('siteurl').'/loginFacebook?redirect='.get_option('siteurl').'" onclick="window.location = \''.get_option('siteurl').'/loginFacebook?redirect=\'+window.location.href; return false;"&gt; &lt;img src="HereComeTheImage" /&gt; &lt;/a&gt;', 'nextend-facebook-connect'); ?></p>
64
 
65
+ <h3><?php _e('Note', 'nextend-facebook-connect'); ?></h3>
66
+ <p><?php _e('If the Facebook user\'s email address already used by another member of your site, the facebook profile will be automatically linked to the existing profile!', 'nextend-facebook-connect'); ?></p>
67
 
68
  </div>
69
 
74
 
75
  <!--about-->
76
  <div id="newfb-about" class="postbox">
77
+ <h3 class="hndle"><?php _e('About this plugin', 'nextend-facebook-connect'); ?></h3>
78
  <div class="inside"><ul>
79
+ <li><a href="http://wordpress.org/extend/plugins/nextend-facebook-connect/"><?php _e('Plugin URI', 'nextend-facebook-connect'); ?></a></li>
80
+ <li><a href="http://profiles.wordpress.org/nextendweb" target="_blank"><?php _e('Author URI', 'nextend-facebook-connect'); ?></a></li>
81
  </ul></div>
82
  </div>
83
  <!--about end-->
95
 
96
  <!--setting-->
97
  <div id="newfb-setting" class="postbox">
98
+ <h3 class="hndle"><?php _e('Settings', 'nextend-facebook-connect'); ?></h3>
99
  <?php $nextend_fb_connect = maybe_unserialize(get_option('nextend_fb_connect')); ?>
100
 
101
+ <form method="post" action="<?php echo get_bloginfo("wpurl"); ?>/wp-admin/options-general.php?page=nextend-facebook-connect">
102
  <input type="hidden" name="newfb_update_options" value="Y">
103
 
104
  <table class="form-table">
105
  <tr>
106
+ <th scope="row"><?php _e('Facebook App ID:', 'nextend-facebook-connect'); ?></th>
107
  <td>
108
  <input type="text" name="fb_appid" value="<?php echo $nextend_fb_connect['fb_appid']; ?>" />
109
  </td>
110
  </tr>
111
 
112
  <tr>
113
+ <th scope="row"><?php _e('Facebook App Secret:', 'nextend-facebook-connect'); ?></th>
114
  <td>
115
  <input type="text" name="fb_secret" value="<?php echo $nextend_fb_connect['fb_secret']; ?>" />
116
  </td>
118
  </table>
119
 
120
  <p class="submit">
121
+ <input style="margin-left: 10%;" type="submit" name="Submit" value="<?php _e('Save Changes', 'nextend-facebook-connect'); ?>" />
122
  </p>
123
  </form>
124
  </div>
136
  }
137
 
138
  function NextendFB_Menu() {
139
+ add_options_page(__('Nextend FB Connect'), __('Nextend FB Connect'), 'manage_options', 'nextend-facebook-connect', array(__CLASS__,'NextendFB_Options_Page'));
140
  }
141
 
142
  }
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Nextend Facebook Connect ===
2
  Contributors: nextendweb
3
- Tags: facebook, register, login, social connect, social
4
  Requires at least: 3.0
5
  Tested up to: 3.4
6
- Stable tag: 1.0
7
 
8
  This plugins helps you create Facebook login and register buttons. The login and register process only takes one click.
9
 
@@ -11,14 +11,25 @@ This plugins helps you create Facebook login and register buttons. The login and
11
 
12
  This plugins helps you create Facebook login and register buttons. The login and register process only takes one click and you can fully customize the buttons with images and other assets.
13
 
 
 
 
 
 
 
 
 
 
 
 
14
  == Installation ==
15
 
16
- Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
17
- Create a facebook app => https://developers.facebook.com/apps/?action=create
18
- Choose an App Name, it can be anything you like
19
- Click on Continue
20
- Go to the newly created App settings page and click Edit Settings
21
- Fill out App Domains field with: your domain name
22
- Click on Website with Facebook Login tab abd fill out Site URL field with: http://yoursiteurl.com
23
- Click on Save changes and the top of the page contains the App Id and App secret which you have to copy and past below.
24
- Save changes!
1
  === Nextend Facebook Connect ===
2
  Contributors: nextendweb
3
+ Tags: facebook, register, login, social connect, social, facebook connect
4
  Requires at least: 3.0
5
  Tested up to: 3.4
6
+ Stable tag: 1.1
7
 
8
  This plugins helps you create Facebook login and register buttons. The login and register process only takes one click.
9
 
11
 
12
  This plugins helps you create Facebook login and register buttons. The login and register process only takes one click and you can fully customize the buttons with images and other assets.
13
 
14
+ #### Usage
15
+
16
+
17
+ **Simple link**
18
+
19
+ &lt;a href="*siteurl*/loginFacebook?redirect=*siteurl*" onclick="window.location = \'*siteurl*/loginFacebook?redirect=\'+window.location.href; return false;"&gt;Click here to login or register with Facebook&lt;/a&gt;
20
+
21
+ **Image button**
22
+
23
+ &lt;a href="*siteurl*/loginFacebook?redirect=*siteurl*" onclick="window.location = \'*siteurl*/loginFacebook?redirect=\'+window.location.href; return false;"&gt; &lt;img src="HereComeTheImage" /&gt; &lt;/a&gt;
24
+
25
  == Installation ==
26
 
27
+ 1. Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
28
+ 2. Create a facebook app => https://developers.facebook.com/apps/?action=create
29
+ 3. Choose an App Name, it can be anything you like
30
+ 4. Click on Continue
31
+ 5. Go to the newly created App settings page and click Edit Settings
32
+ 6. Fill out App Domains field with: your domain name
33
+ 7. Click on Website with Facebook Login tab abd fill out Site URL field with: http://yoursiteurl.com
34
+ 8. Click on Save changes and the top of the page contains the App Id and App secret which you have to copy and past below.
35
+ 9. Save changes!