Version Description
Bugfix - On the edit profile page the website field added a new http:// everytime you updated your profile. Bugfix/ExtraFeature - Add support for shortcodes to be run in a text widget area.
Download this release
Release Info
Developer | reflectionmedia |
Plugin | User registration & user profile – Profile Builder |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- includes/wppb-front-end-login.php +6 -0
- includes/wppb-front-end-profile.php +8 -2
- includes/wppb-front-end-register.php +4 -0
- profile-builder.php +4 -1
- readme.txt +8 -4
includes/wppb-front-end-login.php
CHANGED
@@ -17,6 +17,7 @@ function wppb_signon(){
|
|
17 |
add_action('init', 'wppb_signon');
|
18 |
|
19 |
function wppb_front_end_login(){
|
|
|
20 |
global $wppb_login;
|
21 |
|
22 |
echo '<div class="wppb_holder" id="wppb_login">';
|
@@ -83,4 +84,9 @@ function wppb_front_end_login(){
|
|
83 |
<?php endif;?>
|
84 |
</div>
|
85 |
<?php
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
17 |
add_action('init', 'wppb_signon');
|
18 |
|
19 |
function wppb_front_end_login(){
|
20 |
+
ob_start();
|
21 |
global $wppb_login;
|
22 |
|
23 |
echo '<div class="wppb_holder" id="wppb_login">';
|
84 |
<?php endif;?>
|
85 |
</div>
|
86 |
<?php
|
87 |
+
|
88 |
+
$output = ob_get_contents();
|
89 |
+
ob_end_clean();
|
90 |
+
return $output;
|
91 |
+
|
92 |
}
|
includes/wppb-front-end-profile.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
function wppb_front_end_profile_info() {
|
|
|
3 |
get_currentuserinfo();
|
4 |
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
$changesSaved = 'no';
|
@@ -59,7 +60,8 @@ function wppb_front_end_profile_info() {
|
|
59 |
}
|
60 |
|
61 |
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
|
|
|
63 |
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
$changesSaved = 'yes';
|
65 |
}else{
|
@@ -273,7 +275,11 @@ function wppb_front_end_profile_info() {
|
|
273 |
|
274 |
<?php endif; ?>
|
275 |
</div>
|
276 |
-
<?php
|
|
|
|
|
|
|
|
|
277 |
}
|
278 |
|
279 |
?>
|
1 |
<?php
|
2 |
function wppb_front_end_profile_info() {
|
3 |
+
ob_start();
|
4 |
get_currentuserinfo();
|
5 |
$wppb_defaultOptions = get_option('wppb_default_settings');
|
6 |
$changesSaved = 'no';
|
60 |
}
|
61 |
|
62 |
if ($wppb_defaultOptions['website'] == 'show'){
|
63 |
+
$wppbPos = strpos($_POST['website'], 'http://');
|
64 |
+
if($wppbPos !== FALSE){
|
65 |
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
66 |
$changesSaved = 'yes';
|
67 |
}else{
|
275 |
|
276 |
<?php endif; ?>
|
277 |
</div>
|
278 |
+
<?php
|
279 |
+
$output = ob_get_contents();
|
280 |
+
ob_end_clean();
|
281 |
+
return $output;
|
282 |
+
|
283 |
}
|
284 |
|
285 |
?>
|
includes/wppb-front-end-register.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
function wppb_front_end_register(){
|
|
|
4 |
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
global $current_user;
|
6 |
get_currentuserinfo();
|
@@ -275,6 +276,9 @@ function wppb_front_end_register(){
|
|
275 |
|
276 |
</div>
|
277 |
<?php
|
|
|
|
|
|
|
278 |
}
|
279 |
|
280 |
?>
|
1 |
<?php
|
2 |
|
3 |
function wppb_front_end_register(){
|
4 |
+
ob_start();
|
5 |
$wppb_defaultOptions = get_option('wppb_default_settings');
|
6 |
global $current_user;
|
7 |
get_currentuserinfo();
|
276 |
|
277 |
</div>
|
278 |
<?php
|
279 |
+
$output = ob_get_contents();
|
280 |
+
ob_end_clean();
|
281 |
+
return $output;
|
282 |
}
|
283 |
|
284 |
?>
|
profile-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Profile Builder
|
4 |
Plugin URI: http://www.cozmoslabs.com/2011/04/12/wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/
|
5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed.
|
6 |
-
Version: 1.0.
|
7 |
Author: Reflection Media
|
8 |
Author URI: http://reflectionmedia.ro
|
9 |
License: GPL2
|
@@ -114,4 +114,7 @@ if (is_admin() ){ // if we are in the admin menu
|
|
114 |
include_once('includes/wppb-front-end-register.php'); // include the menu file for the register screen
|
115 |
add_shortcode('wppb-register', 'wppb_front_end_register');
|
116 |
add_filter( 'show_admin_bar' , 'wppb_show_admin_bar'); // set the front-end admin bar to show/hide
|
|
|
|
|
|
|
117 |
}
|
3 |
Plugin Name: Profile Builder
|
4 |
Plugin URI: http://www.cozmoslabs.com/2011/04/12/wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin/
|
5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed.
|
6 |
+
Version: 1.0.9
|
7 |
Author: Reflection Media
|
8 |
Author URI: http://reflectionmedia.ro
|
9 |
License: GPL2
|
114 |
include_once('includes/wppb-front-end-register.php'); // include the menu file for the register screen
|
115 |
add_shortcode('wppb-register', 'wppb_front_end_register');
|
116 |
add_filter( 'show_admin_bar' , 'wppb_show_admin_bar'); // set the front-end admin bar to show/hide
|
117 |
+
|
118 |
+
/* Allow shortcodes to be used in the text widgets */
|
119 |
+
add_filter('widget_text', 'do_shortcode');
|
120 |
}
|
readme.txt
CHANGED
@@ -2,15 +2,15 @@
|
|
2 |
|
3 |
Contributors: reflectionmedia, barinagabriel
|
4 |
Donate link: http://www.cozmoslabs.com/2011/04/12/wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin
|
5 |
-
Tags: user registration, custom field registration, customize profile, user fields, builder, profile builder
|
6 |
Requires at least: 3.1
|
7 |
-
Tested up to: 3.1
|
8 |
-
Stable tag: 1.0.
|
9 |
|
10 |
|
11 |
Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed.
|
12 |
|
13 |
-
|
14 |
== Description ==
|
15 |
|
16 |
Profile Builder lets you customize your website by adding a front-end menu for all your users,
|
@@ -64,6 +64,10 @@ No, only fields visible to the users will/can be modified/updated.
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
|
|
67 |
= 1.0.6 =
|
68 |
Apparently the WordPress.org svn converts my EOL from Windows to Mac and because of that you get "The plugin does not have a valid header."
|
69 |
|
2 |
|
3 |
Contributors: reflectionmedia, barinagabriel
|
4 |
Donate link: http://www.cozmoslabs.com/2011/04/12/wordpress-profile-builder-a-front-end-user-registration-login-and-edit-profile-plugin
|
5 |
+
Tags: registration, profile, user registration, custom field registration, customize profile, user fields, builder, profile builder
|
6 |
Requires at least: 3.1
|
7 |
+
Tested up to: 3.1.2
|
8 |
+
Stable tag: 1.0.9
|
9 |
|
10 |
|
11 |
Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed.
|
12 |
|
13 |
+
|
14 |
== Description ==
|
15 |
|
16 |
Profile Builder lets you customize your website by adding a front-end menu for all your users,
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 1.0.9 =
|
68 |
+
Bugfix - On the edit profile page the website field added a new http:// everytime you updated your profile.
|
69 |
+
Bugfix/ExtraFeature - Add support for shortcodes to be run in a text widget area.
|
70 |
+
|
71 |
= 1.0.6 =
|
72 |
Apparently the WordPress.org svn converts my EOL from Windows to Mac and because of that you get "The plugin does not have a valid header."
|
73 |
|