Version Description
Minor changes to the readme file.
Download this release
Release Info
Developer | barinagabriel |
Plugin | User registration & user profile – Profile Builder |
Version | 1.1.29 |
Comparing to | |
See all releases |
Code changes from version 1.1.28 to 1.1.29
- {tags/1.1.27/trunk/assets → assets}/css/front.end.css +0 -0
- {tags/1.1.27/trunk/assets → assets}/css/premium.style.css +0 -0
- {tags/1.1.27/trunk/assets → assets}/css/style.css +0 -0
- {tags/1.1.10/assets → assets}/images/accept.png +0 -0
- {tags/1.1.10/assets → assets}/images/ad_image.png +0 -0
- {tags/1.1.10/assets → assets}/images/arrow_left.png +0 -0
- {tags/1.1.10/assets → assets}/images/arrow_right.png +0 -0
- {tags/1.1.10/assets → assets}/images/attachment.png +0 -0
- {tags/1.1.10/assets → assets}/images/bad.png +0 -0
- {tags/1.1.10/assets → assets}/images/black_px.png +0 -0
- {tags/1.1.10/assets → assets}/images/btn.png +0 -0
- {tags/1.1.27/trunk/assets → assets}/images/buy_now_button.png +0 -0
- {tags/1.1.10/assets → assets}/images/empty.gif +0 -0
- {tags/1.1.10/assets → assets}/images/good.png +0 -0
- {tags/1.1.10/assets → assets}/images/header.png +0 -0
- {tags/1.1.10/assets → assets}/images/header_classic.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_add.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_arrow.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_delete.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_delete_disabled.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_edit.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_error.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_header.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_up.png +0 -0
- {tags/1.1.10/assets → assets}/images/icon_up_down.png +0 -0
- {tags/1.1.10/assets → assets}/images/logo.png +0 -0
- {tags/1.1.10/assets → assets}/images/logo_free.png +0 -0
- {tags/1.1.10/assets → assets}/images/pb.png +0 -0
- {tags/1.1.10/assets → assets}/images/pb2.png +0 -0
- {tags/1.1.10/assets → assets}/images/pencil_delete.png +0 -0
- {tags/1.1.10/assets → assets}/images/pencil_delete2.png +0 -0
- {tags/1.1.10/assets → assets}/images/pre_bg.gif +0 -0
- {tags/1.1.10/assets → assets}/images/pre_classic_bg.gif +0 -0
- {tags/1.1.10/assets → assets}/images/select.png +0 -0
- {tags/1.1.10/assets → assets}/images/tabs_bg.png +0 -0
- {tags/1.1.10/assets → assets}/images/tabs_bg_classic.png +0 -0
- {tags/1.1.10/assets → assets}/images/toggle_tabs.png +0 -0
- {tags/1.1.26/assets → assets}/images/white-grad.png +0 -0
- {tags/1.1.10/assets → assets}/images/white_px.png +0 -0
- {tags/1.1.20/assets → assets}/js/jquery.extra.fields.js +0 -0
- {tags/1.1.27/trunk/classes → classes}/class.admin.php +0 -0
- {tags/1.1.27/trunk/front-end → front-end}/menu.file.php +0 -0
- {tags/1.1.27/trunk/front-end → front-end}/options.php +1 -1
- {tags/1.1.27/trunk/front-end → front-end}/wppb.edit.profile.php +0 -0
- {tags/1.1.27/trunk/front-end → front-end}/wppb.login.php +0 -0
- {tags/1.1.26/front-end → front-end}/wppb.recover.password.php +0 -0
- {tags/1.1.27/trunk/front-end → front-end}/wppb.register.php +0 -0
- {tags/1.1.27/trunk/functions → functions}/functions.load.php +0 -0
- trunk/index.php → index.php +0 -0
- trunk/readme.txt → readme.txt +0 -0
- {tags/1.0.1/screenshots → screenshots}/screenshot-1.jpg +0 -0
- {tags/1.0.1/screenshots → screenshots}/screenshot-2.jpg +0 -0
- {tags/1.0.1/screenshots → screenshots}/screenshot-3.jpg +0 -0
- {tags/1.1.10/screenshots → screenshots}/screenshot1.jpg +0 -0
- {tags/1.1.10/screenshots → screenshots}/screenshot2.jpg +0 -0
- {tags/1.1.10/screenshots → screenshots}/screenshot3.jpg +0 -0
- {tags/1.0.10/screenshots → screenshots}/screenshot6.jpg +0 -0
- {tags/1.0.10/screenshots → screenshots}/screenshot7.jpg +0 -0
- {tags/1.1.10/screenshots → screenshots}/screenshot8.jpg +0 -0
- tags/1.0.1/css/style.css +0 -38
- tags/1.0.1/includes/wppb-front-end-login.php +0 -86
- tags/1.0.1/includes/wppb-front-end-profile.php +0 -279
- tags/1.0.1/includes/wppb-front-end-register.php +0 -280
- tags/1.0.1/includes/wppb-menu-file.php +0 -330
- tags/1.0.1/profile-builder.php +0 -130
- tags/1.0.1/readme.txt +0 -71
- tags/1.0.1/uninstall.php +0 -10
- tags/1.0.10/css/style.css +0 -38
- tags/1.0.10/includes/wppb-front-end-login.php +0 -92
- tags/1.0.10/includes/wppb-front-end-profile.php +0 -317
- tags/1.0.10/includes/wppb-front-end-register.php +0 -284
- tags/1.0.10/includes/wppb-menu-file.php +0 -330
- tags/1.0.10/profile-builder.php +0 -120
- tags/1.0.10/readme.txt +0 -94
- tags/1.0.10/screenshots/screenshot1.jpg +0 -0
- tags/1.0.10/screenshots/screenshot2.jpg +0 -0
- tags/1.0.10/screenshots/screenshot3.jpg +0 -0
- tags/1.0.10/screenshots/screenshot4.jpg +0 -0
- tags/1.0.10/uninstall.php +0 -7
- tags/1.0.2/css/style.css +0 -38
- tags/1.0.2/includes/wppb-front-end-login.php +0 -86
- tags/1.0.2/includes/wppb-front-end-profile.php +0 -279
- tags/1.0.2/includes/wppb-front-end-register.php +0 -280
- tags/1.0.2/includes/wppb-menu-file.php +0 -330
- tags/1.0.2/profile-builder.php +0 -8
- tags/1.0.2/readme.txt +0 -74
- tags/1.0.2/screenshots/screenshot-1.jpg +0 -0
- tags/1.0.2/screenshots/screenshot-2.jpg +0 -0
- tags/1.0.2/screenshots/screenshot-3.jpg +0 -0
- tags/1.0.2/uninstall.php +0 -2
- tags/1.0.3/css/style.css +0 -38
- tags/1.0.3/includes/wppb-front-end-login.php +0 -86
- tags/1.0.3/includes/wppb-front-end-profile.php +0 -279
- tags/1.0.3/includes/wppb-front-end-register.php +0 -280
- tags/1.0.3/includes/wppb-menu-file.php +0 -330
- tags/1.0.3/profile-builder.php +0 -8
- tags/1.0.3/readme.txt +0 -74
- tags/1.0.3/screenshots/screenshot-1.jpg +0 -0
- tags/1.0.3/screenshots/screenshot-2.jpg +0 -0
- tags/1.0.3/screenshots/screenshot-3.jpg +0 -0
- tags/1.0.3/uninstall.php +0 -2
- tags/1.0.4/css/style.css +0 -38
- tags/1.0.4/includes/wppb-front-end-login.php +0 -86
- tags/1.0.4/includes/wppb-front-end-profile.php +0 -279
- tags/1.0.4/includes/wppb-front-end-register.php +0 -280
- tags/1.0.4/includes/wppb-menu-file.php +0 -330
- tags/1.0.4/profile-builder.php +0 -8
- tags/1.0.4/readme.txt +0 -74
- tags/1.0.4/screenshots/screenshot-1.jpg +0 -0
- tags/1.0.4/screenshots/screenshot-2.jpg +0 -0
- tags/1.0.4/screenshots/screenshot-3.jpg +0 -0
- tags/1.0.4/uninstall.php +0 -2
- tags/1.0.5/css/style.css +0 -38
- tags/1.0.5/includes/wppb-front-end-login.php +0 -86
- tags/1.0.5/includes/wppb-front-end-profile.php +0 -279
- tags/1.0.5/includes/wppb-front-end-register.php +0 -280
- tags/1.0.5/includes/wppb-menu-file.php +0 -330
- tags/1.0.5/profile-builder.php +0 -117
- tags/1.0.5/readme.txt +0 -83
- tags/1.0.5/screenshots/screenshot-1.jpg +0 -0
- tags/1.0.5/screenshots/screenshot-2.jpg +0 -0
- tags/1.0.5/screenshots/screenshot-3.jpg +0 -0
- tags/1.0.5/uninstall.php +0 -7
- tags/1.0.6/css/style.css +0 -38
- tags/1.0.6/includes/wppb-front-end-login.php +0 -86
- tags/1.0.6/includes/wppb-front-end-profile.php +0 -279
- tags/1.0.6/includes/wppb-front-end-register.php +0 -280
- tags/1.0.6/includes/wppb-menu-file.php +0 -330
- tags/1.0.6/profile-builder.php +0 -117
- tags/1.0.6/readme.txt +0 -86
- tags/1.0.6/screenshots/screenshot-1.jpg +0 -0
- tags/1.0.6/screenshots/screenshot-2.jpg +0 -0
- tags/1.0.6/screenshots/screenshot-3.jpg +0 -0
- tags/1.0.6/uninstall.php +0 -2
- tags/1.0.7/css/style.css +0 -38
- tags/1.0.7/includes/wppb-front-end-login.php +0 -86
- tags/1.0.7/includes/wppb-front-end-profile.php +0 -279
- tags/1.0.7/includes/wppb-front-end-register.php +0 -280
- tags/1.0.7/includes/wppb-menu-file.php +0 -330
- tags/1.0.7/profile-builder.php +0 -117
- tags/1.0.7/readme.txt +0 -86
- tags/1.0.7/screenshots/screenshot-1.jpg +0 -0
- tags/1.0.7/screenshots/screenshot-2.jpg +0 -0
- tags/1.0.7/screenshots/screenshot-3.jpg +0 -0
- tags/1.0.7/uninstall.php +0 -7
- tags/1.0.8/css/style.css +0 -38
- tags/1.0.8/includes/wppb-front-end-login.php +0 -86
- tags/1.0.8/includes/wppb-front-end-profile.php +0 -279
- tags/1.0.8/includes/wppb-front-end-register.php +0 -280
- tags/1.0.8/includes/wppb-menu-file.php +0 -330
- tags/1.0.8/profile-builder.php +0 -117
- tags/1.0.8/readme.txt +0 -86
- tags/1.0.8/screenshots/screenshot-1.jpg +0 -0
- tags/1.0.8/screenshots/screenshot-2.jpg +0 -0
- tags/1.0.8/screenshots/screenshot-3.jpg +0 -0
- tags/1.0.8/uninstall.php +0 -7
- tags/1.0.9/css/style.css +0 -38
- tags/1.0.9/includes/wppb-front-end-login.php +0 -92
- tags/1.0.9/includes/wppb-front-end-profile.php +0 -285
- tags/1.0.9/includes/wppb-front-end-register.php +0 -284
- tags/1.0.9/includes/wppb-menu-file.php +0 -330
- tags/1.0.9/profile-builder.php +0 -120
- tags/1.0.9/readme.txt +0 -90
- tags/1.0.9/screenshots/screenshot-1.jpg +0 -0
- tags/1.0.9/screenshots/screenshot-2.jpg +0 -0
- tags/1.0.9/screenshots/screenshot-3.jpg +0 -0
- tags/1.0.9/uninstall.php +0 -7
- tags/1.0/css/style.css +0 -38
- tags/1.0/includes/wppb-front-end-login.php +0 -86
- tags/1.0/includes/wppb-front-end-profile.php +0 -279
- tags/1.0/includes/wppb-front-end-register.php +0 -280
- tags/1.0/includes/wppb-menu-file.php +0 -330
- tags/1.0/profile-builder.php +0 -130
- tags/1.0/readme.txt +0 -62
- tags/1.0/screenshots/screenshot-1.jpg +0 -0
- tags/1.0/screenshots/screenshot-2.jpg +0 -0
- tags/1.0/screenshots/screenshot-3.jpg +0 -0
- tags/1.0/uninstall.php +0 -10
- tags/1.1.10/assets/css/front.end.css +0 -254
- tags/1.1.10/assets/css/premium.style.css +0 -1087
- tags/1.1.10/assets/css/style.css +0 -936
- tags/1.1.10/assets/js/jquery.extra.fields.js +0 -707
- tags/1.1.10/classes/class.admin.php +0 -175
- tags/1.1.10/front-end/menu.file.php +0 -327
- tags/1.1.10/front-end/options.php +0 -146
- tags/1.1.10/front-end/wppb.edit.profile.php +0 -935
- tags/1.1.10/front-end/wppb.login.php +0 -167
- tags/1.1.10/front-end/wppb.recover.password.php +0 -388
- tags/1.1.10/front-end/wppb.register.php +0 -844
- tags/1.1.10/functions/functions.load.php +0 -185
- tags/1.1.10/index.php +0 -131
- tags/1.1.10/readme.txt +0 -163
- tags/1.1.10/screenshots/screenshot-1.jpg +0 -0
- tags/1.1.10/screenshots/screenshot-2.jpg +0 -0
- tags/1.1.10/screenshots/screenshot-3.jpg +0 -0
- tags/1.1.10/screenshots/screenshot6.jpg +0 -0
- tags/1.1.10/screenshots/screenshot7.jpg +0 -0
- tags/1.1.10/translation/en_EN.mo +0 -0
- tags/1.1.10/translation/en_EN.po +0 -499
- tags/1.1.10/translation/profilebuilder-cs_CZ.po +0 -841
- tags/1.1.10/translation/profilebuilder-de_DE.po +0 -499
- tags/1.1.10/translation/profilebuilder-en_US.mo +0 -0
- tags/1.1.10/translation/profilebuilder-en_US.po +0 -1051
- tags/1.1.10/translation/profilebuilder-fr_FR.po +0 -499
- tags/1.1.10/translation/profilebuilder-hu_HU.po +0 -499
- tags/1.1.10/translation/profilebuilder-it_IT.po +0 -499
- tags/1.1.10/translation/profilebuilder-nb_NO.po +0 -499
- tags/1.1.10/translation/profilebuilder-nl_NL.mo +0 -0
- tags/1.1.10/translation/profilebuilder-nl_NL.po +0 -182
{tags/1.1.27/trunk/assets → assets}/css/front.end.css
RENAMED
File without changes
|
{tags/1.1.27/trunk/assets → assets}/css/premium.style.css
RENAMED
File without changes
|
{tags/1.1.27/trunk/assets → assets}/css/style.css
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/accept.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/ad_image.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/arrow_left.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/arrow_right.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/attachment.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/bad.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/black_px.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/btn.png
RENAMED
File without changes
|
{tags/1.1.27/trunk/assets → assets}/images/buy_now_button.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/empty.gif
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/good.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/header.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/header_classic.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_add.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_arrow.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_delete.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_delete_disabled.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_edit.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_error.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_header.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_up.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/icon_up_down.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/logo.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/logo_free.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/pb.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/pb2.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/pencil_delete.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/pencil_delete2.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/pre_bg.gif
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/pre_classic_bg.gif
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/select.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/tabs_bg.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/tabs_bg_classic.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/toggle_tabs.png
RENAMED
File without changes
|
{tags/1.1.26/assets → assets}/images/white-grad.png
RENAMED
File without changes
|
{tags/1.1.10/assets → assets}/images/white_px.png
RENAMED
File without changes
|
{tags/1.1.20/assets → assets}/js/jquery.extra.fields.js
RENAMED
File without changes
|
{tags/1.1.27/trunk/classes → classes}/class.admin.php
RENAMED
File without changes
|
{tags/1.1.27/trunk/front-end → front-end}/menu.file.php
RENAMED
File without changes
|
{tags/1.1.27/trunk/front-end → front-end}/options.php
RENAMED
@@ -25,7 +25,7 @@ Original Author URI: http://valendesigns.com
|
|
25 |
?>
|
26 |
<div class="info basic-version-info">
|
27 |
<img src="<?php echo WPPB_PLUGIN_URL ?>/assets/images/ad_image.png" alt="Profile Builder Pro" />
|
28 |
-
<a href="http://www.cozmoslabs.com/wordpress-profile-builder
|
29 |
</div>
|
30 |
<?php
|
31 |
}
|
25 |
?>
|
26 |
<div class="info basic-version-info">
|
27 |
<img src="<?php echo WPPB_PLUGIN_URL ?>/assets/images/ad_image.png" alt="Profile Builder Pro" />
|
28 |
+
<a href="http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=link&utm_campaign=ProfileBuilderFree" alt="Profile Builder Pro" title="Buy Profile Builder Pro"><img id="wppb_buyNowButton" src="<?php echo WPPB_PLUGIN_URL ?>/assets/images/buy_now_button.png"/></a>
|
29 |
</div>
|
30 |
<?php
|
31 |
}
|
{tags/1.1.27/trunk/front-end → front-end}/wppb.edit.profile.php
RENAMED
File without changes
|
{tags/1.1.27/trunk/front-end → front-end}/wppb.login.php
RENAMED
File without changes
|
{tags/1.1.26/front-end → front-end}/wppb.recover.password.php
RENAMED
File without changes
|
{tags/1.1.27/trunk/front-end → front-end}/wppb.register.php
RENAMED
File without changes
|
{tags/1.1.27/trunk/functions → functions}/functions.load.php
RENAMED
File without changes
|
trunk/index.php → index.php
RENAMED
File without changes
|
trunk/readme.txt → readme.txt
RENAMED
File without changes
|
{tags/1.0.1/screenshots → screenshots}/screenshot-1.jpg
RENAMED
File without changes
|
{tags/1.0.1/screenshots → screenshots}/screenshot-2.jpg
RENAMED
File without changes
|
{tags/1.0.1/screenshots → screenshots}/screenshot-3.jpg
RENAMED
File without changes
|
{tags/1.1.10/screenshots → screenshots}/screenshot1.jpg
RENAMED
File without changes
|
{tags/1.1.10/screenshots → screenshots}/screenshot2.jpg
RENAMED
File without changes
|
{tags/1.1.10/screenshots → screenshots}/screenshot3.jpg
RENAMED
File without changes
|
{tags/1.0.10/screenshots → screenshots}/screenshot6.jpg
RENAMED
File without changes
|
{tags/1.0.10/screenshots → screenshots}/screenshot7.jpg
RENAMED
File without changes
|
{tags/1.1.10/screenshots → screenshots}/screenshot8.jpg
RENAMED
File without changes
|
tags/1.0.1/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.1/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.1/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.1/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.1/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.1/profile-builder.php
DELETED
@@ -1,130 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Profile Builder
|
4 |
-
Plugin URI:
|
5 |
-
Description: Profile Builder lets you create, edit and delete custom user information-fields from the frontend, and also lets you add new, custom fields. You can use the following shortcodes: [wppb-edit-profile] for the front-end profile information, [wppb-login] for a log-in menu or [wppb-register] to register a new user.
|
6 |
-
Version: v1.0
|
7 |
-
Author: Reflection Media
|
8 |
-
Author URI: http://reflectionmedia.ro
|
9 |
-
License: GPL2
|
10 |
-
*/
|
11 |
-
|
12 |
-
|
13 |
-
/* Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
|
28 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
29 |
-
function wppb_initialize_variables(){
|
30 |
-
$wppb_default_settings = array( 'username' => 'show',
|
31 |
-
'firstname'=> 'show',
|
32 |
-
'lastname' => 'show',
|
33 |
-
'nickname' => 'show',
|
34 |
-
'dispname' => 'show',
|
35 |
-
'email' => 'show',
|
36 |
-
'website' => 'show',
|
37 |
-
'aim' => 'show',
|
38 |
-
'yahoo' => 'show',
|
39 |
-
'jabber' => 'show',
|
40 |
-
'bio' => 'show',
|
41 |
-
'password' => 'show' );
|
42 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
43 |
-
add_option( 'wppb_default_style', 'yes');
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
global $wp_roles;
|
48 |
-
|
49 |
-
$all_roles = $wp_roles->roles;
|
50 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
51 |
-
|
52 |
-
|
53 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
54 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
55 |
-
$rolesArray = array();
|
56 |
-
foreach ( $editable_roles as $key => $data )
|
57 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
58 |
-
$rolesArray = array_reverse($rolesArray,true);
|
59 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
60 |
-
}
|
61 |
-
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
function wppb_create_menu(){
|
67 |
-
add_submenu_page('users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderSettings', 'wppb_display_menu');
|
68 |
-
}
|
69 |
-
|
70 |
-
|
71 |
-
function wppb_register_settings() { // whitelist options, you can add more register_settings changing the second parameter
|
72 |
-
register_setting( 'wppb-option-group', 'wppb_default_settings' );
|
73 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
74 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
75 |
-
}
|
76 |
-
|
77 |
-
|
78 |
-
function wppb_add_plugin_stylesheet() {
|
79 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
80 |
-
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
81 |
-
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
82 |
-
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
83 |
-
wp_register_style('wppb_stylesheet', $styleUrl);
|
84 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
85 |
-
}
|
86 |
-
}
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
function wppb_show_admin_bar($content){
|
92 |
-
global $current_user;
|
93 |
-
|
94 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
95 |
-
|
96 |
-
if ($admintSettingsPresent != 'not_found'){
|
97 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
98 |
-
$userRole = ($current_user->data->wp_capabilities);
|
99 |
-
if ($userRole != NULL){
|
100 |
-
$currentRole = key($userRole);
|
101 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
102 |
-
if ($getSettings == 'show')
|
103 |
-
return true;
|
104 |
-
elseif ($getSettings == 'hide')
|
105 |
-
return false;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
else
|
109 |
-
return true;
|
110 |
-
}
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
if (is_admin() ){ // if we are in the admin menu
|
118 |
-
include_once('includes/wppb-menu-file.php'); // include the menu file
|
119 |
-
add_action('admin_init', 'wppb_register_settings'); // register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin"
|
120 |
-
add_action('admin_menu','wppb_create_menu'); // call the wppb_create_menu function
|
121 |
-
}else{ // if we aren't in the admin back-end menu, aka we are in the front-end view
|
122 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
123 |
-
include_once('includes/wppb-front-end-profile.php'); // include the menu file for the profile informations
|
124 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
125 |
-
include_once('includes/wppb-front-end-login.php'); // include the menu file for the login screen
|
126 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
127 |
-
include_once('includes/wppb-front-end-register.php'); // include the menu file for the register screen
|
128 |
-
add_shortcode('wppb-register', 'wppb_front_end_register');
|
129 |
-
add_filter( 'show_admin_bar' , 'wppb_show_admin_bar'); // set the front-end admin bar to show/hide
|
130 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.1/readme.txt
DELETED
@@ -1,71 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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.1
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
64 |
-
|
65 |
-
== Changelog ==
|
66 |
-
|
67 |
-
= 1.0.1 =
|
68 |
-
Changes to the ReadMe File
|
69 |
-
|
70 |
-
= 1.0 =
|
71 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.1/uninstall.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
4 |
-
exit (); // If uninstall not called from WordPress exit
|
5 |
-
|
6 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
7 |
-
delete_option( 'wppb_default_style' ); // Delete "use default css or not" settings
|
8 |
-
delete_option( 'wppb_display_admin_settings' ); // Delete display admin bar option
|
9 |
-
|
10 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.10/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.10/includes/wppb-front-end-login.php
DELETED
@@ -1,92 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
24 |
-
|
25 |
-
if ( is_user_logged_in() ) : // Already logged in
|
26 |
-
global $user_ID;
|
27 |
-
$wppb_user = get_userdata( $user_ID );
|
28 |
-
if($wppb_user->display_name == ''){
|
29 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
30 |
-
}
|
31 |
-
|
32 |
-
?>
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
<p class="alert">
|
38 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
39 |
-
</p><!-- .alert -->
|
40 |
-
|
41 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
42 |
-
<?php
|
43 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
44 |
-
if($wppb_login->display_name == ''){
|
45 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
46 |
-
}
|
47 |
-
|
48 |
-
?>
|
49 |
-
|
50 |
-
<p class="success">
|
51 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
52 |
-
</p><!-- .success-->
|
53 |
-
<?php else : // Not logged in ?>
|
54 |
-
|
55 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
56 |
-
<p class="error">
|
57 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
58 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
59 |
-
</p><!-- .error -->
|
60 |
-
<?php endif; ?>
|
61 |
-
|
62 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
63 |
-
<p class="login-form-username">
|
64 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
65 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
66 |
-
</p><!-- .form-username -->
|
67 |
-
|
68 |
-
<p class="login-form-password">
|
69 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
70 |
-
<input type="password" name="password" id="password" class="text-input" />
|
71 |
-
</p><!-- .form-password -->
|
72 |
-
<p class="login-form-submit">
|
73 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
74 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
75 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
76 |
-
<input type="hidden" name="action" value="log-in" />
|
77 |
-
</p><!-- .form-submit -->
|
78 |
-
<p>
|
79 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
80 |
-
</p>
|
81 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
82 |
-
</form><!-- .sign-in -->
|
83 |
-
|
84 |
-
<?php endif;?>
|
85 |
-
</div>
|
86 |
-
<?php
|
87 |
-
|
88 |
-
$output = ob_get_contents();
|
89 |
-
ob_end_clean();
|
90 |
-
return $output;
|
91 |
-
|
92 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.10/includes/wppb-front-end-profile.php
DELETED
@@ -1,317 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
wp_update_user only attempts to clear and reset cookies if it's updating the password.
|
4 |
-
The php function setcookie(), used in both the cookie-clearing and cookie-resetting functions,
|
5 |
-
adds to the page headers and therefore must be called within the first php tag on the page, and
|
6 |
-
before the WordPress get_header() function. Since wp_update_user needs this, it must be at the
|
7 |
-
beginning of the page as well.
|
8 |
-
*/
|
9 |
-
$wppb_saved_pass = false;
|
10 |
-
$wppb_error_pass = false;
|
11 |
-
|
12 |
-
function wppb_save_the_password(){
|
13 |
-
global $wppb_saved_pass;
|
14 |
-
global $wppb_error_pass;
|
15 |
-
/* Load registration file. */
|
16 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
17 |
-
/* Get user info. */
|
18 |
-
global $current_user;
|
19 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] )
|
23 |
-
{
|
24 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
25 |
-
$wppb_saved_pass = true;
|
26 |
-
} else {
|
27 |
-
$wppb_error_pass = true;
|
28 |
-
}
|
29 |
-
}
|
30 |
-
}
|
31 |
-
}
|
32 |
-
add_action('init', 'wppb_save_the_password');
|
33 |
-
|
34 |
-
/* the shortcode function */
|
35 |
-
function wppb_front_end_profile_info() {
|
36 |
-
global $wppb_saved_pass;
|
37 |
-
global $wppb_error_pass;
|
38 |
-
|
39 |
-
ob_start();
|
40 |
-
get_currentuserinfo();
|
41 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
42 |
-
$changesSaved = 'no';
|
43 |
-
|
44 |
-
/* Load registration file. */
|
45 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
46 |
-
/* Get user info. */
|
47 |
-
global $current_user;
|
48 |
-
/* If profile was saved, update profile. */
|
49 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
50 |
-
|
51 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
52 |
-
$thisEmail = email_exists( $_POST['email'] );
|
53 |
-
else $thisEmail = $current_user->id;
|
54 |
-
|
55 |
-
/* Update user password. */
|
56 |
-
if ($wppb_saved_pass == true){
|
57 |
-
$changesSaved = 'yes';
|
58 |
-
}
|
59 |
-
if ($wppb_error_pass == true){
|
60 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
61 |
-
}
|
62 |
-
|
63 |
-
|
64 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
65 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}else
|
69 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
70 |
-
}else
|
71 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
/* Update user information. */
|
76 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
77 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
81 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
82 |
-
$changesSaved = 'yes';
|
83 |
-
}
|
84 |
-
|
85 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
86 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
87 |
-
$changesSaved = 'yes';
|
88 |
-
}
|
89 |
-
|
90 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
91 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
92 |
-
$changesSaved = 'yes';
|
93 |
-
}
|
94 |
-
|
95 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
96 |
-
$wppbPos = strpos($_POST['website'], 'http://');
|
97 |
-
if($wppbPos !== FALSE){
|
98 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
99 |
-
$changesSaved = 'yes';
|
100 |
-
}else{
|
101 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
102 |
-
$changesSaved = 'yes';
|
103 |
-
}
|
104 |
-
}
|
105 |
-
|
106 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
107 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
108 |
-
$changesSaved = 'yes';
|
109 |
-
}
|
110 |
-
|
111 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
112 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
113 |
-
$changesSaved = 'yes';
|
114 |
-
}
|
115 |
-
|
116 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
117 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
118 |
-
$changesSaved = 'yes';
|
119 |
-
}
|
120 |
-
|
121 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
122 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
123 |
-
$changesSaved = 'yes';
|
124 |
-
}
|
125 |
-
|
126 |
-
}
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
?>
|
135 |
-
<div class="wppb_holder" id="wppb_modify">
|
136 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
137 |
-
|
138 |
-
<p class="warning">
|
139 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
140 |
-
</p><!-- .warning -->
|
141 |
-
|
142 |
-
<?php else : ?>
|
143 |
-
|
144 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
145 |
-
<?php
|
146 |
-
if ($changesSaved == 'yes'){
|
147 |
-
echo '<p class="changes-saved">';
|
148 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
149 |
-
echo'</p><!-- .changes-saved -->';
|
150 |
-
}
|
151 |
-
?>
|
152 |
-
|
153 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
154 |
-
<p>
|
155 |
-
<strong>Name</strong>
|
156 |
-
</p>
|
157 |
-
<?php
|
158 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
159 |
-
<p class="username">
|
160 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
161 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
162 |
-
</p><!-- .first_name -->';
|
163 |
-
}
|
164 |
-
?>
|
165 |
-
|
166 |
-
<?php
|
167 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
168 |
-
<p class="first_name">
|
169 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
170 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
171 |
-
</p><!-- .first_name -->';
|
172 |
-
}
|
173 |
-
?>
|
174 |
-
|
175 |
-
<?php
|
176 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
177 |
-
<p class="last_name">
|
178 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
179 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
180 |
-
</p><!-- .last_name -->';
|
181 |
-
}
|
182 |
-
?>
|
183 |
-
|
184 |
-
<?php
|
185 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
186 |
-
<p class="nickname">
|
187 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
188 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
189 |
-
</p><!-- .nickname -->';
|
190 |
-
}
|
191 |
-
?>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
195 |
-
<p class="display_name">
|
196 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
197 |
-
<select name="display_name" id="display_name">';
|
198 |
-
$public_display = array();
|
199 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
200 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
201 |
-
if ( !empty($thisFirstName))
|
202 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
203 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
204 |
-
if ( !empty($thisLastName))
|
205 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
206 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
207 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
208 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
209 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
210 |
-
}
|
211 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
212 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
213 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
214 |
-
$public_display = array_map( 'trim', $public_display );
|
215 |
-
foreach ( $public_display as $id => $item ) {
|
216 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
217 |
-
}
|
218 |
-
echo'</select>
|
219 |
-
</p><!-- .display_name -->';
|
220 |
-
}
|
221 |
-
?>
|
222 |
-
|
223 |
-
|
224 |
-
<p>
|
225 |
-
<strong>Contact Info</strong>
|
226 |
-
</p>
|
227 |
-
|
228 |
-
<?php
|
229 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
230 |
-
<p class="form-email">
|
231 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
232 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
233 |
-
</p><!-- .form-email -->';
|
234 |
-
}
|
235 |
-
?>
|
236 |
-
|
237 |
-
<?php
|
238 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
239 |
-
<p class="form-website">
|
240 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
241 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
242 |
-
</p><!-- .form-website -->';
|
243 |
-
}
|
244 |
-
?>
|
245 |
-
|
246 |
-
<?php
|
247 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
248 |
-
<p class="form-aim">
|
249 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
250 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
251 |
-
</p><!-- .form-aim -->';
|
252 |
-
}
|
253 |
-
?>
|
254 |
-
|
255 |
-
<?php
|
256 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
257 |
-
<p class="form-yim">
|
258 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
259 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
260 |
-
</p><!-- .form-yim -->';
|
261 |
-
}
|
262 |
-
?>
|
263 |
-
|
264 |
-
<?php
|
265 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
266 |
-
<p class="form-jabber">
|
267 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
268 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
269 |
-
</p><!-- .form-jabber -->';
|
270 |
-
}
|
271 |
-
?>
|
272 |
-
|
273 |
-
<p>
|
274 |
-
<strong>About Yourself</strong>
|
275 |
-
</p>
|
276 |
-
|
277 |
-
<?php
|
278 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
279 |
-
<p class="form-description">
|
280 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
281 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
282 |
-
</p><!-- .form-description -->';
|
283 |
-
}
|
284 |
-
?>
|
285 |
-
|
286 |
-
<?php
|
287 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
288 |
-
<p class="form-password">
|
289 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
290 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
291 |
-
</p><!-- .form-password -->
|
292 |
-
|
293 |
-
<p class="form-password">
|
294 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
295 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
296 |
-
</p><!-- .form-password -->';
|
297 |
-
}
|
298 |
-
?>
|
299 |
-
|
300 |
-
|
301 |
-
<p class="form-submit">
|
302 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
303 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
304 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
305 |
-
</p><!-- .form-submit -->
|
306 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
307 |
-
</form><!-- #edituser -->
|
308 |
-
|
309 |
-
<?php endif; ?>
|
310 |
-
</div>
|
311 |
-
<?php
|
312 |
-
$output = ob_get_contents();
|
313 |
-
ob_end_clean();
|
314 |
-
return $output;
|
315 |
-
}
|
316 |
-
|
317 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.10/includes/wppb-front-end-register.php
DELETED
@@ -1,284 +0,0 @@
|
|
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();
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
11 |
-
|
12 |
-
/* Check if users can register. */
|
13 |
-
$registration = get_option( 'users_can_register' );
|
14 |
-
|
15 |
-
/* If user registered, input info. */
|
16 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
17 |
-
|
18 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
19 |
-
$userdata = array(
|
20 |
-
'user_pass' => $user_pass,
|
21 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
22 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
23 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
24 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
25 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
26 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
27 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
28 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
29 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
30 |
-
'description' => esc_attr( $_POST['description'] ),
|
31 |
-
'role' => get_option( 'default_role' ),
|
32 |
-
);
|
33 |
-
|
34 |
-
if ( !$userdata['user_login'] )
|
35 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
36 |
-
elseif ( username_exists($userdata['user_login']) )
|
37 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
38 |
-
|
39 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
40 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
41 |
-
elseif ( email_exists($userdata['user_email']) )
|
42 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
43 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
44 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
45 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
46 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
47 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
48 |
-
}
|
49 |
-
|
50 |
-
else{
|
51 |
-
$the_registered_name = $_POST['user_name'];
|
52 |
-
$new_user = wp_insert_user( $userdata );
|
53 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
54 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
55 |
-
$fromemail = get_bloginfo('name');
|
56 |
-
$mailPassword = $_POST['passw1'];
|
57 |
-
$mailUsername = $_POST['user_name'];
|
58 |
-
$subject = 'A new account has been created for you.';
|
59 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
60 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
61 |
-
if( $messageSent == TRUE)
|
62 |
-
$sentEmailStatus = 2;
|
63 |
-
else
|
64 |
-
$sentEmailStatus = 1;
|
65 |
-
}
|
66 |
-
|
67 |
-
}
|
68 |
-
}
|
69 |
-
|
70 |
-
?>
|
71 |
-
<div class="wppb_holder" id="wppb_register">
|
72 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
73 |
-
<?php
|
74 |
-
global $user_ID;
|
75 |
-
$login = get_userdata( $user_ID );
|
76 |
-
if($login->display_name == ''){
|
77 |
-
$login->display_name = $login->user_login;
|
78 |
-
}
|
79 |
-
?>
|
80 |
-
<p class="log-in-out alert">
|
81 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
82 |
-
</p><!-- .log-in-out .alert -->
|
83 |
-
|
84 |
-
<?php elseif ( $new_user ) : ?>
|
85 |
-
|
86 |
-
|
87 |
-
<?php
|
88 |
-
|
89 |
-
echo'<p class="success">';
|
90 |
-
if ( current_user_can( 'create_users' ) )
|
91 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
92 |
-
else
|
93 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
94 |
-
echo'</p><!-- .success -->';
|
95 |
-
?>
|
96 |
-
|
97 |
-
<?php
|
98 |
-
if(isset($_POST['send_password'])){
|
99 |
-
if ($sentEmailStatus == 1){
|
100 |
-
echo '<p class="error">';
|
101 |
-
echo 'An error occured while trying to send the notification email.';
|
102 |
-
echo '</p><!-- .error -->';
|
103 |
-
}elseif ($sentEmailStatus == 2){
|
104 |
-
echo '<p class="success">';
|
105 |
-
echo 'An email containing the username and password was successfully sent.';
|
106 |
-
echo '</p><!-- .success -->';
|
107 |
-
}
|
108 |
-
}
|
109 |
-
?>
|
110 |
-
<?php else : ?>
|
111 |
-
|
112 |
-
<?php if ( $error ) : ?>
|
113 |
-
<p class="error">
|
114 |
-
<?php echo $error; ?>
|
115 |
-
</p><!-- .error -->
|
116 |
-
<?php endif; ?>
|
117 |
-
|
118 |
-
|
119 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
120 |
-
<p class="alert">
|
121 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
122 |
-
</p><!-- .alert -->
|
123 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
124 |
-
<p class="alert">
|
125 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
126 |
-
</p><!-- .alert -->
|
127 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
128 |
-
<p class="alert">
|
129 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
130 |
-
</p><!-- .alert -->
|
131 |
-
|
132 |
-
<?php endif; ?>
|
133 |
-
|
134 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
135 |
-
|
136 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
137 |
-
|
138 |
-
<p>
|
139 |
-
<strong>Name</strong>
|
140 |
-
</p>
|
141 |
-
|
142 |
-
<?php
|
143 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
144 |
-
<p class="form-username">
|
145 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
146 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
147 |
-
</p><!-- .form-username -->';
|
148 |
-
}
|
149 |
-
?>
|
150 |
-
|
151 |
-
<?php
|
152 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
153 |
-
<p class="first_name">
|
154 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
155 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
156 |
-
</p><!-- .first_name -->';
|
157 |
-
}
|
158 |
-
?>
|
159 |
-
|
160 |
-
<?php
|
161 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
162 |
-
<p class="last_name">
|
163 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
164 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
165 |
-
</p><!-- .last_name -->';
|
166 |
-
}
|
167 |
-
?>
|
168 |
-
|
169 |
-
<?php
|
170 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
171 |
-
<p class="nickname">
|
172 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
173 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
174 |
-
</p><!-- .nickname -->';
|
175 |
-
}
|
176 |
-
?>
|
177 |
-
|
178 |
-
<p>
|
179 |
-
<strong>Contact Info</strong>
|
180 |
-
</p>
|
181 |
-
|
182 |
-
<?php
|
183 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
184 |
-
<p class="form-email">
|
185 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
186 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
187 |
-
</p><!-- .form-email -->';
|
188 |
-
}
|
189 |
-
?>
|
190 |
-
|
191 |
-
<?php
|
192 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
193 |
-
<p class="form-website">
|
194 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
195 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
196 |
-
</p><!-- .form-website -->';
|
197 |
-
}
|
198 |
-
?>
|
199 |
-
|
200 |
-
<?php
|
201 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
202 |
-
<p class="form-aim">
|
203 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
204 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
205 |
-
</p><!-- .form-aim -->';
|
206 |
-
}
|
207 |
-
?>
|
208 |
-
|
209 |
-
<?php
|
210 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
211 |
-
<p class="form-yim">
|
212 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
213 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
214 |
-
</p><!-- .form-yim -->';
|
215 |
-
}
|
216 |
-
?>
|
217 |
-
|
218 |
-
<?php
|
219 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
220 |
-
<p class="form-jabber">
|
221 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
222 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
223 |
-
</p><!-- .form-jabber -->';
|
224 |
-
}
|
225 |
-
?>
|
226 |
-
|
227 |
-
<p>
|
228 |
-
<strong>About Yourself</strong>
|
229 |
-
</p>
|
230 |
-
|
231 |
-
<?php
|
232 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
233 |
-
<p class="form-description">
|
234 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
235 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
236 |
-
</p><!-- .form-description -->';
|
237 |
-
}
|
238 |
-
?>
|
239 |
-
|
240 |
-
<?php
|
241 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
242 |
-
<p class="form-password">
|
243 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
244 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
245 |
-
</p><!-- .form-password -->
|
246 |
-
|
247 |
-
<p class="form-password">
|
248 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
249 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
250 |
-
</p><!-- .form-password -->';
|
251 |
-
}
|
252 |
-
?>
|
253 |
-
<?php
|
254 |
-
if ( current_user_can( 'delete_users' ) )
|
255 |
-
echo '
|
256 |
-
<p class="send-confirmation-email">
|
257 |
-
<label for="pass1">';
|
258 |
-
//_e('Send Password? ', 'profilebuilder');
|
259 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
260 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
261 |
-
</p><!-- .send-confirmation-email -->';
|
262 |
-
?>
|
263 |
-
|
264 |
-
<p class="form-submit">
|
265 |
-
<?php echo $referer; ?>
|
266 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
267 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
268 |
-
</p><!-- .form-submit -->
|
269 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
270 |
-
</form><!-- #adduser -->
|
271 |
-
|
272 |
-
<?php endif; ?>
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
|
276 |
-
|
277 |
-
</div>
|
278 |
-
<?php
|
279 |
-
$output = ob_get_contents();
|
280 |
-
ob_end_clean();
|
281 |
-
return $output;
|
282 |
-
}
|
283 |
-
|
284 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.10/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.10/profile-builder.php
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
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.10
|
7 |
-
Author: Reflection Media
|
8 |
-
Author URI: http://reflectionmedia.ro
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
== Copyright ==
|
12 |
-
Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
13 |
-
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
28 |
-
|
29 |
-
function wppb_initialize_variables(){
|
30 |
-
$wppb_default_settings = array( 'username' => 'show',
|
31 |
-
'firstname'=> 'show',
|
32 |
-
'lastname' => 'show',
|
33 |
-
'nickname' => 'show',
|
34 |
-
'dispname' => 'show',
|
35 |
-
'email' => 'show',
|
36 |
-
'website' => 'show',
|
37 |
-
'aim' => 'show',
|
38 |
-
'yahoo' => 'show',
|
39 |
-
'jabber' => 'show',
|
40 |
-
'bio' => 'show',
|
41 |
-
'password' => 'show' );
|
42 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
43 |
-
add_option( 'wppb_default_style', 'yes');
|
44 |
-
|
45 |
-
global $wp_roles;
|
46 |
-
$all_roles = $wp_roles->roles;
|
47 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
48 |
-
|
49 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
50 |
-
|
51 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
52 |
-
$rolesArray = array();
|
53 |
-
foreach ( $editable_roles as $key => $data )
|
54 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
55 |
-
$rolesArray = array_reverse($rolesArray,true);
|
56 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
function wppb_create_menu(){
|
62 |
-
add_submenu_page('users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderSettings', 'wppb_display_menu');
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
function wppb_register_settings() { // whitelist options, you can add more register_settings changing the second parameter
|
67 |
-
register_setting( 'wppb-option-group', 'wppb_default_settings' );
|
68 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
69 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
function wppb_add_plugin_stylesheet() {
|
74 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
75 |
-
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
76 |
-
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
77 |
-
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
78 |
-
wp_register_style('wppb_stylesheet', $styleUrl);
|
79 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
83 |
-
|
84 |
-
function wppb_show_admin_bar($content){
|
85 |
-
global $current_user;
|
86 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
87 |
-
if ($admintSettingsPresent != 'not_found'){
|
88 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
89 |
-
$userRole = ($current_user->data->wp_capabilities);
|
90 |
-
if ($userRole != NULL){
|
91 |
-
$currentRole = key($userRole);
|
92 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
93 |
-
if ($getSettings == 'show')
|
94 |
-
return true;
|
95 |
-
elseif ($getSettings == 'hide')
|
96 |
-
return false;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
else
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
|
103 |
-
|
104 |
-
if (is_admin() ){ // if we are in the admin menu
|
105 |
-
include_once('includes/wppb-menu-file.php'); // include the menu file
|
106 |
-
add_action('admin_init', 'wppb_register_settings'); // register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin"
|
107 |
-
add_action('admin_menu','wppb_create_menu'); // call the wppb_create_menu function
|
108 |
-
}else{ // if we aren't in the admin back-end menu, aka we are in the front-end view
|
109 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
110 |
-
include_once('includes/wppb-front-end-profile.php'); // include the menu file for the profile informations
|
111 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
112 |
-
include_once('includes/wppb-front-end-login.php'); // include the menu file for the login screen
|
113 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.10/readme.txt
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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.10
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
64 |
-
|
65 |
-
== Changelog ==
|
66 |
-
|
67 |
-
= 1.0.10 =
|
68 |
-
Bugfix - The wp_update_user attempts to clear and reset cookies if it's updating the password.
|
69 |
-
Because of that we get "headers already sent". Fixed by hooking into the init.
|
70 |
-
|
71 |
-
= 1.0.9 =
|
72 |
-
Bugfix - On the edit profile page the website field added a new http:// everytime you updated your profile.
|
73 |
-
Bugfix/ExtraFeature - Add support for shortcodes to be run in a text widget area.
|
74 |
-
|
75 |
-
= 1.0.6 =
|
76 |
-
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."
|
77 |
-
|
78 |
-
= 1.0.5 =
|
79 |
-
You can now actualy install the plugin. All because of a silly line break.
|
80 |
-
|
81 |
-
= 1.0.4 =
|
82 |
-
Still no Change.
|
83 |
-
|
84 |
-
= 1.0.3 =
|
85 |
-
No Change.
|
86 |
-
|
87 |
-
= 1.0.2 =
|
88 |
-
Small changes.
|
89 |
-
|
90 |
-
= 1.0.1 =
|
91 |
-
Changes to the ReadMe File
|
92 |
-
|
93 |
-
= 1.0 =
|
94 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.10/screenshots/screenshot1.jpg
DELETED
Binary file
|
tags/1.0.10/screenshots/screenshot2.jpg
DELETED
Binary file
|
tags/1.0.10/screenshots/screenshot3.jpg
DELETED
Binary file
|
tags/1.0.10/screenshots/screenshot4.jpg
DELETED
Binary file
|
tags/1.0.10/uninstall.php
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
3 |
-
exit (); // If uninstall not called from WordPress exit
|
4 |
-
|
5 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
6 |
-
delete_option( 'wppb_default_style' ); // Delete "use default css or not" settings
|
7 |
-
delete_option( 'wppb_display_admin_settings' ); // Delete display admin bar option
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.2/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.2/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.2/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.2/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.2/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.2/profile-builder.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/* Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
3 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
4 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
5 |
-
function wppb_create_menu(){
|
6 |
-
|
7 |
-
|
8 |
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
9 |
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
10 |
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
11 |
wp_register_style('wppb_stylesheet', $styleUrl);
|
12 |
wp_enqueue_style( 'wppb_stylesheet');
|
13 |
}
|
14 |
-
if (is_admin() ){ // if we are in the admin menu
|
15 |
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
1 |
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
2 |
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
3 |
wp_register_style('wppb_stylesheet', $styleUrl);
|
4 |
wp_enqueue_style( 'wppb_stylesheet');
|
5 |
}
|
|
|
6 |
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
tags/1.0.2/readme.txt
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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.2
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
64 |
-
|
65 |
-
== Changelog ==
|
66 |
-
|
67 |
-
= 1.0.2 =
|
68 |
-
Small changes.
|
69 |
-
|
70 |
-
= 1.0.1 =
|
71 |
-
Changes to the ReadMe File
|
72 |
-
|
73 |
-
= 1.0 =
|
74 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.2/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0.2/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0.2/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0.2/uninstall.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
|
|
|
tags/1.0.3/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.3/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.3/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.3/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.3/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.3/profile-builder.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/* Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
3 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
4 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
5 |
-
function wppb_create_menu(){
|
6 |
-
|
7 |
-
|
8 |
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
9 |
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
10 |
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
11 |
wp_register_style('wppb_stylesheet', $styleUrl);
|
12 |
wp_enqueue_style( 'wppb_stylesheet');
|
13 |
}
|
14 |
-
if (is_admin() ){ // if we are in the admin menu
|
15 |
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
1 |
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
2 |
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
3 |
wp_register_style('wppb_stylesheet', $styleUrl);
|
4 |
wp_enqueue_style( 'wppb_stylesheet');
|
5 |
}
|
|
|
6 |
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
tags/1.0.3/readme.txt
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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.3
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
64 |
-
|
65 |
-
== Changelog ==
|
66 |
-
|
67 |
-
= 1.0.2 =
|
68 |
-
Small changes.
|
69 |
-
|
70 |
-
= 1.0.1 =
|
71 |
-
Changes to the ReadMe File
|
72 |
-
|
73 |
-
= 1.0 =
|
74 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.3/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0.3/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0.3/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0.3/uninstall.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
|
|
|
tags/1.0.4/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.4/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.4/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.4/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.4/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.4/profile-builder.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/* Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
3 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
4 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
5 |
-
function wppb_create_menu(){
|
6 |
-
|
7 |
-
|
8 |
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
9 |
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
10 |
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
11 |
wp_register_style('wppb_stylesheet', $styleUrl);
|
12 |
wp_enqueue_style( 'wppb_stylesheet');
|
13 |
}
|
14 |
-
if (is_admin() ){ // if we are in the admin menu
|
15 |
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
1 |
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
2 |
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
3 |
wp_register_style('wppb_stylesheet', $styleUrl);
|
4 |
wp_enqueue_style( 'wppb_stylesheet');
|
5 |
}
|
|
|
6 |
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
tags/1.0.4/readme.txt
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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.4
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
64 |
-
|
65 |
-
== Changelog ==
|
66 |
-
|
67 |
-
= 1.0.2 =
|
68 |
-
Small changes.
|
69 |
-
|
70 |
-
= 1.0.1 =
|
71 |
-
Changes to the ReadMe File
|
72 |
-
|
73 |
-
= 1.0 =
|
74 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.4/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0.4/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0.4/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0.4/uninstall.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
|
|
|
tags/1.0.5/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.5/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.5/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.5/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.5/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.5/profile-builder.php
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
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.5
|
7 |
-
Author: Reflection Media
|
8 |
-
Author URI: http://reflectionmedia.ro
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
== Copyright ==
|
12 |
-
Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
13 |
-
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
28 |
-
|
29 |
-
function wppb_initialize_variables(){
|
30 |
-
$wppb_default_settings = array( 'username' => 'show',
|
31 |
-
'firstname'=> 'show',
|
32 |
-
'lastname' => 'show',
|
33 |
-
'nickname' => 'show',
|
34 |
-
'dispname' => 'show',
|
35 |
-
'email' => 'show',
|
36 |
-
'website' => 'show',
|
37 |
-
'aim' => 'show',
|
38 |
-
'yahoo' => 'show',
|
39 |
-
'jabber' => 'show',
|
40 |
-
'bio' => 'show',
|
41 |
-
'password' => 'show' );
|
42 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
43 |
-
add_option( 'wppb_default_style', 'yes');
|
44 |
-
|
45 |
-
global $wp_roles;
|
46 |
-
$all_roles = $wp_roles->roles;
|
47 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
48 |
-
|
49 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
50 |
-
|
51 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
52 |
-
$rolesArray = array();
|
53 |
-
foreach ( $editable_roles as $key => $data )
|
54 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
55 |
-
$rolesArray = array_reverse($rolesArray,true);
|
56 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
function wppb_create_menu(){
|
62 |
-
add_submenu_page('users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderSettings', 'wppb_display_menu');
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
function wppb_register_settings() { // whitelist options, you can add more register_settings changing the second parameter
|
67 |
-
register_setting( 'wppb-option-group', 'wppb_default_settings' );
|
68 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
69 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
function wppb_add_plugin_stylesheet() {
|
74 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
75 |
-
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
76 |
-
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
77 |
-
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
78 |
-
wp_register_style('wppb_stylesheet', $styleUrl);
|
79 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
83 |
-
|
84 |
-
function wppb_show_admin_bar($content){
|
85 |
-
global $current_user;
|
86 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
87 |
-
if ($admintSettingsPresent != 'not_found'){
|
88 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
89 |
-
$userRole = ($current_user->data->wp_capabilities);
|
90 |
-
if ($userRole != NULL){
|
91 |
-
$currentRole = key($userRole);
|
92 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
93 |
-
if ($getSettings == 'show')
|
94 |
-
return true;
|
95 |
-
elseif ($getSettings == 'hide')
|
96 |
-
return false;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
else
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
|
103 |
-
|
104 |
-
if (is_admin() ){ // if we are in the admin menu
|
105 |
-
include_once('includes/wppb-menu-file.php'); // include the menu file
|
106 |
-
add_action('admin_init', 'wppb_register_settings'); // register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin"
|
107 |
-
add_action('admin_menu','wppb_create_menu'); // call the wppb_create_menu function
|
108 |
-
}else{ // if we aren't in the admin back-end menu, aka we are in the front-end view
|
109 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
110 |
-
include_once('includes/wppb-front-end-profile.php'); // include the menu file for the profile informations
|
111 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
112 |
-
include_once('includes/wppb-front-end-login.php'); // include the menu file for the login screen
|
113 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.5/readme.txt
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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.5
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
64 |
-
|
65 |
-
== Changelog ==
|
66 |
-
|
67 |
-
= 1.0.5 =
|
68 |
-
You can now actualy install the plugin. All because of a silly line break.
|
69 |
-
|
70 |
-
= 1.0.4 =
|
71 |
-
Still no Change.
|
72 |
-
|
73 |
-
= 1.0.3 =
|
74 |
-
No Change.
|
75 |
-
|
76 |
-
= 1.0.2 =
|
77 |
-
Small changes.
|
78 |
-
|
79 |
-
= 1.0.1 =
|
80 |
-
Changes to the ReadMe File
|
81 |
-
|
82 |
-
= 1.0 =
|
83 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.5/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0.5/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0.5/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0.5/uninstall.php
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
3 |
-
exit (); // If uninstall not called from WordPress exit
|
4 |
-
|
5 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
6 |
-
delete_option( 'wppb_default_style' ); // Delete "use default css or not" settings
|
7 |
-
delete_option( 'wppb_display_admin_settings' ); // Delete display admin bar option
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.6/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.6/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.6/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.6/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.6/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.6/profile-builder.php
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
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.6
|
7 |
-
Author: Reflection Media
|
8 |
-
Author URI: http://reflectionmedia.ro
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
== Copyright ==
|
12 |
-
Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
13 |
-
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
28 |
-
|
29 |
-
function wppb_initialize_variables(){
|
30 |
-
$wppb_default_settings = array( 'username' => 'show',
|
31 |
-
'firstname'=> 'show',
|
32 |
-
'lastname' => 'show',
|
33 |
-
'nickname' => 'show',
|
34 |
-
'dispname' => 'show',
|
35 |
-
'email' => 'show',
|
36 |
-
'website' => 'show',
|
37 |
-
'aim' => 'show',
|
38 |
-
'yahoo' => 'show',
|
39 |
-
'jabber' => 'show',
|
40 |
-
'bio' => 'show',
|
41 |
-
'password' => 'show' );
|
42 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
43 |
-
add_option( 'wppb_default_style', 'yes');
|
44 |
-
|
45 |
-
global $wp_roles;
|
46 |
-
$all_roles = $wp_roles->roles;
|
47 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
48 |
-
|
49 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
50 |
-
|
51 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
52 |
-
$rolesArray = array();
|
53 |
-
foreach ( $editable_roles as $key => $data )
|
54 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
55 |
-
$rolesArray = array_reverse($rolesArray,true);
|
56 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
function wppb_create_menu(){
|
62 |
-
add_submenu_page('users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderSettings', 'wppb_display_menu');
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
function wppb_register_settings() { // whitelist options, you can add more register_settings changing the second parameter
|
67 |
-
register_setting( 'wppb-option-group', 'wppb_default_settings' );
|
68 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
69 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
function wppb_add_plugin_stylesheet() {
|
74 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
75 |
-
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
76 |
-
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
77 |
-
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
78 |
-
wp_register_style('wppb_stylesheet', $styleUrl);
|
79 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
83 |
-
|
84 |
-
function wppb_show_admin_bar($content){
|
85 |
-
global $current_user;
|
86 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
87 |
-
if ($admintSettingsPresent != 'not_found'){
|
88 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
89 |
-
$userRole = ($current_user->data->wp_capabilities);
|
90 |
-
if ($userRole != NULL){
|
91 |
-
$currentRole = key($userRole);
|
92 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
93 |
-
if ($getSettings == 'show')
|
94 |
-
return true;
|
95 |
-
elseif ($getSettings == 'hide')
|
96 |
-
return false;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
else
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
|
103 |
-
|
104 |
-
if (is_admin() ){ // if we are in the admin menu
|
105 |
-
include_once('includes/wppb-menu-file.php'); // include the menu file
|
106 |
-
add_action('admin_init', 'wppb_register_settings'); // register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin"
|
107 |
-
add_action('admin_menu','wppb_create_menu'); // call the wppb_create_menu function
|
108 |
-
}else{ // if we aren't in the admin back-end menu, aka we are in the front-end view
|
109 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
110 |
-
include_once('includes/wppb-front-end-profile.php'); // include the menu file for the profile informations
|
111 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
112 |
-
include_once('includes/wppb-front-end-login.php'); // include the menu file for the login screen
|
113 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.6/readme.txt
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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.6
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
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 |
-
|
70 |
-
= 1.0.5 =
|
71 |
-
You can now actualy install the plugin. All because of a silly line break.
|
72 |
-
|
73 |
-
= 1.0.4 =
|
74 |
-
Still no Change.
|
75 |
-
|
76 |
-
= 1.0.3 =
|
77 |
-
No Change.
|
78 |
-
|
79 |
-
= 1.0.2 =
|
80 |
-
Small changes.
|
81 |
-
|
82 |
-
= 1.0.1 =
|
83 |
-
Changes to the ReadMe File
|
84 |
-
|
85 |
-
= 1.0 =
|
86 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.6/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0.6/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0.6/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0.6/uninstall.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
|
|
|
tags/1.0.7/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.7/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.7/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.7/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.7/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.7/profile-builder.php
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
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.6
|
7 |
-
Author: Reflection Media
|
8 |
-
Author URI: http://reflectionmedia.ro
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
== Copyright ==
|
12 |
-
Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
13 |
-
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
28 |
-
|
29 |
-
function wppb_initialize_variables(){
|
30 |
-
$wppb_default_settings = array( 'username' => 'show',
|
31 |
-
'firstname'=> 'show',
|
32 |
-
'lastname' => 'show',
|
33 |
-
'nickname' => 'show',
|
34 |
-
'dispname' => 'show',
|
35 |
-
'email' => 'show',
|
36 |
-
'website' => 'show',
|
37 |
-
'aim' => 'show',
|
38 |
-
'yahoo' => 'show',
|
39 |
-
'jabber' => 'show',
|
40 |
-
'bio' => 'show',
|
41 |
-
'password' => 'show' );
|
42 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
43 |
-
add_option( 'wppb_default_style', 'yes');
|
44 |
-
|
45 |
-
global $wp_roles;
|
46 |
-
$all_roles = $wp_roles->roles;
|
47 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
48 |
-
|
49 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
50 |
-
|
51 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
52 |
-
$rolesArray = array();
|
53 |
-
foreach ( $editable_roles as $key => $data )
|
54 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
55 |
-
$rolesArray = array_reverse($rolesArray,true);
|
56 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
function wppb_create_menu(){
|
62 |
-
add_submenu_page('users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderSettings', 'wppb_display_menu');
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
function wppb_register_settings() { // whitelist options, you can add more register_settings changing the second parameter
|
67 |
-
register_setting( 'wppb-option-group', 'wppb_default_settings' );
|
68 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
69 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
function wppb_add_plugin_stylesheet() {
|
74 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
75 |
-
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
76 |
-
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
77 |
-
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
78 |
-
wp_register_style('wppb_stylesheet', $styleUrl);
|
79 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
83 |
-
|
84 |
-
function wppb_show_admin_bar($content){
|
85 |
-
global $current_user;
|
86 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
87 |
-
if ($admintSettingsPresent != 'not_found'){
|
88 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
89 |
-
$userRole = ($current_user->data->wp_capabilities);
|
90 |
-
if ($userRole != NULL){
|
91 |
-
$currentRole = key($userRole);
|
92 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
93 |
-
if ($getSettings == 'show')
|
94 |
-
return true;
|
95 |
-
elseif ($getSettings == 'hide')
|
96 |
-
return false;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
else
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
|
103 |
-
|
104 |
-
if (is_admin() ){ // if we are in the admin menu
|
105 |
-
include_once('includes/wppb-menu-file.php'); // include the menu file
|
106 |
-
add_action('admin_init', 'wppb_register_settings'); // register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin"
|
107 |
-
add_action('admin_menu','wppb_create_menu'); // call the wppb_create_menu function
|
108 |
-
}else{ // if we aren't in the admin back-end menu, aka we are in the front-end view
|
109 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
110 |
-
include_once('includes/wppb-front-end-profile.php'); // include the menu file for the profile informations
|
111 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
112 |
-
include_once('includes/wppb-front-end-login.php'); // include the menu file for the login screen
|
113 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.7/readme.txt
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
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 |
-
|
70 |
-
= 1.0.5 =
|
71 |
-
You can now actualy install the plugin. All because of a silly line break.
|
72 |
-
|
73 |
-
= 1.0.4 =
|
74 |
-
Still no Change.
|
75 |
-
|
76 |
-
= 1.0.3 =
|
77 |
-
No Change.
|
78 |
-
|
79 |
-
= 1.0.2 =
|
80 |
-
Small changes.
|
81 |
-
|
82 |
-
= 1.0.1 =
|
83 |
-
Changes to the ReadMe File
|
84 |
-
|
85 |
-
= 1.0 =
|
86 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.7/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0.7/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0.7/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0.7/uninstall.php
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
3 |
-
exit (); // If uninstall not called from WordPress exit
|
4 |
-
|
5 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
6 |
-
delete_option( 'wppb_default_style' ); // Delete "use default css or not" settings
|
7 |
-
delete_option( 'wppb_display_admin_settings' ); // Delete display admin bar option
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.8/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.8/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.8/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.8/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.8/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.8/profile-builder.php
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
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.8
|
7 |
-
Author: Reflection Media
|
8 |
-
Author URI: http://reflectionmedia.ro
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
== Copyright ==
|
12 |
-
Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
13 |
-
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
28 |
-
|
29 |
-
function wppb_initialize_variables(){
|
30 |
-
$wppb_default_settings = array( 'username' => 'show',
|
31 |
-
'firstname'=> 'show',
|
32 |
-
'lastname' => 'show',
|
33 |
-
'nickname' => 'show',
|
34 |
-
'dispname' => 'show',
|
35 |
-
'email' => 'show',
|
36 |
-
'website' => 'show',
|
37 |
-
'aim' => 'show',
|
38 |
-
'yahoo' => 'show',
|
39 |
-
'jabber' => 'show',
|
40 |
-
'bio' => 'show',
|
41 |
-
'password' => 'show' );
|
42 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
43 |
-
add_option( 'wppb_default_style', 'yes');
|
44 |
-
|
45 |
-
global $wp_roles;
|
46 |
-
$all_roles = $wp_roles->roles;
|
47 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
48 |
-
|
49 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
50 |
-
|
51 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
52 |
-
$rolesArray = array();
|
53 |
-
foreach ( $editable_roles as $key => $data )
|
54 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
55 |
-
$rolesArray = array_reverse($rolesArray,true);
|
56 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
function wppb_create_menu(){
|
62 |
-
add_submenu_page('users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderSettings', 'wppb_display_menu');
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
function wppb_register_settings() { // whitelist options, you can add more register_settings changing the second parameter
|
67 |
-
register_setting( 'wppb-option-group', 'wppb_default_settings' );
|
68 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
69 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
function wppb_add_plugin_stylesheet() {
|
74 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
75 |
-
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
76 |
-
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
77 |
-
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
78 |
-
wp_register_style('wppb_stylesheet', $styleUrl);
|
79 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
83 |
-
|
84 |
-
function wppb_show_admin_bar($content){
|
85 |
-
global $current_user;
|
86 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
87 |
-
if ($admintSettingsPresent != 'not_found'){
|
88 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
89 |
-
$userRole = ($current_user->data->wp_capabilities);
|
90 |
-
if ($userRole != NULL){
|
91 |
-
$currentRole = key($userRole);
|
92 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
93 |
-
if ($getSettings == 'show')
|
94 |
-
return true;
|
95 |
-
elseif ($getSettings == 'hide')
|
96 |
-
return false;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
else
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
|
103 |
-
|
104 |
-
if (is_admin() ){ // if we are in the admin menu
|
105 |
-
include_once('includes/wppb-menu-file.php'); // include the menu file
|
106 |
-
add_action('admin_init', 'wppb_register_settings'); // register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin"
|
107 |
-
add_action('admin_menu','wppb_create_menu'); // call the wppb_create_menu function
|
108 |
-
}else{ // if we aren't in the admin back-end menu, aka we are in the front-end view
|
109 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
110 |
-
include_once('includes/wppb-front-end-profile.php'); // include the menu file for the profile informations
|
111 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
112 |
-
include_once('includes/wppb-front-end-login.php'); // include the menu file for the login screen
|
113 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.8/readme.txt
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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.8
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
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 |
-
|
70 |
-
= 1.0.5 =
|
71 |
-
You can now actualy install the plugin. All because of a silly line break.
|
72 |
-
|
73 |
-
= 1.0.4 =
|
74 |
-
Still no Change.
|
75 |
-
|
76 |
-
= 1.0.3 =
|
77 |
-
No Change.
|
78 |
-
|
79 |
-
= 1.0.2 =
|
80 |
-
Small changes.
|
81 |
-
|
82 |
-
= 1.0.1 =
|
83 |
-
Changes to the ReadMe File
|
84 |
-
|
85 |
-
= 1.0 =
|
86 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.8/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0.8/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0.8/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0.8/uninstall.php
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
3 |
-
exit (); // If uninstall not called from WordPress exit
|
4 |
-
|
5 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
6 |
-
delete_option( 'wppb_default_style' ); // Delete "use default css or not" settings
|
7 |
-
delete_option( 'wppb_display_admin_settings' ); // Delete display admin bar option
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.9/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.9/includes/wppb-front-end-login.php
DELETED
@@ -1,92 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
24 |
-
|
25 |
-
if ( is_user_logged_in() ) : // Already logged in
|
26 |
-
global $user_ID;
|
27 |
-
$wppb_user = get_userdata( $user_ID );
|
28 |
-
if($wppb_user->display_name == ''){
|
29 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
30 |
-
}
|
31 |
-
|
32 |
-
?>
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
<p class="alert">
|
38 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
39 |
-
</p><!-- .alert -->
|
40 |
-
|
41 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
42 |
-
<?php
|
43 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
44 |
-
if($wppb_login->display_name == ''){
|
45 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
46 |
-
}
|
47 |
-
|
48 |
-
?>
|
49 |
-
|
50 |
-
<p class="success">
|
51 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
52 |
-
</p><!-- .success-->
|
53 |
-
<?php else : // Not logged in ?>
|
54 |
-
|
55 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
56 |
-
<p class="error">
|
57 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
58 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
59 |
-
</p><!-- .error -->
|
60 |
-
<?php endif; ?>
|
61 |
-
|
62 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
63 |
-
<p class="login-form-username">
|
64 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
65 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
66 |
-
</p><!-- .form-username -->
|
67 |
-
|
68 |
-
<p class="login-form-password">
|
69 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
70 |
-
<input type="password" name="password" id="password" class="text-input" />
|
71 |
-
</p><!-- .form-password -->
|
72 |
-
<p class="login-form-submit">
|
73 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
74 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
75 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
76 |
-
<input type="hidden" name="action" value="log-in" />
|
77 |
-
</p><!-- .form-submit -->
|
78 |
-
<p>
|
79 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
80 |
-
</p>
|
81 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
82 |
-
</form><!-- .sign-in -->
|
83 |
-
|
84 |
-
<?php endif;?>
|
85 |
-
</div>
|
86 |
-
<?php
|
87 |
-
|
88 |
-
$output = ob_get_contents();
|
89 |
-
ob_end_clean();
|
90 |
-
return $output;
|
91 |
-
|
92 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.9/includes/wppb-front-end-profile.php
DELETED
@@ -1,285 +0,0 @@
|
|
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';
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
/* Load registration file. */
|
11 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
12 |
-
/* Get user info. */
|
13 |
-
global $current_user;
|
14 |
-
/* If profile was saved, update profile. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
16 |
-
|
17 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
18 |
-
$thisEmail = email_exists( $_POST['email'] );
|
19 |
-
else $thisEmail = $current_user->id;
|
20 |
-
|
21 |
-
/* Update user password. */
|
22 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
23 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
24 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
25 |
-
$changesSaved = 'yes';
|
26 |
-
}else
|
27 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
28 |
-
}
|
29 |
-
|
30 |
-
|
31 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
32 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
33 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
34 |
-
$changesSaved = 'yes';
|
35 |
-
}else
|
36 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
37 |
-
}else
|
38 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
/* Update user information. */
|
43 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
44 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
45 |
-
$changesSaved = 'yes';
|
46 |
-
}
|
47 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
48 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
49 |
-
$changesSaved = 'yes';
|
50 |
-
}
|
51 |
-
|
52 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
53 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
54 |
-
$changesSaved = 'yes';
|
55 |
-
}
|
56 |
-
|
57 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
58 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
59 |
-
$changesSaved = 'yes';
|
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{
|
68 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
69 |
-
$changesSaved = 'yes';
|
70 |
-
}
|
71 |
-
}
|
72 |
-
|
73 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
74 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
75 |
-
$changesSaved = 'yes';
|
76 |
-
}
|
77 |
-
|
78 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
79 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
80 |
-
$changesSaved = 'yes';
|
81 |
-
}
|
82 |
-
|
83 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
84 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
85 |
-
$changesSaved = 'yes';
|
86 |
-
}
|
87 |
-
|
88 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
89 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
90 |
-
$changesSaved = 'yes';
|
91 |
-
}
|
92 |
-
|
93 |
-
}
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
?>
|
102 |
-
<div class="wppb_holder" id="wppb_modify">
|
103 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
104 |
-
|
105 |
-
<p class="warning">
|
106 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
107 |
-
</p><!-- .warning -->
|
108 |
-
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
112 |
-
<?php
|
113 |
-
if ($changesSaved == 'yes'){
|
114 |
-
echo '<p class="changes-saved">';
|
115 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
116 |
-
echo'</p><!-- .changes-saved -->';
|
117 |
-
}
|
118 |
-
?>
|
119 |
-
|
120 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
121 |
-
<p>
|
122 |
-
<strong>Name</strong>
|
123 |
-
</p>
|
124 |
-
<?php
|
125 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
126 |
-
<p class="username">
|
127 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
128 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
129 |
-
</p><!-- .first_name -->';
|
130 |
-
}
|
131 |
-
?>
|
132 |
-
|
133 |
-
<?php
|
134 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
135 |
-
<p class="first_name">
|
136 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
137 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
138 |
-
</p><!-- .first_name -->';
|
139 |
-
}
|
140 |
-
?>
|
141 |
-
|
142 |
-
<?php
|
143 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
144 |
-
<p class="last_name">
|
145 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
146 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
147 |
-
</p><!-- .last_name -->';
|
148 |
-
}
|
149 |
-
?>
|
150 |
-
|
151 |
-
<?php
|
152 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
153 |
-
<p class="nickname">
|
154 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
155 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
156 |
-
</p><!-- .nickname -->';
|
157 |
-
}
|
158 |
-
?>
|
159 |
-
|
160 |
-
<?php
|
161 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
162 |
-
<p class="display_name">
|
163 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
164 |
-
<select name="display_name" id="display_name">';
|
165 |
-
$public_display = array();
|
166 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
167 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
if ( !empty($thisFirstName))
|
169 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
170 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
if ( !empty($thisLastName))
|
172 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
173 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
174 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
175 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
176 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
177 |
-
}
|
178 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
179 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
180 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
181 |
-
$public_display = array_map( 'trim', $public_display );
|
182 |
-
foreach ( $public_display as $id => $item ) {
|
183 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
184 |
-
}
|
185 |
-
echo'</select>
|
186 |
-
</p><!-- .display_name -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
|
191 |
-
<p>
|
192 |
-
<strong>Contact Info</strong>
|
193 |
-
</p>
|
194 |
-
|
195 |
-
<?php
|
196 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
197 |
-
<p class="form-email">
|
198 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
199 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
200 |
-
</p><!-- .form-email -->';
|
201 |
-
}
|
202 |
-
?>
|
203 |
-
|
204 |
-
<?php
|
205 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
206 |
-
<p class="form-website">
|
207 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
208 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
209 |
-
</p><!-- .form-website -->';
|
210 |
-
}
|
211 |
-
?>
|
212 |
-
|
213 |
-
<?php
|
214 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
215 |
-
<p class="form-aim">
|
216 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
217 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
218 |
-
</p><!-- .form-aim -->';
|
219 |
-
}
|
220 |
-
?>
|
221 |
-
|
222 |
-
<?php
|
223 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
224 |
-
<p class="form-yim">
|
225 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
226 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
227 |
-
</p><!-- .form-yim -->';
|
228 |
-
}
|
229 |
-
?>
|
230 |
-
|
231 |
-
<?php
|
232 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
233 |
-
<p class="form-jabber">
|
234 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
235 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
236 |
-
</p><!-- .form-jabber -->';
|
237 |
-
}
|
238 |
-
?>
|
239 |
-
|
240 |
-
<p>
|
241 |
-
<strong>About Yourself</strong>
|
242 |
-
</p>
|
243 |
-
|
244 |
-
<?php
|
245 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
246 |
-
<p class="form-description">
|
247 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
248 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
249 |
-
</p><!-- .form-description -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
|
253 |
-
<?php
|
254 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
255 |
-
<p class="form-password">
|
256 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
257 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
258 |
-
</p><!-- .form-password -->
|
259 |
-
|
260 |
-
<p class="form-password">
|
261 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
262 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
263 |
-
</p><!-- .form-password -->';
|
264 |
-
}
|
265 |
-
?>
|
266 |
-
|
267 |
-
|
268 |
-
<p class="form-submit">
|
269 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
270 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
271 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
272 |
-
</p><!-- .form-submit -->
|
273 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
274 |
-
</form><!-- #edituser -->
|
275 |
-
|
276 |
-
<?php endif; ?>
|
277 |
-
</div>
|
278 |
-
<?php
|
279 |
-
$output = ob_get_contents();
|
280 |
-
ob_end_clean();
|
281 |
-
return $output;
|
282 |
-
|
283 |
-
}
|
284 |
-
|
285 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.9/includes/wppb-front-end-register.php
DELETED
@@ -1,284 +0,0 @@
|
|
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();
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
11 |
-
|
12 |
-
/* Check if users can register. */
|
13 |
-
$registration = get_option( 'users_can_register' );
|
14 |
-
|
15 |
-
/* If user registered, input info. */
|
16 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
17 |
-
|
18 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
19 |
-
$userdata = array(
|
20 |
-
'user_pass' => $user_pass,
|
21 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
22 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
23 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
24 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
25 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
26 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
27 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
28 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
29 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
30 |
-
'description' => esc_attr( $_POST['description'] ),
|
31 |
-
'role' => get_option( 'default_role' ),
|
32 |
-
);
|
33 |
-
|
34 |
-
if ( !$userdata['user_login'] )
|
35 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
36 |
-
elseif ( username_exists($userdata['user_login']) )
|
37 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
38 |
-
|
39 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
40 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
41 |
-
elseif ( email_exists($userdata['user_email']) )
|
42 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
43 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
44 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
45 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
46 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
47 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
48 |
-
}
|
49 |
-
|
50 |
-
else{
|
51 |
-
$the_registered_name = $_POST['user_name'];
|
52 |
-
$new_user = wp_insert_user( $userdata );
|
53 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
54 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
55 |
-
$fromemail = get_bloginfo('name');
|
56 |
-
$mailPassword = $_POST['passw1'];
|
57 |
-
$mailUsername = $_POST['user_name'];
|
58 |
-
$subject = 'A new account has been created for you.';
|
59 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
60 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
61 |
-
if( $messageSent == TRUE)
|
62 |
-
$sentEmailStatus = 2;
|
63 |
-
else
|
64 |
-
$sentEmailStatus = 1;
|
65 |
-
}
|
66 |
-
|
67 |
-
}
|
68 |
-
}
|
69 |
-
|
70 |
-
?>
|
71 |
-
<div class="wppb_holder" id="wppb_register">
|
72 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
73 |
-
<?php
|
74 |
-
global $user_ID;
|
75 |
-
$login = get_userdata( $user_ID );
|
76 |
-
if($login->display_name == ''){
|
77 |
-
$login->display_name = $login->user_login;
|
78 |
-
}
|
79 |
-
?>
|
80 |
-
<p class="log-in-out alert">
|
81 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
82 |
-
</p><!-- .log-in-out .alert -->
|
83 |
-
|
84 |
-
<?php elseif ( $new_user ) : ?>
|
85 |
-
|
86 |
-
|
87 |
-
<?php
|
88 |
-
|
89 |
-
echo'<p class="success">';
|
90 |
-
if ( current_user_can( 'create_users' ) )
|
91 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
92 |
-
else
|
93 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
94 |
-
echo'</p><!-- .success -->';
|
95 |
-
?>
|
96 |
-
|
97 |
-
<?php
|
98 |
-
if(isset($_POST['send_password'])){
|
99 |
-
if ($sentEmailStatus == 1){
|
100 |
-
echo '<p class="error">';
|
101 |
-
echo 'An error occured while trying to send the notification email.';
|
102 |
-
echo '</p><!-- .error -->';
|
103 |
-
}elseif ($sentEmailStatus == 2){
|
104 |
-
echo '<p class="success">';
|
105 |
-
echo 'An email containing the username and password was successfully sent.';
|
106 |
-
echo '</p><!-- .success -->';
|
107 |
-
}
|
108 |
-
}
|
109 |
-
?>
|
110 |
-
<?php else : ?>
|
111 |
-
|
112 |
-
<?php if ( $error ) : ?>
|
113 |
-
<p class="error">
|
114 |
-
<?php echo $error; ?>
|
115 |
-
</p><!-- .error -->
|
116 |
-
<?php endif; ?>
|
117 |
-
|
118 |
-
|
119 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
120 |
-
<p class="alert">
|
121 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
122 |
-
</p><!-- .alert -->
|
123 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
124 |
-
<p class="alert">
|
125 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
126 |
-
</p><!-- .alert -->
|
127 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
128 |
-
<p class="alert">
|
129 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
130 |
-
</p><!-- .alert -->
|
131 |
-
|
132 |
-
<?php endif; ?>
|
133 |
-
|
134 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
135 |
-
|
136 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
137 |
-
|
138 |
-
<p>
|
139 |
-
<strong>Name</strong>
|
140 |
-
</p>
|
141 |
-
|
142 |
-
<?php
|
143 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
144 |
-
<p class="form-username">
|
145 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
146 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
147 |
-
</p><!-- .form-username -->';
|
148 |
-
}
|
149 |
-
?>
|
150 |
-
|
151 |
-
<?php
|
152 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
153 |
-
<p class="first_name">
|
154 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
155 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
156 |
-
</p><!-- .first_name -->';
|
157 |
-
}
|
158 |
-
?>
|
159 |
-
|
160 |
-
<?php
|
161 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
162 |
-
<p class="last_name">
|
163 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
164 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
165 |
-
</p><!-- .last_name -->';
|
166 |
-
}
|
167 |
-
?>
|
168 |
-
|
169 |
-
<?php
|
170 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
171 |
-
<p class="nickname">
|
172 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
173 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
174 |
-
</p><!-- .nickname -->';
|
175 |
-
}
|
176 |
-
?>
|
177 |
-
|
178 |
-
<p>
|
179 |
-
<strong>Contact Info</strong>
|
180 |
-
</p>
|
181 |
-
|
182 |
-
<?php
|
183 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
184 |
-
<p class="form-email">
|
185 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
186 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
187 |
-
</p><!-- .form-email -->';
|
188 |
-
}
|
189 |
-
?>
|
190 |
-
|
191 |
-
<?php
|
192 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
193 |
-
<p class="form-website">
|
194 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
195 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
196 |
-
</p><!-- .form-website -->';
|
197 |
-
}
|
198 |
-
?>
|
199 |
-
|
200 |
-
<?php
|
201 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
202 |
-
<p class="form-aim">
|
203 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
204 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
205 |
-
</p><!-- .form-aim -->';
|
206 |
-
}
|
207 |
-
?>
|
208 |
-
|
209 |
-
<?php
|
210 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
211 |
-
<p class="form-yim">
|
212 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
213 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
214 |
-
</p><!-- .form-yim -->';
|
215 |
-
}
|
216 |
-
?>
|
217 |
-
|
218 |
-
<?php
|
219 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
220 |
-
<p class="form-jabber">
|
221 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
222 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
223 |
-
</p><!-- .form-jabber -->';
|
224 |
-
}
|
225 |
-
?>
|
226 |
-
|
227 |
-
<p>
|
228 |
-
<strong>About Yourself</strong>
|
229 |
-
</p>
|
230 |
-
|
231 |
-
<?php
|
232 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
233 |
-
<p class="form-description">
|
234 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
235 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
236 |
-
</p><!-- .form-description -->';
|
237 |
-
}
|
238 |
-
?>
|
239 |
-
|
240 |
-
<?php
|
241 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
242 |
-
<p class="form-password">
|
243 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
244 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
245 |
-
</p><!-- .form-password -->
|
246 |
-
|
247 |
-
<p class="form-password">
|
248 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
249 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
250 |
-
</p><!-- .form-password -->';
|
251 |
-
}
|
252 |
-
?>
|
253 |
-
<?php
|
254 |
-
if ( current_user_can( 'delete_users' ) )
|
255 |
-
echo '
|
256 |
-
<p class="send-confirmation-email">
|
257 |
-
<label for="pass1">';
|
258 |
-
//_e('Send Password? ', 'profilebuilder');
|
259 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
260 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
261 |
-
</p><!-- .send-confirmation-email -->';
|
262 |
-
?>
|
263 |
-
|
264 |
-
<p class="form-submit">
|
265 |
-
<?php echo $referer; ?>
|
266 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
267 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
268 |
-
</p><!-- .form-submit -->
|
269 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
270 |
-
</form><!-- #adduser -->
|
271 |
-
|
272 |
-
<?php endif; ?>
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
|
276 |
-
|
277 |
-
</div>
|
278 |
-
<?php
|
279 |
-
$output = ob_get_contents();
|
280 |
-
ob_end_clean();
|
281 |
-
return $output;
|
282 |
-
}
|
283 |
-
|
284 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.9/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.9/profile-builder.php
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
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
|
10 |
-
|
11 |
-
== Copyright ==
|
12 |
-
Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
13 |
-
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
28 |
-
|
29 |
-
function wppb_initialize_variables(){
|
30 |
-
$wppb_default_settings = array( 'username' => 'show',
|
31 |
-
'firstname'=> 'show',
|
32 |
-
'lastname' => 'show',
|
33 |
-
'nickname' => 'show',
|
34 |
-
'dispname' => 'show',
|
35 |
-
'email' => 'show',
|
36 |
-
'website' => 'show',
|
37 |
-
'aim' => 'show',
|
38 |
-
'yahoo' => 'show',
|
39 |
-
'jabber' => 'show',
|
40 |
-
'bio' => 'show',
|
41 |
-
'password' => 'show' );
|
42 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
43 |
-
add_option( 'wppb_default_style', 'yes');
|
44 |
-
|
45 |
-
global $wp_roles;
|
46 |
-
$all_roles = $wp_roles->roles;
|
47 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
48 |
-
|
49 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
50 |
-
|
51 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
52 |
-
$rolesArray = array();
|
53 |
-
foreach ( $editable_roles as $key => $data )
|
54 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
55 |
-
$rolesArray = array_reverse($rolesArray,true);
|
56 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
function wppb_create_menu(){
|
62 |
-
add_submenu_page('users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderSettings', 'wppb_display_menu');
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
function wppb_register_settings() { // whitelist options, you can add more register_settings changing the second parameter
|
67 |
-
register_setting( 'wppb-option-group', 'wppb_default_settings' );
|
68 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
69 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
function wppb_add_plugin_stylesheet() {
|
74 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
75 |
-
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
76 |
-
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
77 |
-
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
78 |
-
wp_register_style('wppb_stylesheet', $styleUrl);
|
79 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
80 |
-
}
|
81 |
-
}
|
82 |
-
|
83 |
-
|
84 |
-
function wppb_show_admin_bar($content){
|
85 |
-
global $current_user;
|
86 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
87 |
-
if ($admintSettingsPresent != 'not_found'){
|
88 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
89 |
-
$userRole = ($current_user->data->wp_capabilities);
|
90 |
-
if ($userRole != NULL){
|
91 |
-
$currentRole = key($userRole);
|
92 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
93 |
-
if ($getSettings == 'show')
|
94 |
-
return true;
|
95 |
-
elseif ($getSettings == 'hide')
|
96 |
-
return false;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
else
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
|
103 |
-
|
104 |
-
if (is_admin() ){ // if we are in the admin menu
|
105 |
-
include_once('includes/wppb-menu-file.php'); // include the menu file
|
106 |
-
add_action('admin_init', 'wppb_register_settings'); // register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin"
|
107 |
-
add_action('admin_menu','wppb_create_menu'); // call the wppb_create_menu function
|
108 |
-
}else{ // if we aren't in the admin back-end menu, aka we are in the front-end view
|
109 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
110 |
-
include_once('includes/wppb-front-end-profile.php'); // include the menu file for the profile informations
|
111 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
112 |
-
include_once('includes/wppb-front-end-login.php'); // include the menu file for the login screen
|
113 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.9/readme.txt
DELETED
@@ -1,90 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
|
29 |
-
Also, users with administrator rights have access to the following features:
|
30 |
-
|
31 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
32 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
33 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
34 |
-
|
35 |
-
NOTE:
|
36 |
-
|
37 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
38 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
45 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
-
1. Create a new page and use one of the shortcodes available
|
47 |
-
|
48 |
-
== Frequently Asked Questions ==
|
49 |
-
|
50 |
-
= Will it change the default admin-panel from the back-end by adding/disableing information-fields? =
|
51 |
-
|
52 |
-
No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
53 |
-
|
54 |
-
= Will the information be also updated for any hidden fields? =
|
55 |
-
|
56 |
-
No, only fields visible to the users will/can be modified/updated.
|
57 |
-
|
58 |
-
|
59 |
-
== Screenshots ==
|
60 |
-
|
61 |
-
1. Login Page: screenshot-1.jpg
|
62 |
-
2. Register Page: screenshot-2.jpg
|
63 |
-
3. Backend Settings: screenshot-3.jpg
|
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 |
-
|
74 |
-
= 1.0.5 =
|
75 |
-
You can now actualy install the plugin. All because of a silly line break.
|
76 |
-
|
77 |
-
= 1.0.4 =
|
78 |
-
Still no Change.
|
79 |
-
|
80 |
-
= 1.0.3 =
|
81 |
-
No Change.
|
82 |
-
|
83 |
-
= 1.0.2 =
|
84 |
-
Small changes.
|
85 |
-
|
86 |
-
= 1.0.1 =
|
87 |
-
Changes to the ReadMe File
|
88 |
-
|
89 |
-
= 1.0 =
|
90 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0.9/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0.9/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0.9/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0.9/uninstall.php
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
3 |
-
exit (); // If uninstall not called from WordPress exit
|
4 |
-
|
5 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
6 |
-
delete_option( 'wppb_default_style' ); // Delete "use default css or not" settings
|
7 |
-
delete_option( 'wppb_display_admin_settings' ); // Delete display admin bar option
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/css/style.css
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
The id for the individual sections are: wppb_modify for [wppb-profile-info]
|
5 |
-
wppb_login for [wppb-registered-login]
|
6 |
-
wppb_register for [wppb-register-new]
|
7 |
-
|
8 |
-
*/
|
9 |
-
/* WPPB_MODIFY */
|
10 |
-
#wppb_modify p label{
|
11 |
-
display:block;
|
12 |
-
}
|
13 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea{
|
14 |
-
width:50%;
|
15 |
-
margin-bottom:5px;
|
16 |
-
}
|
17 |
-
#wppb_modify textarea{
|
18 |
-
width:70%;
|
19 |
-
}
|
20 |
-
.changes-saved, .success{
|
21 |
-
color:green;
|
22 |
-
}
|
23 |
-
.warning, .error{
|
24 |
-
color:red;
|
25 |
-
}
|
26 |
-
|
27 |
-
/* WPPB_REGISTER */
|
28 |
-
|
29 |
-
#wppb_register p label{
|
30 |
-
display:block;
|
31 |
-
}
|
32 |
-
#wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea{
|
33 |
-
width:50%;
|
34 |
-
margin-bottom:5px;
|
35 |
-
}
|
36 |
-
#wppb_register textarea{
|
37 |
-
width:70%;
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/includes/wppb-front-end-login.php
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
// wp_signon can only be executed before anything is outputed in the page
|
7 |
-
// because of that we're adding it to the init hook
|
8 |
-
$wppb_login = false;
|
9 |
-
|
10 |
-
function wppb_signon(){
|
11 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
12 |
-
global $error;
|
13 |
-
global $wppb_login;
|
14 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
15 |
-
endif;
|
16 |
-
}
|
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">';
|
23 |
-
|
24 |
-
if ( is_user_logged_in() ) : // Already logged in
|
25 |
-
global $user_ID;
|
26 |
-
$wppb_user = get_userdata( $user_ID );
|
27 |
-
if($wppb_user->display_name == ''){
|
28 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
29 |
-
}
|
30 |
-
|
31 |
-
?>
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<p class="alert">
|
37 |
-
<?php printf( __('You are currently logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_user->ID ), $wppb_user->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Log out »', 'profilebuilder'); ?></a>
|
38 |
-
</p><!-- .alert -->
|
39 |
-
|
40 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
41 |
-
<?php
|
42 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
43 |
-
if($wppb_login->display_name == ''){
|
44 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
45 |
-
}
|
46 |
-
|
47 |
-
?>
|
48 |
-
|
49 |
-
<p class="success">
|
50 |
-
<?php printf( __('You have successfully logged in as <a href="%1$s" title="%2$s">%2$s</a>.', 'profilebuilder'), get_author_posts_url( $wppb_login->ID ), $wppb_login->display_name ); ?>
|
51 |
-
</p><!-- .success-->
|
52 |
-
<?php else : // Not logged in ?>
|
53 |
-
|
54 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
55 |
-
<p class="error">
|
56 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>ERROR:</strong> The username field is empty. '; ?>
|
57 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
58 |
-
</p><!-- .error -->
|
59 |
-
<?php endif; ?>
|
60 |
-
|
61 |
-
<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
|
62 |
-
<p class="login-form-username">
|
63 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
64 |
-
<input type="text" name="user-name" id="user-name" class="text-input" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
|
65 |
-
</p><!-- .form-username -->
|
66 |
-
|
67 |
-
<p class="login-form-password">
|
68 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
69 |
-
<input type="password" name="password" id="password" class="text-input" />
|
70 |
-
</p><!-- .form-password -->
|
71 |
-
<p class="login-form-submit">
|
72 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
73 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
74 |
-
<label for="remember-me"><?php _e('Remember me', 'profilebuilder'); ?></label>
|
75 |
-
<input type="hidden" name="action" value="log-in" />
|
76 |
-
</p><!-- .form-submit -->
|
77 |
-
<p>
|
78 |
-
<a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=lostpassword"><?php _e('Lost password?', 'profilebuilder'); ?></a>
|
79 |
-
</p>
|
80 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
81 |
-
</form><!-- .sign-in -->
|
82 |
-
|
83 |
-
<?php endif;?>
|
84 |
-
</div>
|
85 |
-
<?php
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/includes/wppb-front-end-profile.php
DELETED
@@ -1,279 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function wppb_front_end_profile_info() {
|
3 |
-
get_currentuserinfo();
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
$changesSaved = 'no';
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
/* Load registration file. */
|
10 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
11 |
-
/* Get user info. */
|
12 |
-
global $current_user;
|
13 |
-
/* If profile was saved, update profile. */
|
14 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
15 |
-
|
16 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
17 |
-
$thisEmail = email_exists( $_POST['email'] );
|
18 |
-
else $thisEmail = $current_user->id;
|
19 |
-
|
20 |
-
/* Update user password. */
|
21 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
22 |
-
if ( $_POST['pass1'] == $_POST['pass2'] ){
|
23 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
24 |
-
$changesSaved = 'yes';
|
25 |
-
}else
|
26 |
-
$error = __('The passwords you entered didn\'t match. Your password was not updated.', 'profilebuilder');
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
31 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
32 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
33 |
-
$changesSaved = 'yes';
|
34 |
-
}else
|
35 |
-
$error = __('The e-mail address you entered is already registered to a different user. Your e-mail address was not updated.', 'profilebuilder');
|
36 |
-
}else
|
37 |
-
$error = __('The e-mail address you entered is not a valid one. Your e-mail address was not updated.', 'profilebuilder');
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/* Update user information. */
|
42 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
43 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
44 |
-
$changesSaved = 'yes';
|
45 |
-
}
|
46 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
47 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
48 |
-
$changesSaved = 'yes';
|
49 |
-
}
|
50 |
-
|
51 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
52 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
53 |
-
$changesSaved = 'yes';
|
54 |
-
}
|
55 |
-
|
56 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
57 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
58 |
-
$changesSaved = 'yes';
|
59 |
-
}
|
60 |
-
|
61 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
62 |
-
if(strpos($_POST['website'], 'http://') || empty( $_POST['website'] )){
|
63 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
64 |
-
$changesSaved = 'yes';
|
65 |
-
}else{
|
66 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
67 |
-
$changesSaved = 'yes';
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
72 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
73 |
-
$changesSaved = 'yes';
|
74 |
-
}
|
75 |
-
|
76 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
77 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
78 |
-
$changesSaved = 'yes';
|
79 |
-
}
|
80 |
-
|
81 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
82 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
83 |
-
$changesSaved = 'yes';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
87 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
88 |
-
$changesSaved = 'yes';
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
?>
|
100 |
-
<div class="wppb_holder" id="wppb_modify">
|
101 |
-
<?php if ( !is_user_logged_in() ) : ?>
|
102 |
-
|
103 |
-
<p class="warning">
|
104 |
-
<?php _e('You must be logged in to edit your profile.', 'profilebuilder'); ?>
|
105 |
-
</p><!-- .warning -->
|
106 |
-
|
107 |
-
<?php else : ?>
|
108 |
-
|
109 |
-
<?php if ( $error ) echo '<p class="error">' . $error . '</p>'; ?>
|
110 |
-
<?php
|
111 |
-
if ($changesSaved == 'yes'){
|
112 |
-
echo '<p class="changes-saved">';
|
113 |
-
_e('The changes made have been successfully saved.', 'profilebuilder');
|
114 |
-
echo'</p><!-- .changes-saved -->';
|
115 |
-
}
|
116 |
-
?>
|
117 |
-
|
118 |
-
<form method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
119 |
-
<p>
|
120 |
-
<strong>Name</strong>
|
121 |
-
</p>
|
122 |
-
<?php
|
123 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
124 |
-
<p class="username">
|
125 |
-
<label for="user_login">'; _e('Username', 'profilebuilder'); echo'</label>
|
126 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'; the_author_meta( 'user_login', $current_user->id ); echo'" disabled="disabled"/> <label for="user_login"><i>'; _e(' Usernames cannot be changed.'); echo'</i></label>
|
127 |
-
</p><!-- .first_name -->';
|
128 |
-
}
|
129 |
-
?>
|
130 |
-
|
131 |
-
<?php
|
132 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
133 |
-
<p class="first_name">
|
134 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
135 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; the_author_meta( 'first_name', $current_user->id ); echo '" />
|
136 |
-
</p><!-- .first_name -->';
|
137 |
-
}
|
138 |
-
?>
|
139 |
-
|
140 |
-
<?php
|
141 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
142 |
-
<p class="last_name">
|
143 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
144 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; the_author_meta( 'last_name', $current_user->id ); echo '" />
|
145 |
-
</p><!-- .last_name -->';
|
146 |
-
}
|
147 |
-
?>
|
148 |
-
|
149 |
-
<?php
|
150 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
151 |
-
<p class="nickname">
|
152 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
153 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; the_author_meta( 'nickname', $current_user->id ); echo'" />
|
154 |
-
</p><!-- .nickname -->';
|
155 |
-
}
|
156 |
-
?>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){ echo'
|
160 |
-
<p class="display_name">
|
161 |
-
<label for="display_name">'; _e('Display name publicly as', 'profilebuilder'); echo'</label>
|
162 |
-
<select name="display_name" id="display_name">';
|
163 |
-
$public_display = array();
|
164 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
165 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
166 |
-
if ( !empty($thisFirstName))
|
167 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
168 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
169 |
-
if ( !empty($thisLastName))
|
170 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
171 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
172 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
173 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
174 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
175 |
-
}
|
176 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
177 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
178 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
179 |
-
$public_display = array_map( 'trim', $public_display );
|
180 |
-
foreach ( $public_display as $id => $item ) {
|
181 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
182 |
-
}
|
183 |
-
echo'</select>
|
184 |
-
</p><!-- .display_name -->';
|
185 |
-
}
|
186 |
-
?>
|
187 |
-
|
188 |
-
|
189 |
-
<p>
|
190 |
-
<strong>Contact Info</strong>
|
191 |
-
</p>
|
192 |
-
|
193 |
-
<?php
|
194 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
195 |
-
<p class="form-email">
|
196 |
-
<label for="email">'; _e('E-mail', 'profilebuilder');echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
197 |
-
<input class="text-input" name="email" type="text" id="email" value="'; the_author_meta( 'user_email', $current_user->id ); echo'" />
|
198 |
-
</p><!-- .form-email -->';
|
199 |
-
}
|
200 |
-
?>
|
201 |
-
|
202 |
-
<?php
|
203 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
204 |
-
<p class="form-website">
|
205 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
206 |
-
<input class="text-input" name="website" type="text" id="website" value="'; the_author_meta( 'user_url', $current_user->id ); echo'" />
|
207 |
-
</p><!-- .form-website -->';
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
|
211 |
-
<?php
|
212 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
213 |
-
<p class="form-aim">
|
214 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
215 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; the_author_meta( 'aim', $current_user->id ); echo'" />
|
216 |
-
</p><!-- .form-aim -->';
|
217 |
-
}
|
218 |
-
?>
|
219 |
-
|
220 |
-
<?php
|
221 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
222 |
-
<p class="form-yim">
|
223 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
224 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; the_author_meta( 'yim', $current_user->id ); echo'" />
|
225 |
-
</p><!-- .form-yim -->';
|
226 |
-
}
|
227 |
-
?>
|
228 |
-
|
229 |
-
<?php
|
230 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
231 |
-
<p class="form-jabber">
|
232 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
233 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; the_author_meta( 'jabber', $current_user->id ); echo'" />
|
234 |
-
</p><!-- .form-jabber -->';
|
235 |
-
}
|
236 |
-
?>
|
237 |
-
|
238 |
-
<p>
|
239 |
-
<strong>About Yourself</strong>
|
240 |
-
</p>
|
241 |
-
|
242 |
-
<?php
|
243 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
244 |
-
<p class="form-description">
|
245 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
246 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; the_author_meta( 'description', $current_user->id ); echo'</textarea>
|
247 |
-
</p><!-- .form-description -->';
|
248 |
-
}
|
249 |
-
?>
|
250 |
-
|
251 |
-
<?php
|
252 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
253 |
-
<p class="form-password">
|
254 |
-
<label for="pass1">'; _e('New Password', 'profilebuilder'); echo'</label>
|
255 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
256 |
-
</p><!-- .form-password -->
|
257 |
-
|
258 |
-
<p class="form-password">
|
259 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
260 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
261 |
-
</p><!-- .form-password -->';
|
262 |
-
}
|
263 |
-
?>
|
264 |
-
|
265 |
-
|
266 |
-
<p class="form-submit">
|
267 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
268 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
269 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
270 |
-
</p><!-- .form-submit -->
|
271 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
272 |
-
</form><!-- #edituser -->
|
273 |
-
|
274 |
-
<?php endif; ?>
|
275 |
-
</div>
|
276 |
-
<?php
|
277 |
-
}
|
278 |
-
|
279 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/includes/wppb-front-end-register.php
DELETED
@@ -1,280 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register(){
|
4 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
5 |
-
global $current_user;
|
6 |
-
get_currentuserinfo();
|
7 |
-
|
8 |
-
/* Load registration file. */
|
9 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
10 |
-
|
11 |
-
/* Check if users can register. */
|
12 |
-
$registration = get_option( 'users_can_register' );
|
13 |
-
|
14 |
-
/* If user registered, input info. */
|
15 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
16 |
-
|
17 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
18 |
-
$userdata = array(
|
19 |
-
'user_pass' => $user_pass,
|
20 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
21 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
22 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
23 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
24 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
25 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
26 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
27 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
28 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
29 |
-
'description' => esc_attr( $_POST['description'] ),
|
30 |
-
'role' => get_option( 'default_role' ),
|
31 |
-
);
|
32 |
-
|
33 |
-
if ( !$userdata['user_login'] )
|
34 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
35 |
-
elseif ( username_exists($userdata['user_login']) )
|
36 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
37 |
-
|
38 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
39 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
40 |
-
elseif ( email_exists($userdata['user_email']) )
|
41 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
42 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['pass1'] != $_POST['pass2'] )){
|
43 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
44 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
45 |
-
elseif ( $_POST['pass1'] != $_POST['pass2'] ) //verify if the the password and the retyped password are a match
|
46 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
47 |
-
}
|
48 |
-
|
49 |
-
else{
|
50 |
-
$the_registered_name = $_POST['user_name'];
|
51 |
-
$new_user = wp_insert_user( $userdata );
|
52 |
-
if (isset($_POST['send_password']) && ($_POST['send_password'] == 1)){
|
53 |
-
$email = $_POST['email']; //change these variables to modify sent email message, destination and source.
|
54 |
-
$fromemail = get_bloginfo('name');
|
55 |
-
$mailPassword = $_POST['passw1'];
|
56 |
-
$mailUsername = $_POST['user_name'];
|
57 |
-
$subject = 'A new account has been created for you.';
|
58 |
-
$msg = 'Welcome to blog '.$fromemail.'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
59 |
-
$messageSent = wp_mail( $email, $subject, $msg);
|
60 |
-
if( $messageSent == TRUE)
|
61 |
-
$sentEmailStatus = 2;
|
62 |
-
else
|
63 |
-
$sentEmailStatus = 1;
|
64 |
-
}
|
65 |
-
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
?>
|
70 |
-
<div class="wppb_holder" id="wppb_register">
|
71 |
-
<?php if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) : ?>
|
72 |
-
<?php
|
73 |
-
global $user_ID;
|
74 |
-
$login = get_userdata( $user_ID );
|
75 |
-
if($login->display_name == ''){
|
76 |
-
$login->display_name = $login->user_login;
|
77 |
-
}
|
78 |
-
?>
|
79 |
-
<p class="log-in-out alert">
|
80 |
-
<?php printf( __('You are logged in as <a href="%1$s" title="%2$s">%2$s</a>. You don\'t need another account.', 'profilebuilder'), get_author_posts_url( $login->ID ), $login->display_name ); ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log out of this account', 'profilebuilder'); ?>"><?php _e('Logout »', 'profilebuilder'); ?></a>
|
81 |
-
</p><!-- .log-in-out .alert -->
|
82 |
-
|
83 |
-
<?php elseif ( $new_user ) : ?>
|
84 |
-
|
85 |
-
|
86 |
-
<?php
|
87 |
-
|
88 |
-
echo'<p class="success">';
|
89 |
-
if ( current_user_can( 'create_users' ) )
|
90 |
-
printf( __('A user account for %1$s has been created.', 'profilebuilder'), $the_registered_name );
|
91 |
-
else
|
92 |
-
printf( __('Thank you for registering, %1$s.', 'profilebuilder'), $the_registered_name );
|
93 |
-
echo'</p><!-- .success -->';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<?php
|
97 |
-
if(isset($_POST['send_password'])){
|
98 |
-
if ($sentEmailStatus == 1){
|
99 |
-
echo '<p class="error">';
|
100 |
-
echo 'An error occured while trying to send the notification email.';
|
101 |
-
echo '</p><!-- .error -->';
|
102 |
-
}elseif ($sentEmailStatus == 2){
|
103 |
-
echo '<p class="success">';
|
104 |
-
echo 'An email containing the username and password was successfully sent.';
|
105 |
-
echo '</p><!-- .success -->';
|
106 |
-
}
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
<?php else : ?>
|
110 |
-
|
111 |
-
<?php if ( $error ) : ?>
|
112 |
-
<p class="error">
|
113 |
-
<?php echo $error; ?>
|
114 |
-
</p><!-- .error -->
|
115 |
-
<?php endif; ?>
|
116 |
-
|
117 |
-
|
118 |
-
<?php if ( current_user_can( 'create_users' ) && $registration ) : ?>
|
119 |
-
<p class="alert">
|
120 |
-
<?php _e('Users can register themselves or you can manually create users here.', 'profilebuilder'); ?>
|
121 |
-
</p><!-- .alert -->
|
122 |
-
<?php elseif ( current_user_can( 'create_users' ) ) : ?>
|
123 |
-
<p class="alert">
|
124 |
-
<?php _e('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder'); ?>
|
125 |
-
</p><!-- .alert -->
|
126 |
-
<?php elseif ( !current_user_can( 'create_users' ) && !$registration) : ?>
|
127 |
-
<p class="alert">
|
128 |
-
<?php _e('Only an administrator can add new users.', 'profilebuilder'); ?>
|
129 |
-
</p><!-- .alert -->
|
130 |
-
|
131 |
-
<?php endif; ?>
|
132 |
-
|
133 |
-
<?php if ( $registration || current_user_can( 'create_users' ) ) : ?>
|
134 |
-
|
135 |
-
<form method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
136 |
-
|
137 |
-
<p>
|
138 |
-
<strong>Name</strong>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
if ($wppb_defaultOptions['username'] == 'show'){ echo'
|
143 |
-
<p class="form-username">
|
144 |
-
<label for="user_name">'; _e('Username', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
145 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'; if ( $error ) echo wp_specialchars( $_POST['user_name'], 1 ); echo'" />
|
146 |
-
</p><!-- .form-username -->';
|
147 |
-
}
|
148 |
-
?>
|
149 |
-
|
150 |
-
<?php
|
151 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){ echo'
|
152 |
-
<p class="first_name">
|
153 |
-
<label for="first_name">'; _e('First Name', 'profilebuilder'); echo'</label>
|
154 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'; if ( $error ) echo wp_specialchars( $_POST['first_name'], 1 ); echo'" />
|
155 |
-
</p><!-- .first_name -->';
|
156 |
-
}
|
157 |
-
?>
|
158 |
-
|
159 |
-
<?php
|
160 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){ echo'
|
161 |
-
<p class="last_name">
|
162 |
-
<label for="last_name">'; _e('Last Name', 'profilebuilder'); echo'</label>
|
163 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'; if ( $error ) echo wp_specialchars( $_POST['last_name'], 1 ); echo'" />
|
164 |
-
</p><!-- .last_name -->';
|
165 |
-
}
|
166 |
-
?>
|
167 |
-
|
168 |
-
<?php
|
169 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){ echo'
|
170 |
-
<p class="nickname">
|
171 |
-
<label for="nickname">'; _e('Nickname', 'profilebuilder'); echo'</label>
|
172 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'; if ( $error ) echo wp_specialchars( $_POST['nickname'], 1 ); echo'" />
|
173 |
-
</p><!-- .nickname -->';
|
174 |
-
}
|
175 |
-
?>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
<strong>Contact Info</strong>
|
179 |
-
</p>
|
180 |
-
|
181 |
-
<?php
|
182 |
-
if ($wppb_defaultOptions['email'] == 'show'){ echo'
|
183 |
-
<p class="form-email">
|
184 |
-
<label for="email">'; _e('E-mail', 'profilebuilder'); echo'<i>'; _e(' (required)', 'profilebuilder');echo'</i></label>
|
185 |
-
<input class="text-input" name="email" type="text" id="email" value="'; if ( $error ) echo wp_specialchars( $_POST['email'], 1 ); echo'" />
|
186 |
-
</p><!-- .form-email -->';
|
187 |
-
}
|
188 |
-
?>
|
189 |
-
|
190 |
-
<?php
|
191 |
-
if ($wppb_defaultOptions['website'] == 'show'){ echo'
|
192 |
-
<p class="form-website">
|
193 |
-
<label for="website">'; _e('Website', 'profilebuilder'); echo'</label>
|
194 |
-
<input class="text-input" name="website" type="text" id="website" value="'; if ( $error ) echo wp_specialchars( $_POST['website'], 1 ); echo'" />
|
195 |
-
</p><!-- .form-website -->';
|
196 |
-
}
|
197 |
-
?>
|
198 |
-
|
199 |
-
<?php
|
200 |
-
if ($wppb_defaultOptions['aim'] == 'show'){ echo'
|
201 |
-
<p class="form-aim">
|
202 |
-
<label for="aim">'; _e('AIM', 'profilebuilder'); echo'</label>
|
203 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'; if ( $error ) echo wp_specialchars( $_POST['aim'], 1 ); echo'" />
|
204 |
-
</p><!-- .form-aim -->';
|
205 |
-
}
|
206 |
-
?>
|
207 |
-
|
208 |
-
<?php
|
209 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){ echo'
|
210 |
-
<p class="form-yim">
|
211 |
-
<label for="yim">'; _e('Yahoo IM', 'profilebuilder'); echo'</label>
|
212 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'; if ( $error ) echo wp_specialchars( $_POST['yim'], 1 ); echo'" />
|
213 |
-
</p><!-- .form-yim -->';
|
214 |
-
}
|
215 |
-
?>
|
216 |
-
|
217 |
-
<?php
|
218 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){ echo'
|
219 |
-
<p class="form-jabber">
|
220 |
-
<label for="jabber">'; _e('Jabber / Google Talk', 'profilebuilder'); echo'</label>
|
221 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'; if ( $error ) echo wp_specialchars( $_POST['jabber'], 1 ); echo'" />
|
222 |
-
</p><!-- .form-jabber -->';
|
223 |
-
}
|
224 |
-
?>
|
225 |
-
|
226 |
-
<p>
|
227 |
-
<strong>About Yourself</strong>
|
228 |
-
</p>
|
229 |
-
|
230 |
-
<?php
|
231 |
-
if ($wppb_defaultOptions['bio'] == 'show'){ echo'
|
232 |
-
<p class="form-description">
|
233 |
-
<label for="description">'; _e('Biographical Info', 'profilebuilder'); echo'</label>
|
234 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'; if ( $error ) echo wp_specialchars( $_POST['description'], 1 ); echo'</textarea>
|
235 |
-
</p><!-- .form-description -->';
|
236 |
-
}
|
237 |
-
?>
|
238 |
-
|
239 |
-
<?php
|
240 |
-
if ($wppb_defaultOptions['password'] == 'show'){ echo'
|
241 |
-
<p class="form-password">
|
242 |
-
<label for="pass1">'; _e('Password', 'profilebuilder'); echo'</label>
|
243 |
-
<input class="text-input" name="passw1" type="password" id="pass1" />
|
244 |
-
</p><!-- .form-password -->
|
245 |
-
|
246 |
-
<p class="form-password">
|
247 |
-
<label for="pass2">'; _e('Repeat Password', 'profilebuilder'); echo'</label>
|
248 |
-
<input class="text-input" name="passw2" type="password" id="pass2" />
|
249 |
-
</p><!-- .form-password -->';
|
250 |
-
}
|
251 |
-
?>
|
252 |
-
<?php
|
253 |
-
if ( current_user_can( 'delete_users' ) )
|
254 |
-
echo '
|
255 |
-
<p class="send-confirmation-email">
|
256 |
-
<label for="pass1">';
|
257 |
-
//_e('Send Password? ', 'profilebuilder');
|
258 |
-
echo'<input id="send_password" type="checkbox" name="send_password" value="1"';if (isset($_POST['send_password'])) echo 'checked';echo'/>
|
259 |
-
<i>'; _e(' Send these credentials via email.', 'profilebuilder');echo'</i></label>
|
260 |
-
</p><!-- .send-confirmation-email -->';
|
261 |
-
?>
|
262 |
-
|
263 |
-
<p class="form-submit">
|
264 |
-
<?php echo $referer; ?>
|
265 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
266 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
267 |
-
</p><!-- .form-submit -->
|
268 |
-
<?php wp_nonce_field('verify_true_registration','register_nonce_field'); ?>
|
269 |
-
</form><!-- #adduser -->
|
270 |
-
|
271 |
-
<?php endif; ?>
|
272 |
-
|
273 |
-
<?php endif; ?>
|
274 |
-
|
275 |
-
|
276 |
-
</div>
|
277 |
-
<?php
|
278 |
-
}
|
279 |
-
|
280 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/includes/wppb-menu-file.php
DELETED
@@ -1,330 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_display_menu(){
|
4 |
-
|
5 |
-
?>
|
6 |
-
<div class="wrap">
|
7 |
-
<?php screen_icon(); ?>
|
8 |
-
<h2> Profile Builder </h2>
|
9 |
-
<?php if ($_GET["settings-updated"] == 'true')
|
10 |
-
echo'<div id="message" class="updated below-h2">
|
11 |
-
<p>
|
12 |
-
Changes saved.
|
13 |
-
</p>
|
14 |
-
</div>';
|
15 |
-
?>
|
16 |
-
<h3><?php _e('Basic Information'); ?> </h3>
|
17 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
18 |
-
|
19 |
-
<tbody class="plugins">
|
20 |
-
<tr height="10"></tr>
|
21 |
-
<tr>
|
22 |
-
<td><font size="2">Welcome to Profile Builder!</font></td>
|
23 |
-
</tr>
|
24 |
-
<tr height="10"></tr>
|
25 |
-
<tr>
|
26 |
-
<td>Profile Builder lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users. Also, grants users with administrator rights to customize basic fields. To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).</td>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td>Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile]. Publish your page and you are done!</td>
|
30 |
-
</tr>
|
31 |
-
<tr>
|
32 |
-
<td>You can use the following shortcodes:</td>
|
33 |
-
</tr>
|
34 |
-
<tr>
|
35 |
-
<td><span style="padding-left:50px"></span>→ [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).</td>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td><span style="padding-left:50px"></span>→ [wppb-login] - for a basic log-in menu.</td>
|
39 |
-
</tr>
|
40 |
-
<tr>
|
41 |
-
<td><span style="padding-left:50px"></span>→ [wppb-register] - to add a registration form.</td>
|
42 |
-
</tr>
|
43 |
-
<tr height="10"></tr>
|
44 |
-
<tr>
|
45 |
-
<td>Also, users with administrator rights have access to the following features:</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td><span style="padding-left:50px"></span>→ add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.</td>
|
49 |
-
</tr>
|
50 |
-
<tr>
|
51 |
-
<td><span style="padding-left:50px"></span>→ select whether to display or not the admin bar in the front end for a specific user-group registered to the site.</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td><span style="padding-left:50px"></span>→ select which information-field can the users see/modify. The hidden fields' values remain unmodified.</td>
|
55 |
-
</tr>
|
56 |
-
<tr>
|
57 |
-
<td>NOTE: this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.</td>
|
58 |
-
</tr>
|
59 |
-
</tbody>
|
60 |
-
|
61 |
-
</table>
|
62 |
-
|
63 |
-
|
64 |
-
<form method="post" action="options.php">
|
65 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
66 |
-
<?php settings_fields('wppb_default_style'); ?>
|
67 |
-
<br/>
|
68 |
-
|
69 |
-
<h3><?php _e('Plug-in Layout'); ?> </h3>
|
70 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
71 |
-
|
72 |
-
<tbody class="plugins">
|
73 |
-
<tr height="10"></tr>
|
74 |
-
<tr>
|
75 |
-
<td><font size="2">Use default stylesheet:</font></td>
|
76 |
-
<td>
|
77 |
-
<select name="wppb_default_style" width="60" style="width: 60px">
|
78 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo ' selected';?>>yes</option>
|
79 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo ' selected';?>>no</option>
|
80 |
-
</select>
|
81 |
-
|
82 |
-
</td>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td></td>
|
86 |
-
<td>
|
87 |
-
<input type="hidden" name="action" value="update" />
|
88 |
-
<p class="submit">
|
89 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
90 |
-
</p>
|
91 |
-
</form>
|
92 |
-
</td>
|
93 |
-
</tr>
|
94 |
-
</tbody>
|
95 |
-
</table>
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
<form method="post" action="options.php">
|
103 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
104 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
105 |
-
|
106 |
-
<br/>
|
107 |
-
|
108 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End'); ?> </h3>
|
109 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
110 |
-
<thead>
|
111 |
-
<tr>
|
112 |
-
<th class="manage-column" scope="col">User-group</th>
|
113 |
-
<th class="manage-column" scope="col">Visibility</th>
|
114 |
-
</tr>
|
115 |
-
</thead>
|
116 |
-
<tbody>
|
117 |
-
<tr height="10"></tr>
|
118 |
-
<?php
|
119 |
-
foreach($wppb_showAdminBar as $key => $data){
|
120 |
-
echo'<tr>
|
121 |
-
<td>
|
122 |
-
<font size="2">'.$key.'</font>
|
123 |
-
</td>
|
124 |
-
<td>
|
125 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">Show</font><span style="padding-left:20px"></span>
|
126 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">Hide</font>
|
127 |
-
</td>
|
128 |
-
</tr>';
|
129 |
-
}
|
130 |
-
?>
|
131 |
-
|
132 |
-
<tbody class="plugins">
|
133 |
-
<tr height="10"></tr>
|
134 |
-
<tr>
|
135 |
-
<td>
|
136 |
-
</td>
|
137 |
-
<td>
|
138 |
-
<input type="hidden" name="action" value="update" />
|
139 |
-
<p class="submit">
|
140 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
141 |
-
</p>
|
142 |
-
</form>
|
143 |
-
</td>
|
144 |
-
</tr>
|
145 |
-
|
146 |
-
</tbody>
|
147 |
-
</table>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
<form method="post" action="options.php">
|
152 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
153 |
-
<?php settings_fields('wppb-option-group'); ?>
|
154 |
-
|
155 |
-
<br/>
|
156 |
-
|
157 |
-
<h3><?php _e('Default Profile Fields'); ?> </h3>
|
158 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
159 |
-
<thead>
|
160 |
-
<tr>
|
161 |
-
<th class="manage-column" scope="col">Input Field Name</th>
|
162 |
-
<th class="manage-column" scope="col">Visibility</th>
|
163 |
-
</tr>
|
164 |
-
</thead>
|
165 |
-
<tbody class="plugins" >
|
166 |
-
<tr height="10"></tr>
|
167 |
-
<tr>
|
168 |
-
<td><font size="4">Name:</font></td>
|
169 |
-
<td></td>
|
170 |
-
</tr>
|
171 |
-
</tbody>
|
172 |
-
<tbody>
|
173 |
-
<tr>
|
174 |
-
<td>
|
175 |
-
<span style="padding-left:50px"></span><font size="2">Username</font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1">Show</font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey">Hide</font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2">First Name</font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
189 |
-
</td>
|
190 |
-
</tr>
|
191 |
-
<tr>
|
192 |
-
<td>
|
193 |
-
<span style="padding-left:50px"></span><font size="2">Last Name</font>
|
194 |
-
</td>
|
195 |
-
<td>
|
196 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
197 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
198 |
-
</td>
|
199 |
-
</tr>
|
200 |
-
<tr>
|
201 |
-
<td>
|
202 |
-
<span style="padding-left:50px"></span><font size="2">Nickname</font>
|
203 |
-
</td>
|
204 |
-
<td>
|
205 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
206 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
207 |
-
</td>
|
208 |
-
</tr>
|
209 |
-
<tr>
|
210 |
-
<td>
|
211 |
-
<span style="padding-left:50px"></span><font size="2">Display name publicly as ...</font>
|
212 |
-
</td>
|
213 |
-
<td>
|
214 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
215 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
216 |
-
</td>
|
217 |
-
</tr>
|
218 |
-
<tbody class="plugins">
|
219 |
-
<tr height="10"></tr>
|
220 |
-
<tr>
|
221 |
-
<td><font size="4">Contact Info:</font></td>
|
222 |
-
<td></td>
|
223 |
-
</tr>
|
224 |
-
</tbody>
|
225 |
-
<tbody>
|
226 |
-
<tr>
|
227 |
-
<td>
|
228 |
-
<span style="padding-left:50px"></span><font size="2">E-mail</font>
|
229 |
-
</td>
|
230 |
-
<td>
|
231 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
232 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
233 |
-
</td>
|
234 |
-
</tr>
|
235 |
-
<tr>
|
236 |
-
<td>
|
237 |
-
<span style="padding-left:50px"></span><font size="2">Website</font>
|
238 |
-
</td>
|
239 |
-
<td>
|
240 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
241 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
242 |
-
</td>
|
243 |
-
</tr>
|
244 |
-
<tbody class="plugins">
|
245 |
-
</tbody>
|
246 |
-
<tbody>
|
247 |
-
<tr>
|
248 |
-
<td>
|
249 |
-
<span style="padding-left:50px"></span><font size="2">AIM</font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2">Yahoo IM</font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
263 |
-
</td>
|
264 |
-
</tr>
|
265 |
-
<tr>
|
266 |
-
<td>
|
267 |
-
<span style="padding-left:50px"></span><font size="2">Jabber / Google Talk</font>
|
268 |
-
</td>
|
269 |
-
<td>
|
270 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
271 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
272 |
-
</td>
|
273 |
-
</tr>
|
274 |
-
<tbody class="plugins">
|
275 |
-
<tr height="10"></tr>
|
276 |
-
<tr>
|
277 |
-
<td><font size="4">About Yourself:</font></td>
|
278 |
-
<td></td>
|
279 |
-
</tr>
|
280 |
-
</tbody>
|
281 |
-
<tbody>
|
282 |
-
<tr>
|
283 |
-
<td>
|
284 |
-
<span style="padding-left:50px"></span><font size="2">Biographical Info</font>
|
285 |
-
</td>
|
286 |
-
<td>
|
287 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1">Show</font><span style="padding-left:20px"></span>
|
288 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1">Hide</font>
|
289 |
-
</td>
|
290 |
-
</tr>
|
291 |
-
<tbody class="plugins">
|
292 |
-
<tr>
|
293 |
-
<td>
|
294 |
-
</td>
|
295 |
-
<td>
|
296 |
-
</td>
|
297 |
-
</tr>
|
298 |
-
</tbody>
|
299 |
-
<tbody>
|
300 |
-
<tr>
|
301 |
-
<td>
|
302 |
-
<span style="padding-left:50px"></span><font size="2">New Password</font>
|
303 |
-
</td>
|
304 |
-
<td>
|
305 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1">Show</font><span style="padding-left:20px"></span>
|
306 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey">Hide</font>
|
307 |
-
</td>
|
308 |
-
</tr>
|
309 |
-
<tbody class="plugins">
|
310 |
-
<tr height="10"></tr>
|
311 |
-
<tr>
|
312 |
-
<td>
|
313 |
-
</td>
|
314 |
-
<td>
|
315 |
-
<input type="hidden" name="action" value="update" />
|
316 |
-
<p class="submit">
|
317 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> <?php //Note the use of the _e() function to handle translation of the text ?>
|
318 |
-
</p>
|
319 |
-
</form>
|
320 |
-
</td>
|
321 |
-
</tr>
|
322 |
-
|
323 |
-
</tbody>
|
324 |
-
</table>
|
325 |
-
|
326 |
-
</div>
|
327 |
-
|
328 |
-
<?php
|
329 |
-
}
|
330 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/profile-builder.php
DELETED
@@ -1,130 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Profile Builder
|
4 |
-
Plugin URI:
|
5 |
-
Description: Profile Builder lets you create, edit and delete custom user information-fields from the frontend, and also lets you add new, custom fields. You can use the following shortcodes: [wppb-edit-profile] for the front-end profile information, [wppb-login] for a log-in menu or [wppb-register] to register a new user.
|
6 |
-
Version: v1.0
|
7 |
-
Author: Reflection Media
|
8 |
-
Author URI: http://reflectionmedia.ro
|
9 |
-
License: GPL2
|
10 |
-
*/
|
11 |
-
|
12 |
-
|
13 |
-
/* Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
|
28 |
-
register_activation_hook( __FILE__ , 'wppb_initialize_variables' ); //initialize some values upon plug-in activation
|
29 |
-
function wppb_initialize_variables(){
|
30 |
-
$wppb_default_settings = array( 'username' => 'show',
|
31 |
-
'firstname'=> 'show',
|
32 |
-
'lastname' => 'show',
|
33 |
-
'nickname' => 'show',
|
34 |
-
'dispname' => 'show',
|
35 |
-
'email' => 'show',
|
36 |
-
'website' => 'show',
|
37 |
-
'aim' => 'show',
|
38 |
-
'yahoo' => 'show',
|
39 |
-
'jabber' => 'show',
|
40 |
-
'bio' => 'show',
|
41 |
-
'password' => 'show' );
|
42 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
43 |
-
add_option( 'wppb_default_style', 'yes');
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
global $wp_roles;
|
48 |
-
|
49 |
-
$all_roles = $wp_roles->roles;
|
50 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
51 |
-
|
52 |
-
|
53 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
54 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
55 |
-
$rolesArray = array();
|
56 |
-
foreach ( $editable_roles as $key => $data )
|
57 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
58 |
-
$rolesArray = array_reverse($rolesArray,true);
|
59 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
60 |
-
}
|
61 |
-
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
function wppb_create_menu(){
|
67 |
-
add_submenu_page('users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderSettings', 'wppb_display_menu');
|
68 |
-
}
|
69 |
-
|
70 |
-
|
71 |
-
function wppb_register_settings() { // whitelist options, you can add more register_settings changing the second parameter
|
72 |
-
register_setting( 'wppb-option-group', 'wppb_default_settings' );
|
73 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
74 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
75 |
-
}
|
76 |
-
|
77 |
-
|
78 |
-
function wppb_add_plugin_stylesheet() {
|
79 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
80 |
-
$styleUrl = WP_PLUGIN_URL . '/profile-builder/css/style.css';
|
81 |
-
$styleFile = WP_PLUGIN_DIR . '/profile-builder/css/style.css';
|
82 |
-
if ( file_exists($styleFile) && $wppb_showDefaultCss == 'yes') {
|
83 |
-
wp_register_style('wppb_stylesheet', $styleUrl);
|
84 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
85 |
-
}
|
86 |
-
}
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
function wppb_show_admin_bar($content){
|
92 |
-
global $current_user;
|
93 |
-
|
94 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
95 |
-
|
96 |
-
if ($admintSettingsPresent != 'not_found'){
|
97 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
98 |
-
$userRole = ($current_user->data->wp_capabilities);
|
99 |
-
if ($userRole != NULL){
|
100 |
-
$currentRole = key($userRole);
|
101 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
102 |
-
if ($getSettings == 'show')
|
103 |
-
return true;
|
104 |
-
elseif ($getSettings == 'hide')
|
105 |
-
return false;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
else
|
109 |
-
return true;
|
110 |
-
}
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
if (is_admin() ){ // if we are in the admin menu
|
118 |
-
include_once('includes/wppb-menu-file.php'); // include the menu file
|
119 |
-
add_action('admin_init', 'wppb_register_settings'); // register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin"
|
120 |
-
add_action('admin_menu','wppb_create_menu'); // call the wppb_create_menu function
|
121 |
-
}else{ // if we aren't in the admin back-end menu, aka we are in the front-end view
|
122 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet'); // include the standard style-sheet or specify the path to a new one
|
123 |
-
include_once('includes/wppb-front-end-profile.php'); // include the menu file for the profile informations
|
124 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
125 |
-
include_once('includes/wppb-front-end-login.php'); // include the menu file for the login screen
|
126 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
127 |
-
include_once('includes/wppb-front-end-register.php'); // include the menu file for the register screen
|
128 |
-
add_shortcode('wppb-register', 'wppb_front_end_register');
|
129 |
-
add_filter( 'show_admin_bar' , 'wppb_show_admin_bar'); // set the front-end admin bar to show/hide
|
130 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/readme.txt
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
You can use the following shortcodes:
|
23 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
24 |
-
* [wppb-login] - for a log-in form.
|
25 |
-
* [wppb-register] - to add a registration form.
|
26 |
-
|
27 |
-
Also, users with administrator rights have access to the following features:
|
28 |
-
* add a custom stylesheet/inherit values from the current theme or use the default one, built into this plug-in.
|
29 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
30 |
-
* select which information-field can the users see/modify. The hidden fields' values remain unmodified.
|
31 |
-
|
32 |
-
NOTE:
|
33 |
-
this plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable)
|
34 |
-
from the back-end, while custom fields will only be visible in the front-end.
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
== Installation ==
|
39 |
-
|
40 |
-
1. Upload the profile-builder folder to the `/wp-content/plugins/` directory
|
41 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
42 |
-
1. Create a new page and use one of the shortcodes available
|
43 |
-
|
44 |
-
== Frequently Asked Questions ==
|
45 |
-
|
46 |
-
Q: Will it change the default admin-panel from the back-end by adding/disableing information-fields?
|
47 |
-
A: No, profile-builder only affects the front-end of your site, leaving the default fields unmodified
|
48 |
-
|
49 |
-
Q: Will the information be also updated for any hidden fields?
|
50 |
-
A: No, only fields visible to the users will/can be modified/updated.
|
51 |
-
|
52 |
-
|
53 |
-
== Screenshots ==
|
54 |
-
|
55 |
-
1. Login Page: screenshot-1.jpg
|
56 |
-
2. Register Page: screenshot-2.jpg
|
57 |
-
3. Backend Settings: screenshot-3.jpg
|
58 |
-
|
59 |
-
== Changelog ==
|
60 |
-
|
61 |
-
= 1.0 =
|
62 |
-
* Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.0/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.0/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.0/uninstall.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
4 |
-
exit (); // If uninstall not called from WordPress exit
|
5 |
-
|
6 |
-
delete_option( 'wppb_default_settings' ); // Delete default settings from options table
|
7 |
-
delete_option( 'wppb_default_style' ); // Delete "use default css or not" settings
|
8 |
-
delete_option( 'wppb_display_admin_settings' ); // Delete display admin bar option
|
9 |
-
|
10 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/assets/css/front.end.css
DELETED
@@ -1,254 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
NOTES:
|
3 |
-
The global Profile Builder class is: wppb_holder
|
4 |
-
|
5 |
-
|
6 |
-
*/
|
7 |
-
/* WPPB_MODIFY, WPPB_REGISTER, WPPB_LOGIN */
|
8 |
-
|
9 |
-
#wppb_modify p, #wppb_register p, #wppb_login p, #wppb_recover_password p{
|
10 |
-
clear:both;
|
11 |
-
}
|
12 |
-
|
13 |
-
.wppb-rc-value{
|
14 |
-
font-size:12px;
|
15 |
-
margin-right:10px;
|
16 |
-
vertical-align:middle;
|
17 |
-
}
|
18 |
-
|
19 |
-
.wppb-max-upload{
|
20 |
-
font-size:11px;
|
21 |
-
display: block;
|
22 |
-
text-align: right;
|
23 |
-
}
|
24 |
-
|
25 |
-
.wppb-description-delimiter{
|
26 |
-
display:block;
|
27 |
-
font-size:12px;
|
28 |
-
font-weight:normal;
|
29 |
-
font-style:italic;
|
30 |
-
padding-left:15px;
|
31 |
-
margin-left:30%;
|
32 |
-
}
|
33 |
-
|
34 |
-
.wppb-description-delimiter2{
|
35 |
-
display:block;
|
36 |
-
font-size:12px;
|
37 |
-
font-weight:normal;
|
38 |
-
font-style:italic;
|
39 |
-
}
|
40 |
-
|
41 |
-
.agreeToTerms{
|
42 |
-
display:block;
|
43 |
-
font-size:12px;
|
44 |
-
font-weight:normal;
|
45 |
-
font-style:italic;
|
46 |
-
padding-left:15px;
|
47 |
-
margin-left:30%;
|
48 |
-
margin-top: -23px;
|
49 |
-
padding-left: 45px;
|
50 |
-
}
|
51 |
-
|
52 |
-
#wppb_modify p label, #wppb_register p label, #wppb_login p label, #wppb_recover_password p label{
|
53 |
-
width:30%;
|
54 |
-
float:left;
|
55 |
-
clear:left;
|
56 |
-
padding-right:15px;
|
57 |
-
}
|
58 |
-
#wppb_modify input[type=text], #wppb_modify input[type=password], #wppb_modify select, #wppb_modify textarea, #wppb_register input[type=text], #wppb_register input[type=password], #wppb_register select, #wppb_register textarea, #wppb_login input[type=text], #wppb_login input[type=password], #wppb_login select, #wppb_login textarea, #wppb_recover_password input[type=text]{
|
59 |
-
width:60%;
|
60 |
-
margin-bottom:5px;
|
61 |
-
}
|
62 |
-
|
63 |
-
#wppb_modify input[type="checkbox"], #wppb_modify input[type="radio"], #wppb_register input[type="checkbox"], #wppb_register input[type="radio"], #wppb_login input[type="checkbox"], #wppb_login input[type="radio"]{
|
64 |
-
vertical-align:middle;
|
65 |
-
margin:5px;
|
66 |
-
}
|
67 |
-
|
68 |
-
#wppb_recover_password input[type="text"], #wppb_recover_password input[type="password"]{
|
69 |
-
width:60%;
|
70 |
-
margin-bottom:5px;
|
71 |
-
}
|
72 |
-
|
73 |
-
#wppb_register .send-confirmation-email label{
|
74 |
-
width:auto;
|
75 |
-
float:none;
|
76 |
-
}
|
77 |
-
|
78 |
-
.changes-saved, .success{
|
79 |
-
color:green;
|
80 |
-
}
|
81 |
-
.semi-saved{
|
82 |
-
color:orange;
|
83 |
-
}
|
84 |
-
|
85 |
-
.warning, .error{
|
86 |
-
color:red;
|
87 |
-
}
|
88 |
-
|
89 |
-
.wppb-cattachment, .wppb-dattachment{
|
90 |
-
margin:0 5px;
|
91 |
-
}
|
92 |
-
|
93 |
-
.send-confirmation-email .wppb-description-delimiter{
|
94 |
-
display:inline;
|
95 |
-
margin:0;
|
96 |
-
padding:0;
|
97 |
-
}
|
98 |
-
|
99 |
-
#wppb_login .login-form-submit label{
|
100 |
-
float:none;
|
101 |
-
}
|
102 |
-
|
103 |
-
#userListingForm{
|
104 |
-
font-size:11px;
|
105 |
-
margin-bottom:15px;
|
106 |
-
}
|
107 |
-
|
108 |
-
#userListingForm > *{
|
109 |
-
vertical-align:middle;
|
110 |
-
}
|
111 |
-
|
112 |
-
|
113 |
-
#userListingForm select{
|
114 |
-
font-size:11px;
|
115 |
-
margin:0;
|
116 |
-
}
|
117 |
-
|
118 |
-
#userListingForm .button-primary-reorder{
|
119 |
-
font-size:12px;
|
120 |
-
margin:0 3px;
|
121 |
-
}
|
122 |
-
|
123 |
-
/* userListingTable */
|
124 |
-
#userListingTable{
|
125 |
-
border-collapse: separate;
|
126 |
-
width:100%;
|
127 |
-
text-align: left;
|
128 |
-
}
|
129 |
-
|
130 |
-
#userListingTable thead th{
|
131 |
-
background-color: #F0F0F0;
|
132 |
-
}
|
133 |
-
|
134 |
-
#userListingTable tbody td, #userListingTable thead th{
|
135 |
-
line-height: 14px;
|
136 |
-
font-size:12px;
|
137 |
-
padding: 5px;
|
138 |
-
font-weight:normal;
|
139 |
-
}
|
140 |
-
|
141 |
-
#userListingTable .avatarColumn{
|
142 |
-
padding-right: 2px !important;
|
143 |
-
}
|
144 |
-
|
145 |
-
#userListingTable .loginNameColumn{
|
146 |
-
text-align: left;
|
147 |
-
padding-left: 2px !important;
|
148 |
-
}
|
149 |
-
|
150 |
-
/* userListingTable */
|
151 |
-
|
152 |
-
|
153 |
-
/* userListingDisplayTable */
|
154 |
-
#userListingDisplayTable{
|
155 |
-
border:none !important;
|
156 |
-
border-collapse: separate;
|
157 |
-
}
|
158 |
-
|
159 |
-
#userListingDisplayTable tbody td{
|
160 |
-
border: none;
|
161 |
-
text-align:left;
|
162 |
-
}
|
163 |
-
|
164 |
-
#userListingDisplayTable tbody td span{
|
165 |
-
color: gray;
|
166 |
-
}
|
167 |
-
|
168 |
-
#userListingDisplayTable tbody td strong{
|
169 |
-
color: #000;
|
170 |
-
}
|
171 |
-
|
172 |
-
|
173 |
-
#userListingDisplayTableEmptyHeaderCell1{
|
174 |
-
height:20px;
|
175 |
-
}
|
176 |
-
|
177 |
-
#userListingDisplayTableCell1{
|
178 |
-
width:5%;
|
179 |
-
}
|
180 |
-
|
181 |
-
#userListingDisplayTableCell2{
|
182 |
-
width:30%;
|
183 |
-
padding-left:30px !important;
|
184 |
-
}
|
185 |
-
/* userListingDisplayTable */
|
186 |
-
|
187 |
-
.button-primary-reorder{
|
188 |
-
position:relative;
|
189 |
-
left: 5px;
|
190 |
-
height:24px;
|
191 |
-
font-size:10px;
|
192 |
-
}
|
193 |
-
/*
|
194 |
-
.sortingOrderCriteria2{
|
195 |
-
height:24px;
|
196 |
-
font-size:10px;
|
197 |
-
width:115px;
|
198 |
-
}
|
199 |
-
.sortingOrderSelect2{
|
200 |
-
height:24px;
|
201 |
-
font-size:10px;
|
202 |
-
width:90px;
|
203 |
-
}
|
204 |
-
.sortingNumberSelect2{
|
205 |
-
height:24px;
|
206 |
-
font-size:10px;
|
207 |
-
width:60px;
|
208 |
-
}
|
209 |
-
*/
|
210 |
-
|
211 |
-
|
212 |
-
#ui-datepicker-div{
|
213 |
-
font: 70% "Trebuchet MS", sans-serif;
|
214 |
-
}
|
215 |
-
/*
|
216 |
-
.avatar-border span{
|
217 |
-
background: none repeat scroll 0 0 #F1F1F1;
|
218 |
-
border: 5px solid #6EAB1D;
|
219 |
-
color: black;
|
220 |
-
display: inline-block;
|
221 |
-
padding: 5px;
|
222 |
-
}*/
|
223 |
-
|
224 |
-
|
225 |
-
.avatarColumn{
|
226 |
-
width:4px;
|
227 |
-
}
|
228 |
-
|
229 |
-
.moreInfoColumn{
|
230 |
-
width:8px;
|
231 |
-
}
|
232 |
-
|
233 |
-
.signUpColumn{
|
234 |
-
width:80px;
|
235 |
-
}
|
236 |
-
|
237 |
-
.postsColumn{
|
238 |
-
width:40px;
|
239 |
-
}
|
240 |
-
|
241 |
-
|
242 |
-
#wppb_modify p.errorHolder{
|
243 |
-
background-color: #FFDFDF;
|
244 |
-
border: 1px dotted #C89797;
|
245 |
-
margin-bottom: 6px !important;
|
246 |
-
padding: 6px 0px 4px !important;
|
247 |
-
}
|
248 |
-
|
249 |
-
#wppb_register p.errorHolder{
|
250 |
-
background-color: #FFDFDF;
|
251 |
-
border: 1px dotted #C89797;
|
252 |
-
margin-bottom: 6px !important;
|
253 |
-
padding: 6px 0px 4px !important;
|
254 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/assets/css/premium.style.css
DELETED
@@ -1,1087 +0,0 @@
|
|
1 |
-
/* Profile Builder CSS File*/
|
2 |
-
/*
|
3 |
-
Original Plugin Name: OptionTree
|
4 |
-
Original Plugin URI: http://wp.envato.com
|
5 |
-
Original Author: Derek Herman
|
6 |
-
Original Author URI: http://valendesigns.com
|
7 |
-
*/
|
8 |
-
#wpwrap {
|
9 |
-
min-width: 990px;
|
10 |
-
}
|
11 |
-
strong {
|
12 |
-
color: #000;
|
13 |
-
}
|
14 |
-
.clear {
|
15 |
-
clear: both;
|
16 |
-
}
|
17 |
-
.hide,
|
18 |
-
#contextual-help-link-wrap {
|
19 |
-
display: none;
|
20 |
-
}
|
21 |
-
.left {
|
22 |
-
float: left !important;
|
23 |
-
}
|
24 |
-
.right {
|
25 |
-
float: right !important;
|
26 |
-
}
|
27 |
-
p {
|
28 |
-
padding-bottom: 14px;
|
29 |
-
}
|
30 |
-
a {
|
31 |
-
text-decoration: none;
|
32 |
-
}
|
33 |
-
a strong {
|
34 |
-
color: #21759B !important;
|
35 |
-
}
|
36 |
-
a:hover strong {
|
37 |
-
color: #d54e21 !important;
|
38 |
-
}
|
39 |
-
#framework_wrap .error {
|
40 |
-
display: none !important;
|
41 |
-
}
|
42 |
-
#framework_wrap {
|
43 |
-
position: relative;
|
44 |
-
width: 788px;
|
45 |
-
margin: 15px;
|
46 |
-
}
|
47 |
-
#framework_wrap #header {
|
48 |
-
-webkit-border-top-left-radius: 8px;
|
49 |
-
-webkit-border-top-right-radius: 8px;
|
50 |
-
-moz-border-radius-topleft: 8px;
|
51 |
-
-moz-border-radius-topright: 8px;
|
52 |
-
border-top-left-radius: 8px;
|
53 |
-
border-top-right-radius: 8px;
|
54 |
-
background: #6d6d6d url(../images/header.png) repeat-x left top;
|
55 |
-
border: 1px solid #555;
|
56 |
-
height: 71px;
|
57 |
-
width: 785px;
|
58 |
-
position: relative;
|
59 |
-
}
|
60 |
-
#framework_wrap #header h1 {
|
61 |
-
width: 225px;
|
62 |
-
height: 50px;
|
63 |
-
background: url(../images/logo.png) no-repeat 0 0;
|
64 |
-
text-indent: -9999px;
|
65 |
-
margin: 10px 0 0 20px;
|
66 |
-
}
|
67 |
-
|
68 |
-
#framework_wrap #header span.icon {
|
69 |
-
position: absolute;
|
70 |
-
display: block;
|
71 |
-
right: 20px;
|
72 |
-
top: 18px;
|
73 |
-
height: 32px;
|
74 |
-
width: 32px;
|
75 |
-
text-indent: -9999px;
|
76 |
-
/*background: url(../images/icon_option.png) no-repeat left center;*/
|
77 |
-
}
|
78 |
-
#framework_wrap #header div.version {
|
79 |
-
text-align: left;
|
80 |
-
position: absolute;
|
81 |
-
left: 85px;
|
82 |
-
top: 50px;
|
83 |
-
font-size: 9px !important;
|
84 |
-
line-height: 10px;
|
85 |
-
color: #111;
|
86 |
-
font-style: normal;
|
87 |
-
font-family: Verdana,Arial,sans-serif;
|
88 |
-
text-transform: uppercase;
|
89 |
-
font-weight: normal;
|
90 |
-
text-shadow: 0 1px 0 #888;
|
91 |
-
letter-spacing: -0.05em;
|
92 |
-
}
|
93 |
-
#framework_wrap #content_wrap {
|
94 |
-
border: 1px solid #aaa;
|
95 |
-
border-top: none;
|
96 |
-
background: #fff;
|
97 |
-
width: 785px;
|
98 |
-
position: relative;
|
99 |
-
}
|
100 |
-
#framework_wrap #content_wrap .info {
|
101 |
-
background: #eaf2fa;
|
102 |
-
background: #f9f9f9;
|
103 |
-
height: 35px;
|
104 |
-
border-top: 1px solid #fff;
|
105 |
-
border-bottom: 1px solid #e3e3e3;
|
106 |
-
}
|
107 |
-
a.toggle_tabs {
|
108 |
-
cursor: pointer;
|
109 |
-
background: url(../images/toggle_tabs.png) no-repeat -2px -1px;
|
110 |
-
display: block;
|
111 |
-
height: 22px;
|
112 |
-
width: 21px;
|
113 |
-
float: left;
|
114 |
-
text-indent: -9999px;
|
115 |
-
margin: 5px 5px 0 19px;
|
116 |
-
border: 1px solid #bbb;
|
117 |
-
-webkit-border-radius: 4px;
|
118 |
-
-moz-border-radius: 4px;
|
119 |
-
border-radius: 4px;
|
120 |
-
}
|
121 |
-
.no-tabs a.toggle_tabs {
|
122 |
-
display: none;
|
123 |
-
}
|
124 |
-
a:hover.toggle_tabs {
|
125 |
-
border-color: #666;
|
126 |
-
}
|
127 |
-
a.off {
|
128 |
-
background-position: -2px -26px;
|
129 |
-
}
|
130 |
-
#framework_wrap #content_wrap .bottom {
|
131 |
-
border-top: 1px solid #fff !important;
|
132 |
-
border-bottom: none !important;
|
133 |
-
|
134 |
-
background: #f1f1f1;
|
135 |
-
}
|
136 |
-
#framework_wrap #content_wrap .info input.button-framework {
|
137 |
-
float: right;
|
138 |
-
margin: 5px 20px 0 0;
|
139 |
-
padding: 4px 10px;
|
140 |
-
font-size: 11px;
|
141 |
-
height: 24px;
|
142 |
-
}
|
143 |
-
#framework_wrap #content_wrap .info input.add-item {
|
144 |
-
float: left;
|
145 |
-
margin-left: 20px;
|
146 |
-
}
|
147 |
-
#framework_wrap #content_wrap .info input.reset {
|
148 |
-
margin-left: 20px;
|
149 |
-
color: #d54e45;
|
150 |
-
float: left;
|
151 |
-
}
|
152 |
-
#framework_wrap #content_wrap a.reset {
|
153 |
-
margin-right: 10px;
|
154 |
-
color: #d54e45;
|
155 |
-
}
|
156 |
-
.ajax-message {
|
157 |
-
position: absolute;
|
158 |
-
left: 300px;
|
159 |
-
top: 100px;
|
160 |
-
width: 200px;
|
161 |
-
z-index: 100;
|
162 |
-
display: none;
|
163 |
-
overflow: visible;
|
164 |
-
}
|
165 |
-
#framework_wrap #content_wrap .message {
|
166 |
-
text-align: center;
|
167 |
-
color: #444;
|
168 |
-
text-shadow: 0 1px 0 #fff;
|
169 |
-
font-size: 12px;
|
170 |
-
line-height: 16px;
|
171 |
-
padding: 20px 10px;
|
172 |
-
background: #f3f3f3;
|
173 |
-
border: 1px solid #bbb;
|
174 |
-
-webkit-border-radius: 5px;
|
175 |
-
-moz-border-radius: 5px;
|
176 |
-
border-radius: 5px;
|
177 |
-
-moz-box-shadow: 0px 2px 5px #eee;
|
178 |
-
-webkit-box-shadow: 0px 2px 5px #eee;
|
179 |
-
box-shadow: 0px 2px 5px #eee;
|
180 |
-
}
|
181 |
-
#framework_wrap #content_wrap .message span {
|
182 |
-
display: block;
|
183 |
-
height: 16px;
|
184 |
-
width: 16px;
|
185 |
-
position: absolute;
|
186 |
-
left: -8px;
|
187 |
-
top: -8px;
|
188 |
-
background: url(../images/icon_add.png) no-repeat 0 0;
|
189 |
-
}
|
190 |
-
#framework_wrap #content_wrap .message.warning span {
|
191 |
-
background-image: url(../images/icon_error.png);
|
192 |
-
}
|
193 |
-
/* Primary Form Button */
|
194 |
-
#framework_wrap input.button-framework {
|
195 |
-
cursor: pointer;
|
196 |
-
font-size: 12px;
|
197 |
-
color: #444;
|
198 |
-
text-shadow: 0 1px 0 #fff;
|
199 |
-
background: #f3f3f3 url(../images/btn.png) repeat-x 0 0;
|
200 |
-
border: 1px solid #bbb;
|
201 |
-
padding: 5px 10px;
|
202 |
-
}
|
203 |
-
#framework_wrap input:hover.button-framework {
|
204 |
-
color: #000;
|
205 |
-
border-color: #666;
|
206 |
-
}
|
207 |
-
#framework_wrap a.button-framework {
|
208 |
-
cursor: pointer;
|
209 |
-
font-size: 12px;
|
210 |
-
color: #444;
|
211 |
-
text-shadow: 0 1px 0 #fff;
|
212 |
-
background: #f3f3f3 url(../images/btn.png) repeat-x 0 0;
|
213 |
-
border: 1px solid #bbb;
|
214 |
-
padding: 3px 10px 3px 10px;
|
215 |
-
-webkit-border-radius: 4px;
|
216 |
-
-moz-border-radius: 4px;
|
217 |
-
border-radius: 4px;
|
218 |
-
text-decoration: none;
|
219 |
-
float: left;
|
220 |
-
position: relative;
|
221 |
-
left: 1px;
|
222 |
-
}
|
223 |
-
#framework_wrap div.inline-edit-save a.button-framework {
|
224 |
-
padding: 2px 10px 2px 10px;
|
225 |
-
font-size: 11px;
|
226 |
-
}
|
227 |
-
#framework_wrap a:hover.button-framework {
|
228 |
-
color: #000;
|
229 |
-
border-color: #666;
|
230 |
-
}
|
231 |
-
|
232 |
-
#framework_wrap a.button-framework.light {
|
233 |
-
border: 1px solid #dfdfdf;
|
234 |
-
color: #464646;
|
235 |
-
}
|
236 |
-
#framework_wrap a:hover.button-framework.light {
|
237 |
-
color: #000;
|
238 |
-
border-color: #adaca7;
|
239 |
-
}
|
240 |
-
|
241 |
-
/* Ads in free version */
|
242 |
-
#framework_wrap #content_wrap .basic-version-info {
|
243 |
-
height:113px;
|
244 |
-
background:#fffbcc;
|
245 |
-
}
|
246 |
-
#framework_wrap #content_wrap .basic-version-info form{
|
247 |
-
float:right;
|
248 |
-
margin-right:13px;
|
249 |
-
margin-top:30px;
|
250 |
-
}
|
251 |
-
#framework_wrap #content_wrap .basic-version-info a{
|
252 |
-
position:absolute;
|
253 |
-
width:140px;
|
254 |
-
top:80px;
|
255 |
-
margin-left:60px;
|
256 |
-
|
257 |
-
}
|
258 |
-
|
259 |
-
/* Content Inner */
|
260 |
-
#framework_wrap #content {
|
261 |
-
padding: 0;
|
262 |
-
width: 785px;
|
263 |
-
border-bottom: 1px solid #e3e3e3;
|
264 |
-
position: relative;
|
265 |
-
}
|
266 |
-
.screenshot {
|
267 |
-
float: right;
|
268 |
-
margin-left: 1px;
|
269 |
-
position: relative;
|
270 |
-
width: 344px;
|
271 |
-
}
|
272 |
-
.screenshot img {
|
273 |
-
max-width: 334px;
|
274 |
-
padding: 4px;
|
275 |
-
border: 1px solid #ccc;
|
276 |
-
background: #fafafa;
|
277 |
-
border-color: #ccc #eee #eee #ccc;
|
278 |
-
-webkit-border-radius: 4px;
|
279 |
-
-moz-border-radius: 4px;
|
280 |
-
border-radius: 4px;
|
281 |
-
float: right;
|
282 |
-
}
|
283 |
-
.screenshot a {
|
284 |
-
text-decoration: none;
|
285 |
-
padding-left: 20px;
|
286 |
-
}
|
287 |
-
.screenshot a.remove {
|
288 |
-
background: url(../images/icon_delete.png) no-repeat 0 0;
|
289 |
-
display: block;
|
290 |
-
height: 16px;
|
291 |
-
width: 16px;
|
292 |
-
position: absolute;
|
293 |
-
bottom: -4px;
|
294 |
-
right: -4px;
|
295 |
-
text-indent: -9999px;
|
296 |
-
float: left;
|
297 |
-
padding: 0;
|
298 |
-
border: none;
|
299 |
-
}
|
300 |
-
.screenshot .no_image a.remove {
|
301 |
-
left: 0;
|
302 |
-
top: 2px;
|
303 |
-
}
|
304 |
-
.option-upload .element {
|
305 |
-
padding-bottom: 5px;
|
306 |
-
}
|
307 |
-
#framework_wrap #content h2 {
|
308 |
-
margin-bottom: 10px;
|
309 |
-
border-bottom: 1px solid #e5e5e5;
|
310 |
-
}
|
311 |
-
#framework_wrap #content h3 {
|
312 |
-
border-bottom: 1px solid #eee;
|
313 |
-
margin: 0 0 15px 0;
|
314 |
-
padding-bottom: 10px;
|
315 |
-
clear: both;
|
316 |
-
font-size: 14px;
|
317 |
-
}
|
318 |
-
h3.text-title {
|
319 |
-
font: italic 20px/30px Georgia,"Times New Roman","Bitstream Charter",Times,serif !important;
|
320 |
-
}
|
321 |
-
#framework_wrap #content tbody tr.inline-edit-option td h3 {
|
322 |
-
border-bottom-color: #ddd;
|
323 |
-
}
|
324 |
-
#framework_wrap #content .block {
|
325 |
-
display: block;
|
326 |
-
overflow: hidden;
|
327 |
-
padding: 20px;
|
328 |
-
}
|
329 |
-
#framework_wrap #content p {
|
330 |
-
font-size: 11px;
|
331 |
-
color: #555;
|
332 |
-
padding-bottom: 20px;
|
333 |
-
margin: 0;
|
334 |
-
}
|
335 |
-
#framework_wrap #content table {
|
336 |
-
border: 1px solid #dfdfdf;
|
337 |
-
width: 100%;
|
338 |
-
text-align: left;
|
339 |
-
border-spacing: 0;
|
340 |
-
border-style: solid;
|
341 |
-
border-width: 1px;
|
342 |
-
font-size: 11px !important;
|
343 |
-
text-shadow: 0 1px 0 #fff;
|
344 |
-
-webkit-border-radius: 4px;
|
345 |
-
-moz-border-radius: 4px;
|
346 |
-
border-radius: 4px;
|
347 |
-
}
|
348 |
-
#framework_wrap #content2 table {
|
349 |
-
border: 0px solid #dfdfdf;
|
350 |
-
width: 100%;
|
351 |
-
text-align: left;
|
352 |
-
border-spacing: 0;
|
353 |
-
border-style: solid;
|
354 |
-
border-width: 1px;
|
355 |
-
font-size: 11px !important;
|
356 |
-
text-shadow: 0 1px 0 #fff;
|
357 |
-
-webkit-border-radius: 4px;
|
358 |
-
-moz-border-radius: 4px;
|
359 |
-
border-radius: 4px;
|
360 |
-
}
|
361 |
-
|
362 |
-
#framework_wrap #content .has-table table th {
|
363 |
-
background: #f1f1f1;
|
364 |
-
background-image: -moz-linear-gradient(top, #f9f9f9, #f1f1f1);
|
365 |
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f1f1f1));
|
366 |
-
}
|
367 |
-
tbody tr:hover {
|
368 |
-
cursor: pointer;
|
369 |
-
}
|
370 |
-
tbody tr.inline-edit-option {
|
371 |
-
}
|
372 |
-
tbody tr.inline-edit-option td {
|
373 |
-
background: #f1f1f1;
|
374 |
-
border-top: 1px solid #fff;
|
375 |
-
border-left: 1px solid #fff;
|
376 |
-
border-right: 1px solid #fff;
|
377 |
-
}
|
378 |
-
tbody tr:hover.inline-edit-option {
|
379 |
-
cursor: default;
|
380 |
-
}
|
381 |
-
#framework_wrap #content .has-table table #framework-settings .dragging {
|
382 |
-
background: #666 url(../images/black_px.png) repeat-x 0 0;
|
383 |
-
color: #fff;
|
384 |
-
text-shadow: 0 1px 0 #000;
|
385 |
-
}
|
386 |
-
#framework_wrap #content .has-table table #framework-settings .dragging td {
|
387 |
-
border-color: #000;
|
388 |
-
}
|
389 |
-
#framework_wrap #content .has-table table #framework-settings .dragging .col-edit {
|
390 |
-
background: url(../images/icon_up_down.png) no-repeat 63px center;
|
391 |
-
}
|
392 |
-
#framework_wrap #content .has-table table #framework-settings .dragging a.edit-inline,
|
393 |
-
#framework_wrap #content .has-table table #framework-settings .dragging a.delete-inline {
|
394 |
-
display: none;
|
395 |
-
}
|
396 |
-
.col-title {
|
397 |
-
padding-left: 10px !important;
|
398 |
-
width: 200px;
|
399 |
-
}
|
400 |
-
.col-type {
|
401 |
-
width: 60px;
|
402 |
-
}
|
403 |
-
.col-edit {
|
404 |
-
width: 45px;
|
405 |
-
padding-left: 40px !important;
|
406 |
-
padding-right: 0px !important;
|
407 |
-
}
|
408 |
-
.has-table table tr:first-child {
|
409 |
-
cursor: default;
|
410 |
-
}
|
411 |
-
.has-table table .col-heading {
|
412 |
-
background: #eaf3fa;
|
413 |
-
}
|
414 |
-
.has-table table .col-heading td:first-child {
|
415 |
-
font-weight: bold;
|
416 |
-
background: transparent url(../images/icon_header.png) no-repeat 10px 11px;
|
417 |
-
padding-left: 30px !important;
|
418 |
-
}
|
419 |
-
.has-table table thead th,
|
420 |
-
.has-table table td {
|
421 |
-
border-bottom: 1px solid #dfdfdf;
|
422 |
-
}
|
423 |
-
.has-table table tr,
|
424 |
-
.has-table table td,
|
425 |
-
.has-table table th {
|
426 |
-
padding: 10px 10px;
|
427 |
-
font-size: 11px !important;
|
428 |
-
}
|
429 |
-
.has-table table th {
|
430 |
-
padding: 6px 10px;
|
431 |
-
font-size: 11px !important;
|
432 |
-
}
|
433 |
-
.has-table table a {
|
434 |
-
text-decoration: none;
|
435 |
-
}
|
436 |
-
/* Inline Edit */
|
437 |
-
.inline-edit-option {
|
438 |
-
display: none;
|
439 |
-
}
|
440 |
-
a.edit-inline,
|
441 |
-
a.delete-inline,
|
442 |
-
a.add-option {
|
443 |
-
background: url(../images/icon_edit.png) no-repeat 0 0;
|
444 |
-
display: block;
|
445 |
-
height: 16px;
|
446 |
-
width: 16px;
|
447 |
-
text-indent: -9999px;
|
448 |
-
float: left;
|
449 |
-
margin-right: 5px;
|
450 |
-
display: block;
|
451 |
-
}
|
452 |
-
a.delete-inline {
|
453 |
-
background-image: url(../images/icon_delete.png);
|
454 |
-
}
|
455 |
-
a.add-option {
|
456 |
-
background-image: url(../images/icon_add.png);
|
457 |
-
margin-left: 21px;
|
458 |
-
}
|
459 |
-
a:hover.edit-inline {
|
460 |
-
border-color: #666;
|
461 |
-
}
|
462 |
-
a:hover.delete-inline {
|
463 |
-
border-color: #d54e45;
|
464 |
-
}
|
465 |
-
#framework_wrap #content .option {
|
466 |
-
padding-bottom: 15px;
|
467 |
-
}
|
468 |
-
#framework_wrap #content .option .section {
|
469 |
-
overflow: hidden;
|
470 |
-
font-size: 11px;
|
471 |
-
}
|
472 |
-
#framework_wrap #content .option .section .element {
|
473 |
-
float: left;
|
474 |
-
margin: 0 15px 0 0;
|
475 |
-
width: 345px;
|
476 |
-
}
|
477 |
-
#framework_wrap #content .option-checkbox .section .element {
|
478 |
-
width: 25px;
|
479 |
-
}
|
480 |
-
#framework_wrap #content .option .section .description {
|
481 |
-
color: #555;
|
482 |
-
float: left;
|
483 |
-
font-size: 11px;
|
484 |
-
padding: 2px 10px 0 0;
|
485 |
-
width: 370px;
|
486 |
-
}
|
487 |
-
div.desc-text p {
|
488 |
-
color: #555;
|
489 |
-
font-size: 11px !important;
|
490 |
-
}
|
491 |
-
#framework_wrap #content .inline-edit-option .option .section .description {
|
492 |
-
width: 325px;
|
493 |
-
padding-top: 0px;
|
494 |
-
}
|
495 |
-
#framework_wrap #content .option-checkbox .section .description {
|
496 |
-
width: 540px;
|
497 |
-
}
|
498 |
-
#framework_wrap #content label {
|
499 |
-
|
500 |
-
}
|
501 |
-
.input_wrap {
|
502 |
-
padding: 4px 10px 12px 0;
|
503 |
-
float: left;
|
504 |
-
width: 350px;
|
505 |
-
}
|
506 |
-
.option-checbox .input_wrap,
|
507 |
-
.option-radio .input_wrap {
|
508 |
-
padding: 4px 10px 4px 0;
|
509 |
-
width: 325px;
|
510 |
-
}
|
511 |
-
.option-checbox .element {
|
512 |
-
border: none;
|
513 |
-
max-height: 260px;
|
514 |
-
height: auto !important;
|
515 |
-
height: expression( document.body.clientHeight > 260 ? "260px" : "auto" );
|
516 |
-
overflow-y: auto;
|
517 |
-
overflow-x: hidden;
|
518 |
-
}
|
519 |
-
.input_wrap input[type="checkbox"],
|
520 |
-
.input_wrap input[type="radio"] {
|
521 |
-
float: left;
|
522 |
-
width: 20px;
|
523 |
-
margin-top: 3px;
|
524 |
-
vertical-align: bottom;
|
525 |
-
}
|
526 |
-
.input_wrap input[type="radio"] {
|
527 |
-
margin-top: 4px;
|
528 |
-
}
|
529 |
-
.input_wrap label {
|
530 |
-
float: left;
|
531 |
-
width: 325px;
|
532 |
-
}
|
533 |
-
.option-checbox .input_wrap label,
|
534 |
-
.option-radio .input_wrap label {
|
535 |
-
width: 300px;
|
536 |
-
}
|
537 |
-
#framework_wrap #content label input {
|
538 |
-
margin-right: 5px;
|
539 |
-
display: block;
|
540 |
-
float: left;
|
541 |
-
}
|
542 |
-
#framework_wrap #content input[type="text"],
|
543 |
-
#framework_wrap #content select,
|
544 |
-
#framework_wrap #content textarea {
|
545 |
-
background: #fafafa;
|
546 |
-
border-color: #ccc #eee #eee #ccc;
|
547 |
-
border-style: solid;
|
548 |
-
border-width: 1px;
|
549 |
-
font-family: "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
|
550 |
-
font-size: 12px;
|
551 |
-
margin-bottom: 9px !important;
|
552 |
-
padding: 5px;
|
553 |
-
width: 344px;
|
554 |
-
display: block;
|
555 |
-
color: #888;
|
556 |
-
resize: none;
|
557 |
-
}
|
558 |
-
#framework_wrap #content tbody tr.inline-edit-option td input[type="text"],
|
559 |
-
#framework_wrap #content tbody tr.inline-edit-option td select,
|
560 |
-
#framework_wrap #content tbody tr.inline-edit-option td textarea {
|
561 |
-
background: #fff;
|
562 |
-
}
|
563 |
-
#framework_wrap #content input[type="text"].upload {
|
564 |
-
width: 281px;
|
565 |
-
float: left;
|
566 |
-
}
|
567 |
-
#framework_wrap #content input[type="text"].cp_input {
|
568 |
-
width: 312px !important;
|
569 |
-
float: left;
|
570 |
-
}
|
571 |
-
.cp_box {
|
572 |
-
float: right;
|
573 |
-
width: 25px;
|
574 |
-
height: 25px;
|
575 |
-
position: relative;
|
576 |
-
top: 1px;
|
577 |
-
border: 1px solid #ccc;
|
578 |
-
border-color: #ccc #eee #eee #ccc;
|
579 |
-
background: #fafafa;
|
580 |
-
-webkit-border-radius: 4px;
|
581 |
-
-moz-border-radius: 4px;
|
582 |
-
border-radius: 4px;
|
583 |
-
}
|
584 |
-
.cp_box div {
|
585 |
-
width: 13px;
|
586 |
-
height: 13px;
|
587 |
-
border: 1px solid #bbb;
|
588 |
-
border-color: #eee #ccc #ccc #eee;
|
589 |
-
background: #fafafa url(../images/empty.gif);
|
590 |
-
position: absolute;
|
591 |
-
left: 5px;
|
592 |
-
top: 5px;
|
593 |
-
box-shadow: 1px 1px 0px #ccc;
|
594 |
-
-webkit-box-shadow: 1px 1px 0px #ccc;
|
595 |
-
-moz-box-shadow: 1px 1px 0px #ccc;
|
596 |
-
}
|
597 |
-
#framework_wrap #content .element small {
|
598 |
-
float: left;
|
599 |
-
font-size: 9px;
|
600 |
-
line-height: 9px;
|
601 |
-
color: #999;
|
602 |
-
position: relative;
|
603 |
-
top: -5px;
|
604 |
-
left: 2px;
|
605 |
-
}
|
606 |
-
.upload_button,
|
607 |
-
.upload_file_button,
|
608 |
-
.ob_button {
|
609 |
-
float: right;
|
610 |
-
padding: 5px;
|
611 |
-
cursor: pointer;
|
612 |
-
color: #444;
|
613 |
-
text-shadow: 0 1px 0 #fff;
|
614 |
-
background: #f3f3f3 url(../images/btn.png) repeat-x 0 0 !important;
|
615 |
-
border: 1px solid #bbb;
|
616 |
-
position: relative;
|
617 |
-
right: -1px;
|
618 |
-
height: 27px;
|
619 |
-
}
|
620 |
-
#framework_wrap #content select {
|
621 |
-
height: 28px;
|
622 |
-
padding: 4px 5px;
|
623 |
-
}
|
624 |
-
#framework_wrap #content input[type="text"]:focus,
|
625 |
-
#framework_wrap #content select:focus,
|
626 |
-
#framework_wrap #content textarea:focus,
|
627 |
-
#framework_wrap #content input[type="text"]:hover,
|
628 |
-
#framework_wrap #content select:hover,
|
629 |
-
#framework_wrap #content textarea:hover {
|
630 |
-
background: #fff;
|
631 |
-
border-color: #bbb #eee #eee #bbb;
|
632 |
-
color: #333;
|
633 |
-
}
|
634 |
-
#framework_wrap *:focus {
|
635 |
-
outline: none;
|
636 |
-
}
|
637 |
-
#framework_wrap *::-moz-focus-inner {
|
638 |
-
border: none;
|
639 |
-
}
|
640 |
-
.bottom_btn {
|
641 |
-
float: left;
|
642 |
-
width: 100%;
|
643 |
-
padding-top: 15px;
|
644 |
-
}
|
645 |
-
#framework_wrap #content .select_wrapper {
|
646 |
-
-moz-border-radius: 4px;
|
647 |
-
-webkit-border-radius: 4px;
|
648 |
-
border-radius: 4px;
|
649 |
-
font-family: "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
|
650 |
-
font-size: 12px;
|
651 |
-
background: #fafafa url(../images/select.png) no-repeat right center;
|
652 |
-
border-color: #ccc #eee #eee #ccc;
|
653 |
-
border-style: solid;
|
654 |
-
border-width: 1px;
|
655 |
-
float: left;
|
656 |
-
height: 26px;
|
657 |
-
width: 344px;
|
658 |
-
margin: 0;
|
659 |
-
margin-bottom: 9px !important;
|
660 |
-
width: 344px;
|
661 |
-
display: block;
|
662 |
-
color: #888;
|
663 |
-
}
|
664 |
-
#framework_wrap #content .option-type .select_wrapper {
|
665 |
-
background-color: #fff;
|
666 |
-
}
|
667 |
-
#framework_wrap #content .select_wrapper.measurement {
|
668 |
-
width: 65px;
|
669 |
-
float: right;
|
670 |
-
margin-top: 1px;
|
671 |
-
}
|
672 |
-
#framework_wrap #content input.measurement {
|
673 |
-
width: 269px;
|
674 |
-
float: left;
|
675 |
-
padding-top: 6px;
|
676 |
-
}
|
677 |
-
#framework_wrap #content .select_wrapper:hover {
|
678 |
-
background-color: #fff;
|
679 |
-
border-color: #bbb #eee #eee #bbb;
|
680 |
-
color: #333;
|
681 |
-
}
|
682 |
-
#framework_wrap #content select.select {
|
683 |
-
cursor: pointer;
|
684 |
-
height: 28px;
|
685 |
-
margin: 0;
|
686 |
-
-moz-opacity: 0;
|
687 |
-
filter: alpha(opacity: 0);
|
688 |
-
opacity: 0;
|
689 |
-
padding: 0;
|
690 |
-
position: relative;
|
691 |
-
width: inherit;
|
692 |
-
z-index: 4;
|
693 |
-
}
|
694 |
-
#framework_wrap #content .select_wrapper span {
|
695 |
-
height: 26px;
|
696 |
-
line-height: 26px;
|
697 |
-
position: absolute;
|
698 |
-
z-index: 2;
|
699 |
-
padding-left: 6px;
|
700 |
-
}
|
701 |
-
/* Image Slider */
|
702 |
-
.option-tree-slider {
|
703 |
-
background: #eaf3fa;
|
704 |
-
padding: 0px 10px;
|
705 |
-
margin-bottom: 8px;
|
706 |
-
text-shadow: 0 1px 0 #fff;
|
707 |
-
position: relative;
|
708 |
-
/* CSS3 */
|
709 |
-
-webkit-border-radius: 4px;
|
710 |
-
-moz-border-radius: 4px;
|
711 |
-
border-radius: 4px;
|
712 |
-
-moz-box-shadow: 1px 1px 0px #ccc;
|
713 |
-
-webkit-box-shadow: 1px 1px 0px #ccc;
|
714 |
-
box-shadow: 1px 1px 0px #ccc;
|
715 |
-
}
|
716 |
-
.option-tree-slider p {
|
717 |
-
padding-bottom: 5px !important;
|
718 |
-
margin-bottom: 0px !important;
|
719 |
-
}
|
720 |
-
#framework_wrap #content .option-option-tree-slider .section .element input[type="text"],
|
721 |
-
#framework_wrap #content .option-option-tree-slider .section .element textarea {
|
722 |
-
background: #fff;
|
723 |
-
width: 323px;
|
724 |
-
}
|
725 |
-
.option-tree-slider-wrap .edit {
|
726 |
-
position: absolute;
|
727 |
-
height: 16px;
|
728 |
-
width: 16px;
|
729 |
-
display: block;
|
730 |
-
text-indent: -9999px;
|
731 |
-
background: url(../images/icon_edit.png);
|
732 |
-
top: 6px;
|
733 |
-
right: 27px;
|
734 |
-
z-index: 10;
|
735 |
-
}
|
736 |
-
.option-tree-slider-wrap .edit.down {
|
737 |
-
background: url(../images/icon_up.png) !important;
|
738 |
-
}
|
739 |
-
.option-tree-slider-wrap .trash {
|
740 |
-
position: absolute;
|
741 |
-
height: 16px;
|
742 |
-
width: 16px;
|
743 |
-
display: block;
|
744 |
-
text-indent: -9999px;
|
745 |
-
background: url(../images/icon_delete.png);
|
746 |
-
top: 6px;
|
747 |
-
right: 6px;
|
748 |
-
z-index: 10;
|
749 |
-
}
|
750 |
-
.option-tree-slider-wrap .open {
|
751 |
-
padding: 5px 0px;
|
752 |
-
padding-right: 40px;
|
753 |
-
display: block;
|
754 |
-
font-size: 11px;
|
755 |
-
}
|
756 |
-
.option-tree-slider-wrap .option-tree-slider-body {
|
757 |
-
display: ;
|
758 |
-
}
|
759 |
-
/* Docs */
|
760 |
-
#framework_wrap #options_tabs.docs {
|
761 |
-
font-size: 11px !important;
|
762 |
-
color: #555;
|
763 |
-
}
|
764 |
-
#framework_wrap code {
|
765 |
-
font-size: 10px;
|
766 |
-
}
|
767 |
-
#framework_wrap ul.doc_list {
|
768 |
-
font-size: 11px !important;
|
769 |
-
padding-bottom: 20px;
|
770 |
-
}
|
771 |
-
#framework_wrap .doc_list li {
|
772 |
-
padding-bottom: 0px;
|
773 |
-
line-height: 12px;
|
774 |
-
list-style: disc;
|
775 |
-
margin-left: 16px;
|
776 |
-
}
|
777 |
-
#framework_wrap code {
|
778 |
-
background-color: #f1f1f1;
|
779 |
-
color: #000;
|
780 |
-
}
|
781 |
-
#framework_wrap pre {
|
782 |
-
font-size: 13px;
|
783 |
-
padding: 0;
|
784 |
-
margin: 0;
|
785 |
-
line-height: 18px;
|
786 |
-
overflow: auto;
|
787 |
-
overflow-Y: hidden;
|
788 |
-
padding-top: 18px;
|
789 |
-
background: #f1f1f1;
|
790 |
-
border-bottom: 1px solid #f1f1f1;
|
791 |
-
margin-bottom: 20px;
|
792 |
-
color: #000;
|
793 |
-
white-space:pre-wrap;
|
794 |
-
word-wrap:break-word;
|
795 |
-
}
|
796 |
-
#framework_wrap pre code {
|
797 |
-
padding: 0 18px 18px 18px;
|
798 |
-
display: block;
|
799 |
-
background: url(../images/pre_bg.gif) repeat left top; /*--Background of lined paper--*/
|
800 |
-
}
|
801 |
-
/* Tabs */
|
802 |
-
.options_tabs {
|
803 |
-
display: none;
|
804 |
-
}
|
805 |
-
.ui-tabs {
|
806 |
-
zoom: 1;
|
807 |
-
background: url(../images/tabs_bg.png) repeat-y 0 0;
|
808 |
-
}
|
809 |
-
.ui-tabs .options_tabs {
|
810 |
-
display: block;
|
811 |
-
}
|
812 |
-
.ui-tabs-panel .description {
|
813 |
-
width: 225px !important;
|
814 |
-
}
|
815 |
-
.ui-tabs-panel .inline-edit-option .description {
|
816 |
-
width: 200px !important;
|
817 |
-
}
|
818 |
-
.ui-tabs-panel h2 {
|
819 |
-
display: none;
|
820 |
-
}
|
821 |
-
.ui-tabs .ui-tabs-nav {
|
822 |
-
list-style: none;
|
823 |
-
position: relative;
|
824 |
-
float: left;
|
825 |
-
width: 148px;
|
826 |
-
word-wrap: break-word;
|
827 |
-
}
|
828 |
-
.ui-tabs .ui-tabs-nav li {
|
829 |
-
position: relative;
|
830 |
-
float: left;
|
831 |
-
display: block;
|
832 |
-
margin: 0;
|
833 |
-
padding: 0;
|
834 |
-
overflow: visible;
|
835 |
-
}
|
836 |
-
.ui-tabs .ui-tabs-nav li a {
|
837 |
-
float: left;
|
838 |
-
text-decoration: none;
|
839 |
-
display: block;
|
840 |
-
width: 127px;
|
841 |
-
padding: 8px 10px;
|
842 |
-
border-bottom: 1px solid #e3e3e3;
|
843 |
-
color: #21759B;
|
844 |
-
text-shadow: 0 1px 0 #fff;
|
845 |
-
background-image: url(../images/white_px.png);
|
846 |
-
background-repeat: repeat-x;
|
847 |
-
background-position: 0 0;
|
848 |
-
font-size: 11px;
|
849 |
-
}
|
850 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,
|
851 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a:hover {
|
852 |
-
background: #fff;
|
853 |
-
color: #d54e45;
|
854 |
-
width: 128px;
|
855 |
-
}
|
856 |
-
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
857 |
-
.ui-tabs .ui-tabs-nav li.ui-state-processing a {
|
858 |
-
cursor: text;
|
859 |
-
}
|
860 |
-
.ui-tabs .ui-tabs-nav li a,
|
861 |
-
.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
|
862 |
-
cursor: pointer;
|
863 |
-
}
|
864 |
-
.ui-tabs .ui-tabs-nav li.ui-state-hover a {
|
865 |
-
background-color: #eaf2fa;
|
866 |
-
color: #555;
|
867 |
-
}
|
868 |
-
.ui-tabs .ui-tabs-panel {
|
869 |
-
display: block;
|
870 |
-
float: right;
|
871 |
-
width: 595px;
|
872 |
-
min-height: 400px;
|
873 |
-
}
|
874 |
-
.ui-tabs .ui-tabs-hide {
|
875 |
-
display: none !important;
|
876 |
-
}
|
877 |
-
.options_tabs li.ui-tabs-selected span {
|
878 |
-
position: absolute;
|
879 |
-
left: -1px;
|
880 |
-
top: 12px;
|
881 |
-
height: 9px;
|
882 |
-
width: 8px;
|
883 |
-
background: url(../images/icon_arrow.png) no-repeat 0 0;
|
884 |
-
}
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
/* file input */
|
889 |
-
div.file_wrap {
|
890 |
-
position: relative;
|
891 |
-
float: left;
|
892 |
-
width: 345px;
|
893 |
-
}
|
894 |
-
div.fake_file {
|
895 |
-
position: absolute;
|
896 |
-
top: 0px;
|
897 |
-
left: 0px;
|
898 |
-
z-index: 1;
|
899 |
-
}
|
900 |
-
div.fake_file input.upload {
|
901 |
-
margin-right: 3px;
|
902 |
-
width: 279px !important;
|
903 |
-
}
|
904 |
-
input.file {
|
905 |
-
background: none;
|
906 |
-
position: relative;
|
907 |
-
text-align: right;
|
908 |
-
float: right;
|
909 |
-
height: 28px;
|
910 |
-
-moz-opacity: 0;
|
911 |
-
filter: alpha(opacity: 0);
|
912 |
-
opacity: 0;
|
913 |
-
z-index: 2;
|
914 |
-
}
|
915 |
-
|
916 |
-
#register-profile-builder .validateStatus{
|
917 |
-
|
918 |
-
}
|
919 |
-
.wppb-serialnumber-descr{
|
920 |
-
padding-left:100px;
|
921 |
-
}
|
922 |
-
#wppb_profile_builder_pro_serial{
|
923 |
-
width:335px;
|
924 |
-
}
|
925 |
-
|
926 |
-
#framework_wrap #content #customRedirect .afterRegistrationText{
|
927 |
-
position:relative;
|
928 |
-
vertical-align:middle;
|
929 |
-
display:inline-block !important;
|
930 |
-
margin-bottom:0 !important;
|
931 |
-
width: 400px;
|
932 |
-
*display:inline !important;
|
933 |
-
zoom:1;
|
934 |
-
}
|
935 |
-
|
936 |
-
#framework_wrap #content #customRedirect .afterLoginText{
|
937 |
-
position:relative;
|
938 |
-
left:37px;
|
939 |
-
vertical-align:middle;
|
940 |
-
display:inline-block !important;
|
941 |
-
margin-bottom:0 !important;
|
942 |
-
width: 400px;
|
943 |
-
*display:inline !important;
|
944 |
-
zoom:1;
|
945 |
-
}
|
946 |
-
#customRedirect #afterRegisterDescription{
|
947 |
-
vertical-align:middle;
|
948 |
-
}
|
949 |
-
|
950 |
-
#customRedirect #afterLoginDescription{
|
951 |
-
vertical-align:middle;
|
952 |
-
}
|
953 |
-
|
954 |
-
#framework_wrap #content #userListing .sortingOrderSelect{
|
955 |
-
vertical-align:left;
|
956 |
-
display:inline-block !important;
|
957 |
-
margin-bottom:0 !important;
|
958 |
-
width: 110px;
|
959 |
-
*display:inline !important;
|
960 |
-
zoom:1;
|
961 |
-
font-size: 11px;
|
962 |
-
}
|
963 |
-
|
964 |
-
#framework_wrap #content #userListing .sortingOrderCriteria{
|
965 |
-
vertical-align:left;
|
966 |
-
display:inline-block !important;
|
967 |
-
margin-bottom:0 !important;
|
968 |
-
width: 140px;
|
969 |
-
*display:inline !important;
|
970 |
-
zoom:1;
|
971 |
-
font-size: 11px;
|
972 |
-
}
|
973 |
-
|
974 |
-
#framework_wrap #content #userListing .sortingNumberSelect{
|
975 |
-
vertical-align:left;
|
976 |
-
display:inline-block !important;
|
977 |
-
margin-bottom:0 !important;
|
978 |
-
width: 75px;
|
979 |
-
*display:inline !important;
|
980 |
-
zoom:1;
|
981 |
-
font-size: 11px;
|
982 |
-
}
|
983 |
-
|
984 |
-
#userListing #sortingCriteria{
|
985 |
-
vertical-align:middle;
|
986 |
-
}
|
987 |
-
|
988 |
-
#userListing #sortingOrder{
|
989 |
-
vertical-align:middle;
|
990 |
-
}
|
991 |
-
|
992 |
-
#userListing #sortingNumber{
|
993 |
-
vertical-align:middle;
|
994 |
-
}
|
995 |
-
|
996 |
-
#plugin-layout input[type="submit"], #show-hide-admin-bar input[type="submit"], #default-fields input[type="submit"], #register-profile-builder input[type="submit"], #add-ons input[type="submit"], #customRedirect input[type="submit"], #userListing input[type="submit"], #disableLoginAndRegistration input[type="submit"]{
|
997 |
-
position:absolute;
|
998 |
-
bottom:0;
|
999 |
-
right:0;
|
1000 |
-
margin-bottom:-30px;
|
1001 |
-
margin-right:25px;
|
1002 |
-
}
|
1003 |
-
|
1004 |
-
#ui-datepicker-div{
|
1005 |
-
font: 70% "Trebuchet MS", sans-serif;
|
1006 |
-
}
|
1007 |
-
|
1008 |
-
#addonHeader{
|
1009 |
-
width:70%;
|
1010 |
-
}
|
1011 |
-
#framework_wrap #content .wppb_default_style{
|
1012 |
-
position:relative;
|
1013 |
-
left:18px;
|
1014 |
-
vertical-align:middle;
|
1015 |
-
display:inline-block !important;
|
1016 |
-
margin-bottom:0 !important;
|
1017 |
-
width: 100px;
|
1018 |
-
*display:inline !important;
|
1019 |
-
zoom:1;
|
1020 |
-
}
|
1021 |
-
#framework_wrap #content .sortingTable{
|
1022 |
-
border: 0px !important;
|
1023 |
-
}
|
1024 |
-
#framework_wrap #content .sortingTableCell1, .sortingTableCell2{
|
1025 |
-
border: 0px !important;
|
1026 |
-
}
|
1027 |
-
|
1028 |
-
.redirectTableCell1{
|
1029 |
-
width:120px;
|
1030 |
-
}
|
1031 |
-
.sortingTableCell1{
|
1032 |
-
width: 115px;
|
1033 |
-
}
|
1034 |
-
|
1035 |
-
#framework_wrap #content #customRedirect .redirectFirstInput{
|
1036 |
-
vertical-align:left;
|
1037 |
-
display:inline-block !important;
|
1038 |
-
margin-bottom:0 !important;
|
1039 |
-
width: 320px;
|
1040 |
-
*display:inline !important;
|
1041 |
-
zoom:1;
|
1042 |
-
}
|
1043 |
-
#framework_wrap #content #customRedirect .redirectSecondInput{
|
1044 |
-
vertical-align:left;
|
1045 |
-
display:inline-block !important;
|
1046 |
-
margin-bottom:0 !important;
|
1047 |
-
width: 320px;
|
1048 |
-
*display:inline !important;
|
1049 |
-
zoom:1;
|
1050 |
-
}
|
1051 |
-
#framework_wrap #content #customRedirect .redirectThirdInput{
|
1052 |
-
vertical-align:left;
|
1053 |
-
display:inline-block !important;
|
1054 |
-
margin-bottom:0 !important;
|
1055 |
-
width: 320px;
|
1056 |
-
*display:inline !important;
|
1057 |
-
zoom:1;
|
1058 |
-
}
|
1059 |
-
#framework_wrap #content #customRedirect .registerRedirectTarget{
|
1060 |
-
vertical-align:left;
|
1061 |
-
display:inline-block !important;
|
1062 |
-
margin-bottom:0 !important;
|
1063 |
-
width: 320px;
|
1064 |
-
*display:inline !important;
|
1065 |
-
zoom:1;
|
1066 |
-
}
|
1067 |
-
#framework_wrap #content #customRedirect .loginRedirectTarget{
|
1068 |
-
vertical-align:left;
|
1069 |
-
display:inline-block !important;
|
1070 |
-
margin-bottom:0 !important;
|
1071 |
-
width: 320px;
|
1072 |
-
*display:inline !important;
|
1073 |
-
zoom:1;
|
1074 |
-
}
|
1075 |
-
|
1076 |
-
#framework_wrap #content #customRedirect .dashboardRedirectTarget{
|
1077 |
-
vertical-align:left;
|
1078 |
-
display:inline-block !important;
|
1079 |
-
margin-bottom:0 !important;
|
1080 |
-
width: 320px;
|
1081 |
-
*display:inline !important;
|
1082 |
-
zoom:1;
|
1083 |
-
}
|
1084 |
-
|
1085 |
-
#secondColumn, #thirdColumn{
|
1086 |
-
width:25%;
|
1087 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/assets/css/style.css
DELETED
@@ -1,936 +0,0 @@
|
|
1 |
-
/* Profile Builder CSS File*/
|
2 |
-
/*
|
3 |
-
Original Plugin Name: OptionTree
|
4 |
-
Original Plugin URI: http://wp.envato.com
|
5 |
-
Original Author: Derek Herman
|
6 |
-
Original Author URI: http://valendesigns.com
|
7 |
-
*/
|
8 |
-
#wpwrap {
|
9 |
-
min-width: 990px;
|
10 |
-
}
|
11 |
-
strong {
|
12 |
-
color: #000;
|
13 |
-
}
|
14 |
-
.clear {
|
15 |
-
clear: both;
|
16 |
-
}
|
17 |
-
.hide,
|
18 |
-
#contextual-help-link-wrap {
|
19 |
-
display: none;
|
20 |
-
}
|
21 |
-
.left {
|
22 |
-
float: left !important;
|
23 |
-
}
|
24 |
-
.right {
|
25 |
-
float: right !important;
|
26 |
-
}
|
27 |
-
p {
|
28 |
-
padding-bottom: 14px;
|
29 |
-
}
|
30 |
-
a {
|
31 |
-
text-decoration: none;
|
32 |
-
}
|
33 |
-
a strong {
|
34 |
-
color: #21759B !important;
|
35 |
-
}
|
36 |
-
a:hover strong {
|
37 |
-
color: #d54e21 !important;
|
38 |
-
}
|
39 |
-
#framework_wrap .error {
|
40 |
-
display: none !important;
|
41 |
-
}
|
42 |
-
#framework_wrap {
|
43 |
-
position: relative;
|
44 |
-
width: 788px;
|
45 |
-
margin: 15px;
|
46 |
-
}
|
47 |
-
#framework_wrap #header {
|
48 |
-
-webkit-border-top-left-radius: 8px;
|
49 |
-
-webkit-border-top-right-radius: 8px;
|
50 |
-
-moz-border-radius-topleft: 8px;
|
51 |
-
-moz-border-radius-topright: 8px;
|
52 |
-
border-top-left-radius: 8px;
|
53 |
-
border-top-right-radius: 8px;
|
54 |
-
background: #6d6d6d url(../images/header.png) repeat-x left top;
|
55 |
-
border: 1px solid #555;
|
56 |
-
height: 71px;
|
57 |
-
width: 785px;
|
58 |
-
position: relative;
|
59 |
-
}
|
60 |
-
#framework_wrap #header h1 {
|
61 |
-
width: 225px;
|
62 |
-
height: 50px;
|
63 |
-
background: url(../images/logo_free.png) no-repeat 0 0;
|
64 |
-
text-indent: -9999px;
|
65 |
-
margin: 10px 0 0 20px;
|
66 |
-
}
|
67 |
-
|
68 |
-
#framework_wrap #header span.icon {
|
69 |
-
position: absolute;
|
70 |
-
display: block;
|
71 |
-
right: 20px;
|
72 |
-
top: 18px;
|
73 |
-
height: 32px;
|
74 |
-
width: 32px;
|
75 |
-
text-indent: -9999px;
|
76 |
-
/*background: url(../images/icon_option.png) no-repeat left center;*/
|
77 |
-
}
|
78 |
-
#framework_wrap #header div.version {
|
79 |
-
text-align: left;
|
80 |
-
position: absolute;
|
81 |
-
left: 85px;
|
82 |
-
top: 50px;
|
83 |
-
font-size: 9px !important;
|
84 |
-
line-height: 10px;
|
85 |
-
color: #111;
|
86 |
-
font-style: normal;
|
87 |
-
font-family: Verdana,Arial,sans-serif;
|
88 |
-
text-transform: uppercase;
|
89 |
-
font-weight: normal;
|
90 |
-
text-shadow: 0 1px 0 #888;
|
91 |
-
letter-spacing: -0.05em;
|
92 |
-
}
|
93 |
-
#framework_wrap #content_wrap {
|
94 |
-
border: 1px solid #aaa;
|
95 |
-
border-top: none;
|
96 |
-
background: #fff;
|
97 |
-
width: 785px;
|
98 |
-
position: relative;
|
99 |
-
}
|
100 |
-
#framework_wrap #content_wrap .info {
|
101 |
-
background: #eaf2fa;
|
102 |
-
background: #f9f9f9;
|
103 |
-
height: 35px;
|
104 |
-
border-top: 1px solid #fff;
|
105 |
-
border-bottom: 1px solid #e3e3e3;
|
106 |
-
}
|
107 |
-
a.toggle_tabs {
|
108 |
-
cursor: pointer;
|
109 |
-
background: url(../images/toggle_tabs.png) no-repeat -2px -1px;
|
110 |
-
display: block;
|
111 |
-
height: 22px;
|
112 |
-
width: 21px;
|
113 |
-
float: left;
|
114 |
-
text-indent: -9999px;
|
115 |
-
margin: 5px 5px 0 19px;
|
116 |
-
border: 1px solid #bbb;
|
117 |
-
-webkit-border-radius: 4px;
|
118 |
-
-moz-border-radius: 4px;
|
119 |
-
border-radius: 4px;
|
120 |
-
}
|
121 |
-
.no-tabs a.toggle_tabs {
|
122 |
-
display: none;
|
123 |
-
}
|
124 |
-
a:hover.toggle_tabs {
|
125 |
-
border-color: #666;
|
126 |
-
}
|
127 |
-
a.off {
|
128 |
-
background-position: -2px -26px;
|
129 |
-
}
|
130 |
-
#framework_wrap #content_wrap .bottom {
|
131 |
-
border-top: 1px solid #fff !important;
|
132 |
-
border-bottom: none !important;
|
133 |
-
|
134 |
-
background: #f1f1f1;
|
135 |
-
}
|
136 |
-
#framework_wrap #content_wrap .info input.button-framework {
|
137 |
-
float: right;
|
138 |
-
margin: 5px 20px 0 0;
|
139 |
-
padding: 4px 10px;
|
140 |
-
font-size: 11px;
|
141 |
-
height: 24px;
|
142 |
-
}
|
143 |
-
#framework_wrap #content_wrap .info input.add-item {
|
144 |
-
float: left;
|
145 |
-
margin-left: 20px;
|
146 |
-
}
|
147 |
-
#framework_wrap #content_wrap .info input.reset {
|
148 |
-
margin-left: 20px;
|
149 |
-
color: #d54e45;
|
150 |
-
float: left;
|
151 |
-
}
|
152 |
-
#framework_wrap #content_wrap a.reset {
|
153 |
-
margin-right: 10px;
|
154 |
-
color: #d54e45;
|
155 |
-
}
|
156 |
-
.ajax-message {
|
157 |
-
position: absolute;
|
158 |
-
left: 300px;
|
159 |
-
top: 100px;
|
160 |
-
width: 200px;
|
161 |
-
z-index: 100;
|
162 |
-
display: none;
|
163 |
-
overflow: visible;
|
164 |
-
}
|
165 |
-
#framework_wrap #content_wrap .message {
|
166 |
-
text-align: center;
|
167 |
-
color: #444;
|
168 |
-
text-shadow: 0 1px 0 #fff;
|
169 |
-
font-size: 12px;
|
170 |
-
line-height: 16px;
|
171 |
-
padding: 20px 10px;
|
172 |
-
background: #f3f3f3;
|
173 |
-
border: 1px solid #bbb;
|
174 |
-
-webkit-border-radius: 5px;
|
175 |
-
-moz-border-radius: 5px;
|
176 |
-
border-radius: 5px;
|
177 |
-
-moz-box-shadow: 0px 2px 5px #eee;
|
178 |
-
-webkit-box-shadow: 0px 2px 5px #eee;
|
179 |
-
box-shadow: 0px 2px 5px #eee;
|
180 |
-
}
|
181 |
-
#framework_wrap #content_wrap .message span {
|
182 |
-
display: block;
|
183 |
-
height: 16px;
|
184 |
-
width: 16px;
|
185 |
-
position: absolute;
|
186 |
-
left: -8px;
|
187 |
-
top: -8px;
|
188 |
-
background: url(../images/icon_add.png) no-repeat 0 0;
|
189 |
-
}
|
190 |
-
#framework_wrap #content_wrap .message.warning span {
|
191 |
-
background-image: url(../images/icon_error.png);
|
192 |
-
}
|
193 |
-
/* Primary Form Button */
|
194 |
-
#framework_wrap input.button-framework {
|
195 |
-
cursor: pointer;
|
196 |
-
font-size: 12px;
|
197 |
-
color: #444;
|
198 |
-
text-shadow: 0 1px 0 #fff;
|
199 |
-
background: #f3f3f3 url(../images/btn.png) repeat-x 0 0;
|
200 |
-
border: 1px solid #bbb;
|
201 |
-
padding: 5px 10px;
|
202 |
-
}
|
203 |
-
#framework_wrap input:hover.button-framework {
|
204 |
-
color: #000;
|
205 |
-
border-color: #666;
|
206 |
-
}
|
207 |
-
#framework_wrap a.button-framework {
|
208 |
-
cursor: pointer;
|
209 |
-
font-size: 12px;
|
210 |
-
color: #444;
|
211 |
-
text-shadow: 0 1px 0 #fff;
|
212 |
-
background: #f3f3f3 url(../images/btn.png) repeat-x 0 0;
|
213 |
-
border: 1px solid #bbb;
|
214 |
-
padding: 3px 10px 3px 10px;
|
215 |
-
-webkit-border-radius: 4px;
|
216 |
-
-moz-border-radius: 4px;
|
217 |
-
border-radius: 4px;
|
218 |
-
text-decoration: none;
|
219 |
-
float: left;
|
220 |
-
position: relative;
|
221 |
-
left: 1px;
|
222 |
-
}
|
223 |
-
#framework_wrap div.inline-edit-save a.button-framework {
|
224 |
-
padding: 2px 10px 2px 10px;
|
225 |
-
font-size: 11px;
|
226 |
-
}
|
227 |
-
#framework_wrap a:hover.button-framework {
|
228 |
-
color: #000;
|
229 |
-
border-color: #666;
|
230 |
-
}
|
231 |
-
|
232 |
-
#framework_wrap a.button-framework.light {
|
233 |
-
border: 1px solid #dfdfdf;
|
234 |
-
color: #464646;
|
235 |
-
}
|
236 |
-
#framework_wrap a:hover.button-framework.light {
|
237 |
-
color: #000;
|
238 |
-
border-color: #adaca7;
|
239 |
-
}
|
240 |
-
|
241 |
-
/* Ads in free version */
|
242 |
-
#framework_wrap #content_wrap .basic-version-info {
|
243 |
-
height:113px;
|
244 |
-
background:#fffbcc;
|
245 |
-
}
|
246 |
-
#framework_wrap #content_wrap .basic-version-info form{
|
247 |
-
float:right;
|
248 |
-
margin-right:13px;
|
249 |
-
margin-top:30px;
|
250 |
-
}
|
251 |
-
#framework_wrap #content_wrap .basic-version-info a{
|
252 |
-
position:absolute;
|
253 |
-
width:140px;
|
254 |
-
top:80px;
|
255 |
-
margin-left:60px;
|
256 |
-
|
257 |
-
}
|
258 |
-
|
259 |
-
/* Content Inner */
|
260 |
-
#framework_wrap #content {
|
261 |
-
padding: 0;
|
262 |
-
width: 785px;
|
263 |
-
border-bottom: 1px solid #e3e3e3;
|
264 |
-
position: relative;
|
265 |
-
}
|
266 |
-
.screenshot {
|
267 |
-
float: right;
|
268 |
-
margin-left: 1px;
|
269 |
-
position: relative;
|
270 |
-
width: 344px;
|
271 |
-
}
|
272 |
-
.screenshot img {
|
273 |
-
max-width: 334px;
|
274 |
-
padding: 4px;
|
275 |
-
border: 1px solid #ccc;
|
276 |
-
background: #fafafa;
|
277 |
-
border-color: #ccc #eee #eee #ccc;
|
278 |
-
-webkit-border-radius: 4px;
|
279 |
-
-moz-border-radius: 4px;
|
280 |
-
border-radius: 4px;
|
281 |
-
float: right;
|
282 |
-
}
|
283 |
-
.screenshot a {
|
284 |
-
text-decoration: none;
|
285 |
-
padding-left: 20px;
|
286 |
-
}
|
287 |
-
.screenshot a.remove {
|
288 |
-
background: url(../images/icon_delete.png) no-repeat 0 0;
|
289 |
-
display: block;
|
290 |
-
height: 16px;
|
291 |
-
width: 16px;
|
292 |
-
position: absolute;
|
293 |
-
bottom: -4px;
|
294 |
-
right: -4px;
|
295 |
-
text-indent: -9999px;
|
296 |
-
float: left;
|
297 |
-
padding: 0;
|
298 |
-
border: none;
|
299 |
-
}
|
300 |
-
.screenshot .no_image a.remove {
|
301 |
-
left: 0;
|
302 |
-
top: 2px;
|
303 |
-
}
|
304 |
-
.option-upload .element {
|
305 |
-
padding-bottom: 5px;
|
306 |
-
}
|
307 |
-
#framework_wrap #content h2 {
|
308 |
-
margin-bottom: 10px;
|
309 |
-
border-bottom: 1px solid #e5e5e5;
|
310 |
-
}
|
311 |
-
#framework_wrap #content h3 {
|
312 |
-
border-bottom: 1px solid #eee;
|
313 |
-
margin: 0 0 15px 0;
|
314 |
-
padding-bottom: 10px;
|
315 |
-
clear: both;
|
316 |
-
font-size: 14px;
|
317 |
-
}
|
318 |
-
h3.text-title {
|
319 |
-
font: italic 20px/30px Georgia,"Times New Roman","Bitstream Charter",Times,serif !important;
|
320 |
-
}
|
321 |
-
#framework_wrap #content tbody tr.inline-edit-option td h3 {
|
322 |
-
border-bottom-color: #ddd;
|
323 |
-
}
|
324 |
-
#framework_wrap #content .block {
|
325 |
-
display: block;
|
326 |
-
overflow: hidden;
|
327 |
-
padding: 20px;
|
328 |
-
}
|
329 |
-
#framework_wrap #content p {
|
330 |
-
font-size: 11px;
|
331 |
-
color: #555;
|
332 |
-
padding-bottom: 20px;
|
333 |
-
margin: 0;
|
334 |
-
}
|
335 |
-
#framework_wrap #content table {
|
336 |
-
border: 1px solid #dfdfdf;
|
337 |
-
width: 100%;
|
338 |
-
text-align: left;
|
339 |
-
border-spacing: 0;
|
340 |
-
border-style: solid;
|
341 |
-
border-width: 1px;
|
342 |
-
font-size: 11px !important;
|
343 |
-
text-shadow: 0 1px 0 #fff;
|
344 |
-
-webkit-border-radius: 4px;
|
345 |
-
-moz-border-radius: 4px;
|
346 |
-
border-radius: 4px;
|
347 |
-
}
|
348 |
-
#framework_wrap #content2 table {
|
349 |
-
border: 0px solid #dfdfdf;
|
350 |
-
width: 100%;
|
351 |
-
text-align: left;
|
352 |
-
border-spacing: 0;
|
353 |
-
border-style: solid;
|
354 |
-
border-width: 1px;
|
355 |
-
font-size: 11px !important;
|
356 |
-
text-shadow: 0 1px 0 #fff;
|
357 |
-
-webkit-border-radius: 4px;
|
358 |
-
-moz-border-radius: 4px;
|
359 |
-
border-radius: 4px;
|
360 |
-
}
|
361 |
-
|
362 |
-
#framework_wrap #content .has-table table th {
|
363 |
-
background: #f1f1f1;
|
364 |
-
background-image: -moz-linear-gradient(top, #f9f9f9, #f1f1f1);
|
365 |
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f1f1f1));
|
366 |
-
}
|
367 |
-
tbody tr:hover {
|
368 |
-
cursor: pointer;
|
369 |
-
}
|
370 |
-
tbody tr.inline-edit-option {
|
371 |
-
}
|
372 |
-
tbody tr.inline-edit-option td {
|
373 |
-
background: #f1f1f1;
|
374 |
-
border-top: 1px solid #fff;
|
375 |
-
border-left: 1px solid #fff;
|
376 |
-
border-right: 1px solid #fff;
|
377 |
-
}
|
378 |
-
tbody tr:hover.inline-edit-option {
|
379 |
-
cursor: default;
|
380 |
-
}
|
381 |
-
#framework_wrap #content .has-table table #framework-settings .dragging {
|
382 |
-
background: #666 url(../images/black_px.png) repeat-x 0 0;
|
383 |
-
color: #fff;
|
384 |
-
text-shadow: 0 1px 0 #000;
|
385 |
-
}
|
386 |
-
#framework_wrap #content .has-table table #framework-settings .dragging td {
|
387 |
-
border-color: #000;
|
388 |
-
}
|
389 |
-
#framework_wrap #content .has-table table #framework-settings .dragging .col-edit {
|
390 |
-
background: url(../images/icon_up_down.png) no-repeat 63px center;
|
391 |
-
}
|
392 |
-
#framework_wrap #content .has-table table #framework-settings .dragging a.edit-inline,
|
393 |
-
#framework_wrap #content .has-table table #framework-settings .dragging a.delete-inline {
|
394 |
-
display: none;
|
395 |
-
}
|
396 |
-
.col-title {
|
397 |
-
padding-left: 10px !important;
|
398 |
-
width: 200px;
|
399 |
-
}
|
400 |
-
.col-type {
|
401 |
-
width: 60px;
|
402 |
-
}
|
403 |
-
.col-edit {
|
404 |
-
width: 45px;
|
405 |
-
padding-left: 40px !important;
|
406 |
-
padding-right: 0px !important;
|
407 |
-
}
|
408 |
-
.has-table table tr:first-child {
|
409 |
-
cursor: default;
|
410 |
-
}
|
411 |
-
.has-table table .col-heading {
|
412 |
-
background: #eaf3fa;
|
413 |
-
}
|
414 |
-
.has-table table .col-heading td:first-child {
|
415 |
-
font-weight: bold;
|
416 |
-
background: transparent url(../images/icon_header.png) no-repeat 10px 11px;
|
417 |
-
padding-left: 30px !important;
|
418 |
-
}
|
419 |
-
.has-table table thead th,
|
420 |
-
.has-table table td {
|
421 |
-
border-bottom: 1px solid #dfdfdf;
|
422 |
-
}
|
423 |
-
.has-table table tr,
|
424 |
-
.has-table table td,
|
425 |
-
.has-table table th {
|
426 |
-
padding: 10px 10px;
|
427 |
-
font-size: 11px !important;
|
428 |
-
}
|
429 |
-
.has-table table th {
|
430 |
-
padding: 6px 10px;
|
431 |
-
font-size: 11px !important;
|
432 |
-
}
|
433 |
-
.has-table table a {
|
434 |
-
text-decoration: none;
|
435 |
-
}
|
436 |
-
/* Inline Edit */
|
437 |
-
.inline-edit-option {
|
438 |
-
display: none;
|
439 |
-
}
|
440 |
-
a.edit-inline,
|
441 |
-
a.delete-inline,
|
442 |
-
a.add-option {
|
443 |
-
background: url(../images/icon_edit.png) no-repeat 0 0;
|
444 |
-
display: block;
|
445 |
-
height: 16px;
|
446 |
-
width: 16px;
|
447 |
-
text-indent: -9999px;
|
448 |
-
float: left;
|
449 |
-
margin-right: 5px;
|
450 |
-
display: block;
|
451 |
-
}
|
452 |
-
a.delete-inline {
|
453 |
-
background-image: url(../images/icon_delete.png);
|
454 |
-
}
|
455 |
-
a.add-option {
|
456 |
-
background-image: url(../images/icon_add.png);
|
457 |
-
margin-left: 21px;
|
458 |
-
}
|
459 |
-
a:hover.edit-inline {
|
460 |
-
border-color: #666;
|
461 |
-
}
|
462 |
-
a:hover.delete-inline {
|
463 |
-
border-color: #d54e45;
|
464 |
-
}
|
465 |
-
#framework_wrap #content .option {
|
466 |
-
padding-bottom: 15px;
|
467 |
-
}
|
468 |
-
#framework_wrap #content .option .section {
|
469 |
-
overflow: hidden;
|
470 |
-
font-size: 11px;
|
471 |
-
}
|
472 |
-
#framework_wrap #content .option .section .element {
|
473 |
-
float: left;
|
474 |
-
margin: 0 15px 0 0;
|
475 |
-
width: 345px;
|
476 |
-
}
|
477 |
-
#framework_wrap #content .option-checkbox .section .element {
|
478 |
-
width: 25px;
|
479 |
-
}
|
480 |
-
#framework_wrap #content .option .section .description {
|
481 |
-
color: #555;
|
482 |
-
float: left;
|
483 |
-
font-size: 11px;
|
484 |
-
padding: 2px 10px 0 0;
|
485 |
-
width: 370px;
|
486 |
-
}
|
487 |
-
div.desc-text p {
|
488 |
-
color: #555;
|
489 |
-
font-size: 11px !important;
|
490 |
-
}
|
491 |
-
#framework_wrap #content .inline-edit-option .option .section .description {
|
492 |
-
width: 325px;
|
493 |
-
padding-top: 0px;
|
494 |
-
}
|
495 |
-
#framework_wrap #content .option-checkbox .section .description {
|
496 |
-
width: 540px;
|
497 |
-
}
|
498 |
-
#framework_wrap #content label {
|
499 |
-
|
500 |
-
}
|
501 |
-
.input_wrap {
|
502 |
-
padding: 4px 10px 12px 0;
|
503 |
-
float: left;
|
504 |
-
width: 350px;
|
505 |
-
}
|
506 |
-
.option-checbox .input_wrap,
|
507 |
-
.option-radio .input_wrap {
|
508 |
-
padding: 4px 10px 4px 0;
|
509 |
-
width: 325px;
|
510 |
-
}
|
511 |
-
.option-checbox .element {
|
512 |
-
border: none;
|
513 |
-
max-height: 260px;
|
514 |
-
height: auto !important;
|
515 |
-
height: expression( document.body.clientHeight > 260 ? "260px" : "auto" );
|
516 |
-
overflow-y: auto;
|
517 |
-
overflow-x: hidden;
|
518 |
-
}
|
519 |
-
.input_wrap input[type="checkbox"],
|
520 |
-
.input_wrap input[type="radio"] {
|
521 |
-
float: left;
|
522 |
-
width: 20px;
|
523 |
-
margin-top: 3px;
|
524 |
-
vertical-align: bottom;
|
525 |
-
}
|
526 |
-
.input_wrap input[type="radio"] {
|
527 |
-
margin-top: 4px;
|
528 |
-
}
|
529 |
-
.input_wrap label {
|
530 |
-
float: left;
|
531 |
-
width: 325px;
|
532 |
-
}
|
533 |
-
.option-checbox .input_wrap label,
|
534 |
-
.option-radio .input_wrap label {
|
535 |
-
width: 300px;
|
536 |
-
}
|
537 |
-
#framework_wrap #content label input {
|
538 |
-
margin-right: 5px;
|
539 |
-
display: block;
|
540 |
-
float: left;
|
541 |
-
}
|
542 |
-
#framework_wrap #content input[type="text"],
|
543 |
-
#framework_wrap #content select,
|
544 |
-
#framework_wrap #content textarea {
|
545 |
-
background: #fafafa;
|
546 |
-
border-color: #ccc #eee #eee #ccc;
|
547 |
-
border-style: solid;
|
548 |
-
border-width: 1px;
|
549 |
-
font-family: "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
|
550 |
-
font-size: 12px;
|
551 |
-
margin-bottom: 9px !important;
|
552 |
-
padding: 5px;
|
553 |
-
width: 344px;
|
554 |
-
display: block;
|
555 |
-
color: #888;
|
556 |
-
resize: none;
|
557 |
-
}
|
558 |
-
#framework_wrap #content tbody tr.inline-edit-option td input[type="text"],
|
559 |
-
#framework_wrap #content tbody tr.inline-edit-option td select,
|
560 |
-
#framework_wrap #content tbody tr.inline-edit-option td textarea {
|
561 |
-
background: #fff;
|
562 |
-
}
|
563 |
-
#framework_wrap #content input[type="text"].upload {
|
564 |
-
width: 281px;
|
565 |
-
float: left;
|
566 |
-
}
|
567 |
-
#framework_wrap #content input[type="text"].cp_input {
|
568 |
-
width: 312px !important;
|
569 |
-
float: left;
|
570 |
-
}
|
571 |
-
.cp_box {
|
572 |
-
float: right;
|
573 |
-
width: 25px;
|
574 |
-
height: 25px;
|
575 |
-
position: relative;
|
576 |
-
top: 1px;
|
577 |
-
border: 1px solid #ccc;
|
578 |
-
border-color: #ccc #eee #eee #ccc;
|
579 |
-
background: #fafafa;
|
580 |
-
-webkit-border-radius: 4px;
|
581 |
-
-moz-border-radius: 4px;
|
582 |
-
border-radius: 4px;
|
583 |
-
}
|
584 |
-
.cp_box div {
|
585 |
-
width: 13px;
|
586 |
-
height: 13px;
|
587 |
-
border: 1px solid #bbb;
|
588 |
-
border-color: #eee #ccc #ccc #eee;
|
589 |
-
background: #fafafa url(../images/empty.gif);
|
590 |
-
position: absolute;
|
591 |
-
left: 5px;
|
592 |
-
top: 5px;
|
593 |
-
box-shadow: 1px 1px 0px #ccc;
|
594 |
-
-webkit-box-shadow: 1px 1px 0px #ccc;
|
595 |
-
-moz-box-shadow: 1px 1px 0px #ccc;
|
596 |
-
}
|
597 |
-
#framework_wrap #content .element small {
|
598 |
-
float: left;
|
599 |
-
font-size: 9px;
|
600 |
-
line-height: 9px;
|
601 |
-
color: #999;
|
602 |
-
position: relative;
|
603 |
-
top: -5px;
|
604 |
-
left: 2px;
|
605 |
-
}
|
606 |
-
.upload_button,
|
607 |
-
.upload_file_button,
|
608 |
-
.ob_button {
|
609 |
-
float: right;
|
610 |
-
padding: 5px;
|
611 |
-
cursor: pointer;
|
612 |
-
color: #444;
|
613 |
-
text-shadow: 0 1px 0 #fff;
|
614 |
-
background: #f3f3f3 url(../images/btn.png) repeat-x 0 0 !important;
|
615 |
-
border: 1px solid #bbb;
|
616 |
-
position: relative;
|
617 |
-
right: -1px;
|
618 |
-
height: 27px;
|
619 |
-
}
|
620 |
-
#framework_wrap #content select {
|
621 |
-
height: 28px;
|
622 |
-
padding: 4px 5px;
|
623 |
-
}
|
624 |
-
#framework_wrap #content input[type="text"]:focus,
|
625 |
-
#framework_wrap #content select:focus,
|
626 |
-
#framework_wrap #content textarea:focus,
|
627 |
-
#framework_wrap #content input[type="text"]:hover,
|
628 |
-
#framework_wrap #content select:hover,
|
629 |
-
#framework_wrap #content textarea:hover {
|
630 |
-
background: #fff;
|
631 |
-
border-color: #bbb #eee #eee #bbb;
|
632 |
-
color: #333;
|
633 |
-
}
|
634 |
-
#framework_wrap *:focus {
|
635 |
-
outline: none;
|
636 |
-
}
|
637 |
-
#framework_wrap *::-moz-focus-inner {
|
638 |
-
border: none;
|
639 |
-
}
|
640 |
-
.bottom_btn {
|
641 |
-
float: left;
|
642 |
-
width: 100%;
|
643 |
-
padding-top: 15px;
|
644 |
-
}
|
645 |
-
#framework_wrap #content .select_wrapper {
|
646 |
-
-moz-border-radius: 4px;
|
647 |
-
-webkit-border-radius: 4px;
|
648 |
-
border-radius: 4px;
|
649 |
-
font-family: "Lucida Grande","Lucida Sans Unicode",Arial,Verdana,sans-serif;
|
650 |
-
font-size: 12px;
|
651 |
-
background: #fafafa url(../images/select.png) no-repeat right center;
|
652 |
-
border-color: #ccc #eee #eee #ccc;
|
653 |
-
border-style: solid;
|
654 |
-
border-width: 1px;
|
655 |
-
float: left;
|
656 |
-
height: 26px;
|
657 |
-
width: 344px;
|
658 |
-
margin: 0;
|
659 |
-
margin-bottom: 9px !important;
|
660 |
-
width: 344px;
|
661 |
-
display: block;
|
662 |
-
color: #888;
|
663 |
-
}
|
664 |
-
#framework_wrap #content .option-type .select_wrapper {
|
665 |
-
background-color: #fff;
|
666 |
-
}
|
667 |
-
#framework_wrap #content .select_wrapper.measurement {
|
668 |
-
width: 65px;
|
669 |
-
float: right;
|
670 |
-
margin-top: 1px;
|
671 |
-
}
|
672 |
-
#framework_wrap #content input.measurement {
|
673 |
-
width: 269px;
|
674 |
-
float: left;
|
675 |
-
padding-top: 6px;
|
676 |
-
}
|
677 |
-
#framework_wrap #content .select_wrapper:hover {
|
678 |
-
background-color: #fff;
|
679 |
-
border-color: #bbb #eee #eee #bbb;
|
680 |
-
color: #333;
|
681 |
-
}
|
682 |
-
#framework_wrap #content select.select {
|
683 |
-
cursor: pointer;
|
684 |
-
height: 28px;
|
685 |
-
margin: 0;
|
686 |
-
-moz-opacity: 0;
|
687 |
-
filter: alpha(opacity: 0);
|
688 |
-
opacity: 0;
|
689 |
-
padding: 0;
|
690 |
-
position: relative;
|
691 |
-
width: inherit;
|
692 |
-
z-index: 4;
|
693 |
-
}
|
694 |
-
#framework_wrap #content .select_wrapper span {
|
695 |
-
height: 26px;
|
696 |
-
line-height: 26px;
|
697 |
-
position: absolute;
|
698 |
-
z-index: 2;
|
699 |
-
padding-left: 6px;
|
700 |
-
}
|
701 |
-
/* Image Slider */
|
702 |
-
.option-tree-slider {
|
703 |
-
background: #eaf3fa;
|
704 |
-
padding: 0px 10px;
|
705 |
-
margin-bottom: 8px;
|
706 |
-
text-shadow: 0 1px 0 #fff;
|
707 |
-
position: relative;
|
708 |
-
/* CSS3 */
|
709 |
-
-webkit-border-radius: 4px;
|
710 |
-
-moz-border-radius: 4px;
|
711 |
-
border-radius: 4px;
|
712 |
-
-moz-box-shadow: 1px 1px 0px #ccc;
|
713 |
-
-webkit-box-shadow: 1px 1px 0px #ccc;
|
714 |
-
box-shadow: 1px 1px 0px #ccc;
|
715 |
-
}
|
716 |
-
.option-tree-slider p {
|
717 |
-
padding-bottom: 5px !important;
|
718 |
-
margin-bottom: 0px !important;
|
719 |
-
}
|
720 |
-
#framework_wrap #content .option-option-tree-slider .section .element input[type="text"],
|
721 |
-
#framework_wrap #content .option-option-tree-slider .section .element textarea {
|
722 |
-
background: #fff;
|
723 |
-
width: 323px;
|
724 |
-
}
|
725 |
-
.option-tree-slider-wrap .edit {
|
726 |
-
position: absolute;
|
727 |
-
height: 16px;
|
728 |
-
width: 16px;
|
729 |
-
display: block;
|
730 |
-
text-indent: -9999px;
|
731 |
-
background: url(../images/icon_edit.png);
|
732 |
-
top: 6px;
|
733 |
-
right: 27px;
|
734 |
-
z-index: 10;
|
735 |
-
}
|
736 |
-
.option-tree-slider-wrap .edit.down {
|
737 |
-
background: url(../images/icon_up.png) !important;
|
738 |
-
}
|
739 |
-
.option-tree-slider-wrap .trash {
|
740 |
-
position: absolute;
|
741 |
-
height: 16px;
|
742 |
-
width: 16px;
|
743 |
-
display: block;
|
744 |
-
text-indent: -9999px;
|
745 |
-
background: url(../images/icon_delete.png);
|
746 |
-
top: 6px;
|
747 |
-
right: 6px;
|
748 |
-
z-index: 10;
|
749 |
-
}
|
750 |
-
.option-tree-slider-wrap .open {
|
751 |
-
padding: 5px 0px;
|
752 |
-
padding-right: 40px;
|
753 |
-
display: block;
|
754 |
-
font-size: 11px;
|
755 |
-
}
|
756 |
-
.option-tree-slider-wrap .option-tree-slider-body {
|
757 |
-
display: ;
|
758 |
-
}
|
759 |
-
/* Docs */
|
760 |
-
#framework_wrap #options_tabs.docs {
|
761 |
-
font-size: 11px !important;
|
762 |
-
color: #555;
|
763 |
-
}
|
764 |
-
#framework_wrap code {
|
765 |
-
font-size: 10px;
|
766 |
-
}
|
767 |
-
#framework_wrap ul.doc_list {
|
768 |
-
font-size: 11px !important;
|
769 |
-
padding-bottom: 20px;
|
770 |
-
}
|
771 |
-
#framework_wrap .doc_list li {
|
772 |
-
padding-bottom: 0px;
|
773 |
-
line-height: 12px;
|
774 |
-
list-style: disc;
|
775 |
-
margin-left: 16px;
|
776 |
-
}
|
777 |
-
#framework_wrap code {
|
778 |
-
background-color: #f1f1f1;
|
779 |
-
color: #000;
|
780 |
-
}
|
781 |
-
#framework_wrap pre {
|
782 |
-
font-size: 13px;
|
783 |
-
padding: 0;
|
784 |
-
margin: 0;
|
785 |
-
line-height: 18px;
|
786 |
-
overflow: auto;
|
787 |
-
overflow-Y: hidden;
|
788 |
-
padding-top: 18px;
|
789 |
-
background: #f1f1f1;
|
790 |
-
border-bottom: 1px solid #f1f1f1;
|
791 |
-
margin-bottom: 20px;
|
792 |
-
color: #000;
|
793 |
-
white-space:pre-wrap;
|
794 |
-
word-wrap:break-word;
|
795 |
-
}
|
796 |
-
#framework_wrap pre code {
|
797 |
-
padding: 0 18px 18px 18px;
|
798 |
-
display: block;
|
799 |
-
background: url(../images/pre_bg.gif) repeat left top; /*--Background of lined paper--*/
|
800 |
-
}
|
801 |
-
/* Tabs */
|
802 |
-
.options_tabs {
|
803 |
-
display: none;
|
804 |
-
}
|
805 |
-
.ui-tabs {
|
806 |
-
zoom: 1;
|
807 |
-
background: url(../images/tabs_bg.png) repeat-y 0 0;
|
808 |
-
}
|
809 |
-
.ui-tabs .options_tabs {
|
810 |
-
display: block;
|
811 |
-
}
|
812 |
-
.ui-tabs-panel .description {
|
813 |
-
width: 225px !important;
|
814 |
-
}
|
815 |
-
.ui-tabs-panel .inline-edit-option .description {
|
816 |
-
width: 200px !important;
|
817 |
-
}
|
818 |
-
.ui-tabs-panel h2 {
|
819 |
-
display: none;
|
820 |
-
}
|
821 |
-
.ui-tabs .ui-tabs-nav {
|
822 |
-
list-style: none;
|
823 |
-
position: relative;
|
824 |
-
float: left;
|
825 |
-
width: 148px;
|
826 |
-
word-wrap: break-word;
|
827 |
-
}
|
828 |
-
.ui-tabs .ui-tabs-nav li {
|
829 |
-
position: relative;
|
830 |
-
float: left;
|
831 |
-
display: block;
|
832 |
-
margin: 0;
|
833 |
-
padding: 0;
|
834 |
-
overflow: visible;
|
835 |
-
}
|
836 |
-
.ui-tabs .ui-tabs-nav li a {
|
837 |
-
float: left;
|
838 |
-
text-decoration: none;
|
839 |
-
display: block;
|
840 |
-
width: 127px;
|
841 |
-
padding: 8px 10px;
|
842 |
-
border-bottom: 1px solid #e3e3e3;
|
843 |
-
color: #21759B;
|
844 |
-
text-shadow: 0 1px 0 #fff;
|
845 |
-
background-image: url(../images/white_px.png);
|
846 |
-
background-repeat: repeat-x;
|
847 |
-
background-position: 0 0;
|
848 |
-
font-size: 11px;
|
849 |
-
}
|
850 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,
|
851 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a:hover {
|
852 |
-
background: #fff;
|
853 |
-
color: #d54e45;
|
854 |
-
width: 128px;
|
855 |
-
}
|
856 |
-
.ui-tabs .ui-tabs-nav li.ui-state-disabled a,
|
857 |
-
.ui-tabs .ui-tabs-nav li.ui-state-processing a {
|
858 |
-
cursor: text;
|
859 |
-
}
|
860 |
-
.ui-tabs .ui-tabs-nav li a,
|
861 |
-
.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
|
862 |
-
cursor: pointer;
|
863 |
-
}
|
864 |
-
.ui-tabs .ui-tabs-nav li.ui-state-hover a {
|
865 |
-
background-color: #eaf2fa;
|
866 |
-
color: #555;
|
867 |
-
}
|
868 |
-
.ui-tabs .ui-tabs-panel {
|
869 |
-
display: block;
|
870 |
-
float: right;
|
871 |
-
width: 595px;
|
872 |
-
min-height: 400px;
|
873 |
-
}
|
874 |
-
.ui-tabs .ui-tabs-hide {
|
875 |
-
display: none !important;
|
876 |
-
}
|
877 |
-
.options_tabs li.ui-tabs-selected span {
|
878 |
-
position: absolute;
|
879 |
-
left: -1px;
|
880 |
-
top: 12px;
|
881 |
-
height: 9px;
|
882 |
-
width: 8px;
|
883 |
-
background: url(../images/icon_arrow.png) no-repeat 0 0;
|
884 |
-
}
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
/* file input */
|
889 |
-
div.file_wrap {
|
890 |
-
position: relative;
|
891 |
-
float: left;
|
892 |
-
width: 345px;
|
893 |
-
}
|
894 |
-
div.fake_file {
|
895 |
-
position: absolute;
|
896 |
-
top: 0px;
|
897 |
-
left: 0px;
|
898 |
-
z-index: 1;
|
899 |
-
}
|
900 |
-
div.fake_file input.upload {
|
901 |
-
margin-right: 3px;
|
902 |
-
width: 279px !important;
|
903 |
-
}
|
904 |
-
input.file {
|
905 |
-
background: none;
|
906 |
-
position: relative;
|
907 |
-
text-align: right;
|
908 |
-
float: right;
|
909 |
-
height: 28px;
|
910 |
-
-moz-opacity: 0;
|
911 |
-
filter: alpha(opacity: 0);
|
912 |
-
opacity: 0;
|
913 |
-
z-index: 2;
|
914 |
-
}
|
915 |
-
|
916 |
-
#register-profile-builder .validateStatus{
|
917 |
-
|
918 |
-
}
|
919 |
-
.wppb-serialnumber-descr{
|
920 |
-
padding-left:100px;
|
921 |
-
}
|
922 |
-
#wppb_profile_builder_pro_serial{
|
923 |
-
width:335px;
|
924 |
-
}
|
925 |
-
|
926 |
-
#plugin-layout input[type="submit"], #show-hide-admin-bar input[type="submit"], #default-fields input[type="submit"], #register-profile-builder input[type="submit"] {
|
927 |
-
position:absolute;
|
928 |
-
bottom:0;
|
929 |
-
right:0;
|
930 |
-
margin-bottom:-30px;
|
931 |
-
margin-right:25px;
|
932 |
-
}
|
933 |
-
|
934 |
-
#secondColumn, #thirdColumn{
|
935 |
-
width:25%;
|
936 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/assets/js/jquery.extra.fields.js
DELETED
@@ -1,707 +0,0 @@
|
|
1 |
-
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
* Delay
|
5 |
-
*
|
6 |
-
* Creates a way to delay events
|
7 |
-
* Dependencies: jQuery
|
8 |
-
*
|
9 |
-
*/
|
10 |
-
|
11 |
-
/*
|
12 |
-
Original Plugin Name: OptionTree
|
13 |
-
Original Plugin URI: http://wp.envato.com
|
14 |
-
Original Author: Derek Herman
|
15 |
-
Original Author URI: http://valendesigns.com
|
16 |
-
*/
|
17 |
-
|
18 |
-
(function ($) {
|
19 |
-
$.fn.delay = function(time,func){
|
20 |
-
return this.each(function(){
|
21 |
-
setTimeout(func,time);
|
22 |
-
});
|
23 |
-
};
|
24 |
-
})(jQuery);
|
25 |
-
|
26 |
-
/**
|
27 |
-
*
|
28 |
-
* Center AJAX
|
29 |
-
*
|
30 |
-
* Creates a way to center the AJAX message
|
31 |
-
* Dependencies: jQuery
|
32 |
-
*
|
33 |
-
*/
|
34 |
-
(function ($) {
|
35 |
-
$.fn.ajaxMessage = function(html){
|
36 |
-
if (html) {
|
37 |
-
return $(this).animate({"top":( $(window).height() - $(this).height() ) / 2 - 200 + $(window).scrollTop() + "px"},100).fadeIn('fast').html(html).delay(3000, function(){$('.ajax-message').fadeOut()});
|
38 |
-
} else {
|
39 |
-
return $(this).animate({"top":( $(window).height() - $(this).height() ) / 2 - 200 + $(window).scrollTop() + "px"},100).fadeIn('fast').delay(3000, function(){$('.ajax-message').fadeOut()});
|
40 |
-
}
|
41 |
-
};
|
42 |
-
})(jQuery);
|
43 |
-
|
44 |
-
/**
|
45 |
-
*
|
46 |
-
* Style File
|
47 |
-
*
|
48 |
-
* Creates a way to cover file input with a better styled version
|
49 |
-
* Dependencies: jQuery
|
50 |
-
*
|
51 |
-
*/
|
52 |
-
(function ($) {
|
53 |
-
styleFile = {
|
54 |
-
init: function () {
|
55 |
-
$('input.file').each(function(){
|
56 |
-
var uploadbutton = '<input class="upload_file_button" type="button" value="Upload" />';
|
57 |
-
$(this).wrap('<div class="file_wrap" />');
|
58 |
-
$(this).addClass('file').css('opacity', 0); //set to invisible
|
59 |
-
$(this).parent().append($('<div class="fake_file" />').append($('<input type="text" class="upload" />').attr('id',$(this).attr('id')+'_file')).append(uploadbutton));
|
60 |
-
|
61 |
-
$(this).bind('change', function() {
|
62 |
-
$('#'+$(this).attr('id')+'_file').val($(this).val());;
|
63 |
-
});
|
64 |
-
$(this).bind('mouseout', function() {
|
65 |
-
$('#'+$(this).attr('id')+'_file').val($(this).val());;
|
66 |
-
});
|
67 |
-
});
|
68 |
-
}
|
69 |
-
};
|
70 |
-
$(document).ready(function () {
|
71 |
-
styleFile.init()
|
72 |
-
})
|
73 |
-
})(jQuery);
|
74 |
-
|
75 |
-
/**
|
76 |
-
*
|
77 |
-
* Style Select
|
78 |
-
*
|
79 |
-
* Replace Select text
|
80 |
-
* Dependencies: jQuery
|
81 |
-
*
|
82 |
-
*/
|
83 |
-
(function ($) {
|
84 |
-
styleSelect = {
|
85 |
-
init: function () {
|
86 |
-
$('.select_wrapper').each(function () {
|
87 |
-
$(this).prepend('<span>' + $(this).find('.select option:selected').text() + '</span>');
|
88 |
-
});
|
89 |
-
$('.select').live('change', function () {
|
90 |
-
$(this).prev('span').replaceWith('<span>' + $(this).find('option:selected').text() + '</span>');
|
91 |
-
});
|
92 |
-
$('.select').bind($.browser.msie ? 'click' : 'change', function(event) {
|
93 |
-
$(this).prev('span').replaceWith('<span>' + $(this).find('option:selected').text() + '</span>');
|
94 |
-
});
|
95 |
-
}
|
96 |
-
};
|
97 |
-
$(document).ready(function () {
|
98 |
-
styleSelect.init()
|
99 |
-
})
|
100 |
-
})(jQuery);
|
101 |
-
|
102 |
-
/**
|
103 |
-
*
|
104 |
-
* Activate Tabs
|
105 |
-
*
|
106 |
-
* Tab style UI toggle
|
107 |
-
* Dependencies: jQuery, jQuery UI Core, jQuery UI Tabs
|
108 |
-
*
|
109 |
-
*/
|
110 |
-
(function ($) {
|
111 |
-
activateTabs = {
|
112 |
-
init: function () {
|
113 |
-
// Activate
|
114 |
-
$("#options_tabs").tabs();
|
115 |
-
// Append Toggle Button
|
116 |
-
$('.top-info').append('<a href="" class="toggle_tabs">Tabs</a>');
|
117 |
-
// Toggle Tabs
|
118 |
-
$('.toggle_tabs').toggle(function() {
|
119 |
-
$("#options_tabs").tabs('destroy');
|
120 |
-
$(this).addClass('off');
|
121 |
-
}, function() {
|
122 |
-
$("#options_tabs").tabs();
|
123 |
-
$(this).removeClass('off');
|
124 |
-
});
|
125 |
-
}
|
126 |
-
};
|
127 |
-
$(document).ready(function () {
|
128 |
-
activateTabs.init()
|
129 |
-
})
|
130 |
-
})(jQuery);
|
131 |
-
|
132 |
-
/**
|
133 |
-
*
|
134 |
-
* Upload Option
|
135 |
-
*
|
136 |
-
* Allows window.send_to_editor to function properly using a private post_id
|
137 |
-
* Dependencies: jQuery, Media Upload, Thickbox
|
138 |
-
*
|
139 |
-
*/
|
140 |
-
(function ($) {
|
141 |
-
uploadOption = {
|
142 |
-
init: function () {
|
143 |
-
var formfield,
|
144 |
-
formID,
|
145 |
-
btnContent = true;
|
146 |
-
// On Click
|
147 |
-
$('.upload_button').live("click", function () {
|
148 |
-
formfield = $(this).prev('input').attr('name');
|
149 |
-
formID = $(this).attr('rel');
|
150 |
-
tb_show('', 'media-upload.php?post_id='+formID+'&type=image&TB_iframe=1');
|
151 |
-
return false;
|
152 |
-
});
|
153 |
-
|
154 |
-
window.original_send_to_editor = window.send_to_editor;
|
155 |
-
window.send_to_editor = function(html) {
|
156 |
-
if (formfield) {
|
157 |
-
itemurl = $(html).attr('href');
|
158 |
-
var image = /(^.*\.jpg|jpeg|png|gif|ico*)/gi;
|
159 |
-
var document = /(^.*\.pdf|doc|docx|ppt|pptx|odt*)/gi;
|
160 |
-
var audio = /(^.*\.mp3|m4a|ogg|wav*)/gi;
|
161 |
-
var video = /(^.*\.mp4|m4v|mov|wmv|avi|mpg|ogv|3gp|3g2*)/gi;
|
162 |
-
if (itemurl.match(image)) {
|
163 |
-
btnContent = '<img src="'+itemurl+'" alt="" /><a href="" class="remove">Remove Image</a>';
|
164 |
-
} else {
|
165 |
-
btnContent = '<div class="no_image">'+html+'<a href="" class="remove">Remove</a></div>';
|
166 |
-
}
|
167 |
-
$('#' + formfield).val(itemurl);
|
168 |
-
$('#' + formfield).next().next('div').slideDown().html(btnContent);
|
169 |
-
tb_remove();
|
170 |
-
} else {
|
171 |
-
window.original_send_to_editor(html);
|
172 |
-
}
|
173 |
-
}
|
174 |
-
}
|
175 |
-
};
|
176 |
-
$(document).ready(function () {
|
177 |
-
uploadOption.init()
|
178 |
-
})
|
179 |
-
})(jQuery);
|
180 |
-
|
181 |
-
/**
|
182 |
-
*
|
183 |
-
* Inline Edit Options
|
184 |
-
*
|
185 |
-
* Creates & Updates Options via Ajax
|
186 |
-
* Dependencies: jQuery
|
187 |
-
*
|
188 |
-
*/
|
189 |
-
(function ($) {
|
190 |
-
inlineEditOption = {
|
191 |
-
init: function () {
|
192 |
-
var c = this,
|
193 |
-
d = $("tr.inline-edit-option");
|
194 |
-
$('.save-options', '#the-theme-options').live("click", function () {
|
195 |
-
inlineEditOption.save_options(this);
|
196 |
-
return false;
|
197 |
-
});
|
198 |
-
$("a.edit-inline").live("click", function (event) {
|
199 |
-
if ($("a.edit-inline").hasClass('disable')) {
|
200 |
-
event.preventDefault();
|
201 |
-
return false;
|
202 |
-
} else {
|
203 |
-
inlineEditOption.edit(this);
|
204 |
-
return false;
|
205 |
-
}
|
206 |
-
});
|
207 |
-
$("a.save").live("click", function () {
|
208 |
-
if ($("a.save").hasClass('add-save')) {
|
209 |
-
inlineEditOption.addSave(this);
|
210 |
-
return false;
|
211 |
-
} else {
|
212 |
-
inlineEditOption.editSave(this);
|
213 |
-
return false;
|
214 |
-
}
|
215 |
-
});
|
216 |
-
$("a.cancel").live("click", function () {
|
217 |
-
if ($("a.cancel").hasClass('undo-add')) {
|
218 |
-
inlineEditOption.undoAdd();
|
219 |
-
return false;
|
220 |
-
} else {
|
221 |
-
inlineEditOption.revert();
|
222 |
-
return false;
|
223 |
-
}
|
224 |
-
});
|
225 |
-
$("a.add-option").live("click", function (event) {
|
226 |
-
if ($(this).hasClass('disable')) {
|
227 |
-
event.preventDefault();
|
228 |
-
return false;
|
229 |
-
} else {
|
230 |
-
$.post(
|
231 |
-
ajaxurl,
|
232 |
-
{ action:'profile_builder_next_id', _ajax_nonce: $("#_ajax_nonce").val() },
|
233 |
-
function (response) {
|
234 |
-
c = parseInt(response) + 1;
|
235 |
-
inlineEditOption.add(c);
|
236 |
-
}
|
237 |
-
);
|
238 |
-
return false;
|
239 |
-
}
|
240 |
-
});
|
241 |
-
$('.delete-inline').live("click", function (event) {
|
242 |
-
if ($("a.delete-inline").hasClass('disable')) {
|
243 |
-
event.preventDefault();
|
244 |
-
return false;
|
245 |
-
} else {
|
246 |
-
var agree = confirm("Are you sure you want to delete this input?");
|
247 |
-
if (agree) {
|
248 |
-
inlineEditOption.remove(this);
|
249 |
-
return false;
|
250 |
-
} else {
|
251 |
-
return false;
|
252 |
-
}
|
253 |
-
}
|
254 |
-
});
|
255 |
-
// Fade out message div
|
256 |
-
if ($('.ajax-message').hasClass('show')) {
|
257 |
-
$('.ajax-message').ajaxMessage();
|
258 |
-
}
|
259 |
-
// Remove Uploaded Image
|
260 |
-
$('.remove').live('click', function(event) {
|
261 |
-
$(this).hide();
|
262 |
-
$(this).parents().prev().prev('.upload').attr('value', '');
|
263 |
-
$(this).parents('.screenshot').slideUp();
|
264 |
-
});
|
265 |
-
},
|
266 |
-
save_options: function (e) {
|
267 |
-
var d = {
|
268 |
-
action: "profile_builder_array_save"
|
269 |
-
};
|
270 |
-
b = $(':input', '#the-theme-options').serialize();
|
271 |
-
d = b + "&" + $.param(d);
|
272 |
-
$.post(ajaxurl, d, function (r) {
|
273 |
-
if (r != -1) {
|
274 |
-
$('.ajax-message').ajaxMessage('<div class="message"><span> </span>Theme Options were saved</div>');
|
275 |
-
$(".option-tree-slider-body").hide();
|
276 |
-
$('.option-tree-slider .edit').removeClass('down');
|
277 |
-
} else {
|
278 |
-
$('.ajax-message').ajaxMessage('<div class="message warning"><span> </span>Theme Options could not be saved</div>');
|
279 |
-
}
|
280 |
-
});
|
281 |
-
return false;
|
282 |
-
},
|
283 |
-
remove: function (b) {
|
284 |
-
var c = true;
|
285 |
-
|
286 |
-
// Set ID
|
287 |
-
c = $(b).parents("tr:first").attr('id');
|
288 |
-
c = c.substr(c.lastIndexOf("-") + 1);
|
289 |
-
|
290 |
-
d = {
|
291 |
-
action: "profile_builder_delete",
|
292 |
-
id: c,
|
293 |
-
_ajax_nonce: $("#_ajax_nonce").val()
|
294 |
-
};
|
295 |
-
$.post(ajaxurl, d, function (r) {
|
296 |
-
if (r) {
|
297 |
-
if (r == 'removed') {
|
298 |
-
$("#option-" + c).remove();
|
299 |
-
$('.ajax-message').ajaxMessage('<div class="message"><span> </span>Input deleted.</div>');
|
300 |
-
} else {
|
301 |
-
$('.ajax-message').ajaxMessage('<div class="message warning"><span> </span>'+r+'</div>');
|
302 |
-
}
|
303 |
-
} else {
|
304 |
-
$('.ajax-message').ajaxMessage('<div class="message warning"><span> </span>'+r+'</div>');
|
305 |
-
}
|
306 |
-
});
|
307 |
-
return false;
|
308 |
-
},
|
309 |
-
add: function (c) {
|
310 |
-
var e = this,
|
311 |
-
addRow, editRow = true, temp_select;
|
312 |
-
e.revert();
|
313 |
-
|
314 |
-
// Clone the blank main row
|
315 |
-
addRow = $('#inline-add').clone(true);
|
316 |
-
addRow = $(addRow).attr('id', 'option-'+c);
|
317 |
-
|
318 |
-
// Clone the blank edit row
|
319 |
-
editRow = $('#inline-edit').clone(true);
|
320 |
-
|
321 |
-
$('a.cancel', editRow).addClass('undo-add');
|
322 |
-
$('a.save', editRow).addClass('add-save');
|
323 |
-
$('a.edit-inline').addClass('disable');
|
324 |
-
$('a.delete-inline').addClass('disable');
|
325 |
-
$('a.add-option').addClass('disable');
|
326 |
-
|
327 |
-
// Set Colspan to 5
|
328 |
-
$('td', editRow).attr('colspan', 5);
|
329 |
-
|
330 |
-
// Add Row
|
331 |
-
$("#framework-settings tr:last").after(addRow);
|
332 |
-
|
333 |
-
// Add Row and hide
|
334 |
-
$(addRow).hide().after(editRow);
|
335 |
-
|
336 |
-
$('.item-data', addRow).attr('id', 'inline_'+c);
|
337 |
-
|
338 |
-
// Show The Editor
|
339 |
-
$(editRow).attr('id', 'edit-'+c).addClass('inline-editor').show();
|
340 |
-
|
341 |
-
$('.item_title', '#edit-'+c).focus();
|
342 |
-
|
343 |
-
$('.select').each(function () {
|
344 |
-
temp_select = $(this).prev('span').text();
|
345 |
-
if (temp_select == 'Heading') {
|
346 |
-
$('.option-desc', '#edit-'+c).hide();
|
347 |
-
$('.option-options', '#edit-'+c).hide();
|
348 |
-
}
|
349 |
-
});
|
350 |
-
|
351 |
-
$('.select').live('change', function () {
|
352 |
-
temp_select = $(this).prev('span').text();
|
353 |
-
if (temp_select == 'Heading') {
|
354 |
-
$('.option-desc', '#edit-'+c).hide();
|
355 |
-
$('.option-options', '#edit-'+c).hide();
|
356 |
-
} else if (
|
357 |
-
temp_select == 'Checkbox' ||
|
358 |
-
temp_select == 'Radio' ||
|
359 |
-
temp_select == 'Select'
|
360 |
-
) {
|
361 |
-
$('.alternative').hide();
|
362 |
-
$('.regular').show();
|
363 |
-
$('.option-desc', '#edit-'+c).show();
|
364 |
-
$('.option-options', '#edit-'+c).show();
|
365 |
-
/* avatar */
|
366 |
-
}else if (temp_select == 'Avatar'){
|
367 |
-
$('.regular').hide();
|
368 |
-
$('.alternative').show().html('<strong>Avatar Size:</strong> Enter a numeric value (between 20 and 200) for the avatar size.');
|
369 |
-
$('.option-desc', editRow).show();
|
370 |
-
$('.option-options', editRow).show();
|
371 |
-
/* end avatar */
|
372 |
-
} else {
|
373 |
-
if (temp_select == 'Textarea') {
|
374 |
-
$('.regular').hide();
|
375 |
-
$('.alternative').show().html('<strong>Row Count:</strong> Enter a numeric value for the number of rows in your textarea.');
|
376 |
-
$('.option-desc', '#edit-'+c).show();
|
377 |
-
$('.option-options', '#edit-'+c).show();
|
378 |
-
} else if (
|
379 |
-
temp_select == 'Custom Post' ||
|
380 |
-
temp_select == 'Custom Posts'
|
381 |
-
) {
|
382 |
-
$('.regular').hide();
|
383 |
-
$('.alternative').show().html('<strong>Post Type:</strong> Enter your custom post_type.');
|
384 |
-
$('.option-desc', '#edit-'+c).show();
|
385 |
-
$('.option-options', '#edit-'+c).show();
|
386 |
-
} else {
|
387 |
-
$('.option-desc', '#edit-'+c).show();
|
388 |
-
$('.option-options', '#edit-'+c).hide();
|
389 |
-
}
|
390 |
-
}
|
391 |
-
});
|
392 |
-
|
393 |
-
// Scroll
|
394 |
-
$('html, body').animate({ scrollTop: 2000 }, 500);
|
395 |
-
|
396 |
-
return false;
|
397 |
-
},
|
398 |
-
undoAdd: function (b) {
|
399 |
-
var e = this,
|
400 |
-
c = true;
|
401 |
-
e.revert();
|
402 |
-
c = $("#framework-settings tr:last").attr('id');
|
403 |
-
c = c.substr(c.lastIndexOf("-") + 1);
|
404 |
-
|
405 |
-
$("a.edit-inline").removeClass('disable');
|
406 |
-
$("a.delete-inline").removeClass('disable');
|
407 |
-
$("a.add-option").removeClass('disable');
|
408 |
-
$("#option-" + c).remove();
|
409 |
-
|
410 |
-
return false;
|
411 |
-
},
|
412 |
-
addSave: function (e) {
|
413 |
-
var d, b, c, f, g, itemId;
|
414 |
-
e = $("tr.inline-editor").attr("id");
|
415 |
-
e = e.substr(e.lastIndexOf("-") + 1);
|
416 |
-
f = $("#edit-" + e);
|
417 |
-
g = $("#inline_" + e);
|
418 |
-
itemId = $.trim($("input.item_id", f).val().toLowerCase()).replace(/(\s+)/g,'_');
|
419 |
-
if (!itemId) {
|
420 |
-
itemId = $.trim($("input.item_title", f).val().toLowerCase()).replace(/(\s+)/g,'_');
|
421 |
-
}
|
422 |
-
d = {
|
423 |
-
action: "profile_builder_add",
|
424 |
-
id: e,
|
425 |
-
item_id: itemId,
|
426 |
-
item_title: $("input.item_title", f).val(),
|
427 |
-
item_desc: $("textarea.item_desc", f).val(),
|
428 |
-
item_type: $("select.item_type", f).val(),
|
429 |
-
item_options: $("input.item_options", f).val()
|
430 |
-
};
|
431 |
-
b = $("#edit-" + e + " :input").serialize();
|
432 |
-
d = b + "&" + $.param(d);
|
433 |
-
$.post(ajaxurl, d, function (r) {
|
434 |
-
if (r) {
|
435 |
-
if (r == 'updated') {
|
436 |
-
inlineEditOption.afterSave(e);
|
437 |
-
$("#edit-" + e).remove();
|
438 |
-
$("#option-" + e).show();
|
439 |
-
$('.ajax-message').ajaxMessage('<div class="message"><span> </span>Input added.</div>');
|
440 |
-
$('#framework-settings').tableDnD({
|
441 |
-
onDragClass: "dragging",
|
442 |
-
onDrop: function(table, row) {
|
443 |
-
d = {
|
444 |
-
action: "profile_builder_sort",
|
445 |
-
id: $.tableDnD.serialize(),
|
446 |
-
_ajax_nonce: $("#_ajax_nonce").val()
|
447 |
-
};
|
448 |
-
$.post(ajaxurl, d, function (response) {
|
449 |
-
|
450 |
-
}, "html");
|
451 |
-
}
|
452 |
-
});
|
453 |
-
} else {
|
454 |
-
$('.ajax-message').ajaxMessage('<div class="message warning"><span> </span>'+r+'</div>');
|
455 |
-
}
|
456 |
-
} else {
|
457 |
-
$('.ajax-message').ajaxMessage('<div class="message warning"><span> </span>'+r+'</div>');
|
458 |
-
}
|
459 |
-
});
|
460 |
-
|
461 |
-
return false;
|
462 |
-
},
|
463 |
-
edit: function (b) {
|
464 |
-
var e = this,
|
465 |
-
c, editRow, rowData, item_title, item_id, item_type, item_desc, item_options = true, temp_select;
|
466 |
-
e.revert();
|
467 |
-
|
468 |
-
c = $(b).parents("tr:first").attr('id');
|
469 |
-
c = c.substr(c.lastIndexOf("-") + 1);
|
470 |
-
|
471 |
-
// Clone the blank row
|
472 |
-
editRow = $('#inline-edit').clone(true);
|
473 |
-
$('td', editRow).attr('colspan', 5);
|
474 |
-
$("#option-" + c).hide().after(editRow);
|
475 |
-
|
476 |
-
// First Option Settings
|
477 |
-
if ("#option-" + c == '#option-1') {
|
478 |
-
$('.option').hide();
|
479 |
-
$('.option-title').show().css({"paddingBottom":"1px"});
|
480 |
-
$('.description', editRow).html('First item must be a heading.');
|
481 |
-
}
|
482 |
-
|
483 |
-
// Populate the option data
|
484 |
-
rowData = $('#inline_' + c);
|
485 |
-
|
486 |
-
// Item Title
|
487 |
-
item_title = $('.item_title', rowData).text();
|
488 |
-
$('.item_title', editRow).attr('value', item_title);
|
489 |
-
|
490 |
-
// Item ID
|
491 |
-
item_id = $('.item_id', rowData).text();
|
492 |
-
$('.item_id', editRow).attr('value', item_id);
|
493 |
-
|
494 |
-
// Item Type
|
495 |
-
item_type = $('.item_type', rowData).text();
|
496 |
-
$('select[name=item_type] option[value='+item_type+']', editRow).attr('selected', true);
|
497 |
-
var temp_item_type = $('select[name=item_type] option[value='+item_type+']', editRow).text();
|
498 |
-
$('.select_wrapper span', editRow).text(temp_item_type);
|
499 |
-
|
500 |
-
// Item Description
|
501 |
-
item_desc = $('.item_desc', rowData).text();
|
502 |
-
$('.item_desc', editRow).attr('value', item_desc);
|
503 |
-
|
504 |
-
// Avatar size
|
505 |
-
item_avatar = $('.item_avatar', rowData).text();
|
506 |
-
$('.item_avatar', editRow).attr('value', item_avatar);
|
507 |
-
|
508 |
-
// Item Options
|
509 |
-
item_options = $('.item_options', rowData).text();
|
510 |
-
$('.item_options', editRow).attr('value', item_options);
|
511 |
-
|
512 |
-
|
513 |
-
$('.select', editRow).each(function () {
|
514 |
-
temp_select = $(this).prev('span').text();
|
515 |
-
if (temp_select == 'Heading') {
|
516 |
-
$('.option-desc', editRow).hide();
|
517 |
-
$('.option-options', editRow).hide();
|
518 |
-
} else if (
|
519 |
-
temp_select == 'Checkbox' ||
|
520 |
-
temp_select == 'Radio' ||
|
521 |
-
temp_select == 'Select'
|
522 |
-
) {
|
523 |
-
$('.option-desc', editRow).show();
|
524 |
-
$('.option-options', editRow).show();
|
525 |
-
/*avatar */
|
526 |
-
} else if (temp_select == 'Avatar'){
|
527 |
-
$('.regular').hide();
|
528 |
-
$('.alternative').show().html('<strong>Avatar Size:</strong> Enter a numeric value (between 20 and 200) for size of the avatar.');
|
529 |
-
$('.option-desc', editRow).show();
|
530 |
-
$('.option-options', editRow).show();
|
531 |
-
/* end avatar */
|
532 |
-
} else {
|
533 |
-
if (temp_select == 'Textarea') {
|
534 |
-
$('.regular').hide();
|
535 |
-
$('.alternative').show().html('<strong>Row Count:</strong> Enter a numeric value for the number of rows in your textarea.');
|
536 |
-
$('.option-desc', editRow).show();
|
537 |
-
$('.option-options', editRow).show();
|
538 |
-
} else if (
|
539 |
-
temp_select == 'Custom Post' ||
|
540 |
-
temp_select == 'Custom Posts'
|
541 |
-
) {
|
542 |
-
$('.regular').hide();
|
543 |
-
$('.alternative').show().html('<strong>Post Type:</strong> Enter your custom post_type.');
|
544 |
-
$('.option-desc', editRow).show();
|
545 |
-
$('.option-options', editRow).show();
|
546 |
-
} else {
|
547 |
-
$('.option-desc', editRow).show();
|
548 |
-
$('.option-options', editRow).hide();
|
549 |
-
}
|
550 |
-
}
|
551 |
-
});
|
552 |
-
|
553 |
-
$('.select').live('change', function () {
|
554 |
-
temp_select = $(this).prev('span').text();
|
555 |
-
if (temp_select == 'Heading') {
|
556 |
-
$('.option-desc', editRow).hide();
|
557 |
-
$('.option-options', editRow).hide();
|
558 |
-
} else if (
|
559 |
-
temp_select == 'Checkbox' ||
|
560 |
-
temp_select == 'Radio' ||
|
561 |
-
temp_select == 'Select'
|
562 |
-
) {
|
563 |
-
$('.alternative').hide();
|
564 |
-
$('.regular').show();
|
565 |
-
$('.option-desc', editRow).show();
|
566 |
-
$('.option-options', editRow).show();
|
567 |
-
/*avatar */
|
568 |
-
} else if (temp_select == 'Avatar'){
|
569 |
-
$('.regular').hide();
|
570 |
-
$('.alternative').show().html('<strong>Avatar Size:</strong> Enter a numeric value (between 20 and 200) for size of the avatar.');
|
571 |
-
$('.option-desc', editRow).show();
|
572 |
-
$('.option-options', editRow).show();
|
573 |
-
/* end avatar */
|
574 |
-
} else {
|
575 |
-
if (temp_select == 'Textarea') {
|
576 |
-
$('.regular').hide();
|
577 |
-
$('.alternative').show().html('<strong>Row Count:</strong> Enter a numeric value for the number of rows in your textarea.');
|
578 |
-
$('.option-desc', editRow).show();
|
579 |
-
$('.option-options', editRow).show();
|
580 |
-
} else if (
|
581 |
-
temp_select == 'Custom Post' ||
|
582 |
-
temp_select == 'Custom Posts'
|
583 |
-
) {
|
584 |
-
$('.regular').hide();
|
585 |
-
$('.alternative').show().html('<strong>Post Type:</strong> Enter your custom post_type.');
|
586 |
-
$('.option-desc', editRow).show();
|
587 |
-
$('.option-options', editRow).show();
|
588 |
-
} else {
|
589 |
-
$('.option-desc', editRow).show();
|
590 |
-
$('.option-options', editRow).hide();
|
591 |
-
}
|
592 |
-
}
|
593 |
-
});
|
594 |
-
|
595 |
-
// Show The Editor
|
596 |
-
$(editRow).attr('id', 'edit-'+c).addClass('inline-editor').show();
|
597 |
-
|
598 |
-
// Scroll
|
599 |
-
var target = $('#edit-'+c);
|
600 |
-
if (c > 1) {
|
601 |
-
var top = target.offset().top;
|
602 |
-
$('html,body').animate({scrollTop: top}, 500);
|
603 |
-
return false;
|
604 |
-
}
|
605 |
-
|
606 |
-
return false;
|
607 |
-
},
|
608 |
-
editSave: function (e) {
|
609 |
-
var d, b, c, f, g, itemId;
|
610 |
-
e = $("tr.inline-editor").attr("id");
|
611 |
-
e = e.substr(e.lastIndexOf("-") + 1);
|
612 |
-
f = $("#edit-" + e);
|
613 |
-
g = $("#inline_" + e);
|
614 |
-
itemId = $.trim($("input.item_id", f).val().toLowerCase()).replace(/(\s+)/g,'_');
|
615 |
-
if (!itemId) {
|
616 |
-
itemId = $.trim($("input.item_title", f).val().toLowerCase()).replace(/(\s+)/g,'_');
|
617 |
-
}
|
618 |
-
d = {
|
619 |
-
action: "profile_builder_edit",
|
620 |
-
id: e,
|
621 |
-
item_id: itemId,
|
622 |
-
item_title: $("input.item_title", f).val(),
|
623 |
-
item_desc: $("textarea.item_desc", f).val(),
|
624 |
-
item_type: $("select.item_type", f).val(),
|
625 |
-
item_options: $("input.item_options", f).val()
|
626 |
-
};
|
627 |
-
b = $("#edit-" + e + " :input").serialize();
|
628 |
-
d = b + "&" + $.param(d);
|
629 |
-
$.post(ajaxurl, d, function (r) {
|
630 |
-
if (r) {
|
631 |
-
if (r == 'updated') {
|
632 |
-
inlineEditOption.afterSave(e);
|
633 |
-
$("#edit-" + e).remove();
|
634 |
-
$("#option-" + e).show();
|
635 |
-
$('.ajax-message').ajaxMessage('<div class="message"><span> </span>Option Saved.</div>');
|
636 |
-
} else {
|
637 |
-
$('.ajax-message').ajaxMessage('<div class="message warning"><span> </span>'+r+'</div>');
|
638 |
-
}
|
639 |
-
} else {
|
640 |
-
$('.ajax-message').ajaxMessage('<div class="message warning"><span> </span>'+r+'</div>');
|
641 |
-
}
|
642 |
-
});
|
643 |
-
return false;
|
644 |
-
},
|
645 |
-
afterSave: function (e) {
|
646 |
-
var x, y, z,
|
647 |
-
n, m, o, p, q, r = true;
|
648 |
-
x = $("#edit-" + e);
|
649 |
-
y = $("#option-" + e);
|
650 |
-
z = $("#inline_" + e);
|
651 |
-
$('.option').show();
|
652 |
-
$('a.cancel', x).removeClass('undo-add');
|
653 |
-
$('a.save', x).removeClass('add-save');
|
654 |
-
$("a.add-option").removeClass('disable');
|
655 |
-
$('a.edit-inline').removeClass('disable');
|
656 |
-
$('a.delete-inline').removeClass('disable');
|
657 |
-
if (n = $("input.item_title", x).val()) {
|
658 |
-
if ($("select.item_type", x).val() != 'heading') {
|
659 |
-
$(y).removeClass('col-heading');
|
660 |
-
$('.col-title', y).attr('colspan', 1);
|
661 |
-
$(".col-key", y).show();
|
662 |
-
$(".col-type", y).show();
|
663 |
-
$(".col-title", y).text('- ' + n);
|
664 |
-
} else {
|
665 |
-
$(y).addClass('col-heading');
|
666 |
-
$('.col-title', y).attr('colspan', 3);
|
667 |
-
$(".col-key", y).hide();
|
668 |
-
$(".col-type", y).hide();
|
669 |
-
$(".col-title", y).text(n);
|
670 |
-
}
|
671 |
-
$(".item_title", z).text(n);
|
672 |
-
}
|
673 |
-
if (m = $.trim($("input.item_id", x).val().toLowerCase()).replace(/(\s+)/g,'_')) {
|
674 |
-
$(".col-key", y).text(m);
|
675 |
-
$(".item_id", z).text(m);
|
676 |
-
} else {
|
677 |
-
m = $.trim($("input.item_title", x).val().toLowerCase()).replace(/(\s+)/g,'_');
|
678 |
-
$(".col-key", y).text(m);
|
679 |
-
$(".item_id", z).text(m);
|
680 |
-
}
|
681 |
-
if (o = $("select.item_type option:selected", x).val()) {
|
682 |
-
$(".col-type", y).text(o);
|
683 |
-
$(".item_type", z).text(o);
|
684 |
-
}
|
685 |
-
if (p = $("textarea.item_desc", x).val()) {
|
686 |
-
$(".item_desc", z).text(p);
|
687 |
-
}
|
688 |
-
if (r = $("input.item_options", x).val()) {
|
689 |
-
$(".item_options", z).text(r);
|
690 |
-
}
|
691 |
-
},
|
692 |
-
revert: function () {
|
693 |
-
var b,
|
694 |
-
n, m, o, p, q, r = true;
|
695 |
-
if (b = $(".inline-editor").attr("id")) {
|
696 |
-
$('#'+ b).remove();
|
697 |
-
b = b.substr(b.lastIndexOf("-") + 1);
|
698 |
-
$('.option').show();
|
699 |
-
$("#option-" + b).show();
|
700 |
-
}
|
701 |
-
return false;
|
702 |
-
}
|
703 |
-
};
|
704 |
-
$(document).ready(function () {
|
705 |
-
inlineEditOption.init();
|
706 |
-
})
|
707 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/classes/class.admin.php
DELETED
@@ -1,175 +0,0 @@
|
|
1 |
-
<?php if (!defined('ProfileBuilderVersion')) exit('No direct script access allowed');
|
2 |
-
/*
|
3 |
-
Original Plugin Name: OptionTree
|
4 |
-
Original Plugin URI: http://wp.envato.com
|
5 |
-
Original Author: Derek Herman
|
6 |
-
Original Author URI: http://valendesigns.com
|
7 |
-
*/
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Profile Builder Admin
|
11 |
-
*
|
12 |
-
*/
|
13 |
-
|
14 |
-
class PB_Admin{
|
15 |
-
private $version = NULL;
|
16 |
-
|
17 |
-
function __construct(){
|
18 |
-
$this->version = ProfileBuilderVersion;
|
19 |
-
}
|
20 |
-
|
21 |
-
/**
|
22 |
-
* Initiate Plugin & setup main options
|
23 |
-
*
|
24 |
-
* @uses get_option()
|
25 |
-
* @uses add_option()
|
26 |
-
* @uses profile_builder_activate()
|
27 |
-
* @uses wp_redirect()
|
28 |
-
* @uses admin_url()
|
29 |
-
*
|
30 |
-
* @access public
|
31 |
-
*
|
32 |
-
*
|
33 |
-
* @return bool
|
34 |
-
*/
|
35 |
-
function profile_builder_initialize(){
|
36 |
-
// check for activation
|
37 |
-
$check = get_option( 'profile_builder_activation' );
|
38 |
-
|
39 |
-
// redirect on activation
|
40 |
-
if ($check != "set") {
|
41 |
-
// add theme options
|
42 |
-
add_option( 'profile_builder_activation', 'set');
|
43 |
-
|
44 |
-
// load DB activation function if updating plugin
|
45 |
-
$this->profile_builder_activate();
|
46 |
-
|
47 |
-
// Redirect
|
48 |
-
wp_redirect( admin_url().'users.php?page=ProfileBuilderOptionsAndSettings' );
|
49 |
-
}
|
50 |
-
return false;
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
/**
|
55 |
-
* Plugin Activation
|
56 |
-
*
|
57 |
-
*
|
58 |
-
*
|
59 |
-
* @return void
|
60 |
-
*/
|
61 |
-
function profile_builder_activate(){
|
62 |
-
global $wp_roles;
|
63 |
-
|
64 |
-
// check for installed version
|
65 |
-
$installed_ver = get_option( 'profile_builder_version' );
|
66 |
-
|
67 |
-
// New Version Update
|
68 |
-
if ( $installed_ver != $this->version ){
|
69 |
-
update_option( 'profile_builder_version', $this->version );
|
70 |
-
}
|
71 |
-
else if ( !$installed_ver ) {
|
72 |
-
add_option( 'profile_builder_version', $this->version );
|
73 |
-
}
|
74 |
-
|
75 |
-
|
76 |
-
$wppb_default_settings = array(
|
77 |
-
'username' => 'show',
|
78 |
-
'usernameRequired' => 'no',
|
79 |
-
'firstname' => 'show',
|
80 |
-
'firstnameRequired' => 'no',
|
81 |
-
'lastname' => 'show',
|
82 |
-
'lastnameRequired' => 'no',
|
83 |
-
'nickname' => 'show',
|
84 |
-
'nicknameRequired' => 'no',
|
85 |
-
'dispname' => 'show',
|
86 |
-
'dispnameRequired' => 'no',
|
87 |
-
'email' => 'show',
|
88 |
-
'emailRequired' => 'no',
|
89 |
-
'website' => 'show',
|
90 |
-
'websiteRequired' => 'no',
|
91 |
-
'aim' => 'show',
|
92 |
-
'aimRequired' => 'no',
|
93 |
-
'yahoo' => 'show',
|
94 |
-
'yahooRequired' => 'no',
|
95 |
-
'jabber' => 'show',
|
96 |
-
'jabberRequired' => 'no',
|
97 |
-
'bio' => 'show',
|
98 |
-
'bioRequired' => 'no',
|
99 |
-
'password' => 'show',
|
100 |
-
'passwordRequired' => 'no'
|
101 |
-
);
|
102 |
-
add_option( 'wppb_default_settings', $wppb_default_settings ); //set all fields visible on first activation of the plugin
|
103 |
-
add_option( 'wppb_default_style', 'yes');
|
104 |
-
$all_roles = $wp_roles->roles;
|
105 |
-
$editable_roles = apply_filters('editable_roles', $all_roles);
|
106 |
-
|
107 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
108 |
-
|
109 |
-
if ($admintSettingsPresent == 'not_found'){ // if the field doesn't exists, then create it
|
110 |
-
$rolesArray = array();
|
111 |
-
foreach ( $editable_roles as $key => $data )
|
112 |
-
$rolesArray = array( $key => 'show' ) + $rolesArray;
|
113 |
-
$rolesArray = array_reverse($rolesArray,true);
|
114 |
-
add_option( 'wppb_display_admin_settings', $rolesArray);
|
115 |
-
}
|
116 |
-
|
117 |
-
}
|
118 |
-
|
119 |
-
/**
|
120 |
-
* Plugin Deactivation delete options
|
121 |
-
*
|
122 |
-
* @uses delete_option()
|
123 |
-
*
|
124 |
-
* @access public
|
125 |
-
*
|
126 |
-
*
|
127 |
-
* @return void
|
128 |
-
*/
|
129 |
-
function profile_builder_deactivate() {
|
130 |
-
// remove activation check & version
|
131 |
-
delete_option( 'profile_builder_activation' );
|
132 |
-
delete_option( 'profile_builder_version' );
|
133 |
-
}
|
134 |
-
|
135 |
-
/**
|
136 |
-
* Add Admin Menu Items & Test Actions
|
137 |
-
*
|
138 |
-
*
|
139 |
-
* @return void
|
140 |
-
*/
|
141 |
-
function profile_builder_admin(){
|
142 |
-
// create menu item
|
143 |
-
$profile_builder_options = add_submenu_page( 'users.php', 'Profile Builder', 'Profile Builder', 'delete_users', 'ProfileBuilderOptionsAndSettings', array( $this, 'profile_builder_options_page' ) );
|
144 |
-
|
145 |
-
// add menu item
|
146 |
-
add_action( "admin_print_styles-$profile_builder_options", array( $this, 'profile_builder_load' ) );
|
147 |
-
}
|
148 |
-
|
149 |
-
/**
|
150 |
-
* Load Scripts & Styles
|
151 |
-
*
|
152 |
-
* @uses wp_enqueue_style()
|
153 |
-
*
|
154 |
-
*
|
155 |
-
* @return void
|
156 |
-
*/
|
157 |
-
function profile_builder_load(){
|
158 |
-
// enqueue styles
|
159 |
-
wp_enqueue_style( 'profile-builder-style', wppb_plugin_url.'/assets/css/style.css', false, $this->version, 'screen');
|
160 |
-
|
161 |
-
// enqueue scripts
|
162 |
-
add_thickbox();
|
163 |
-
wp_enqueue_script( 'jquery-extra-profile-fields', wppb_plugin_url.'/assets/js/jquery.extra.fields.js', array('jquery','media-upload','thickbox','jquery-ui-core','jquery-ui-tabs', 'jquery-ui-sortable'), $this->version );
|
164 |
-
|
165 |
-
// remove GD star rating conflicts
|
166 |
-
wp_deregister_style( 'gdsr-jquery-ui-core' );
|
167 |
-
wp_deregister_style( 'gdsr-jquery-ui-theme' );
|
168 |
-
}
|
169 |
-
|
170 |
-
function profile_builder_options_page() {
|
171 |
-
// Grab Options Page
|
172 |
-
include( wppb_plugin_dir.'/front-end/options.php' );
|
173 |
-
}
|
174 |
-
|
175 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/front-end/menu.file.php
DELETED
@@ -1,327 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
function basic_info(){
|
3 |
-
?>
|
4 |
-
|
5 |
-
<h2><?php _e('Profile Builder', 'profilebuilder');?></h2>
|
6 |
-
<h3><?php _e('Welcome to Profile Builder!', 'profilebuilder');?></h3>
|
7 |
-
<p>
|
8 |
-
<strong><?php _e('Profile Builder', 'profilebuilder');?></strong><?php _e(' lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users.', 'profilebuilder');?><br/><br/>
|
9 |
-
<?php _e('Also, grants users with administrator rights to customize basic fields or to add new ones.', 'profilebuilder');?><br/><br/>
|
10 |
-
<?php _e('To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile).', 'profilebuilder');?><br/>
|
11 |
-
<?php _e('Now all you need to do is add the following shortcode(for the previous example): ', 'profilebuilder');?>[wppb-edit-profile].<br/>
|
12 |
-
<?php _e('Publish your page and you are ready to go!', 'profilebuilder');?><br/><br/>
|
13 |
-
<?php _e('You can use the following shortcodes:', 'profilebuilder');?><br/>
|
14 |
-
→ <strong>[wppb-login]</strong> - <?php _e('for a log-in form.', 'profilebuilder');?><br/>
|
15 |
-
→ <strong>[wppb-register]</strong> - <?php _e('to add a registration form.', 'profilebuilder');?><br/>
|
16 |
-
→ <strong>[wppb-edit-profile]</strong> - <?php _e('to grant users a front-end acces to their personal information(requires user to be logged in).', 'profilebuilder');?><br/>
|
17 |
-
→ <strong>[wppb-recover-password]</strong> - <?php _e('to add a password recovery form.', 'profilebuilder');?><br/><br/>
|
18 |
-
|
19 |
-
<?php _e('Users with administrator rights have access to the following features:', 'profilebuilder');?><br/>
|
20 |
-
→ <?php _e('add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black.', 'profilebuilder');?><br/>
|
21 |
-
→ <?php _e('select whether to display or not the admin bar in the front end for a specific user-group registered to the site.', 'profilebuilder');?><br/>
|
22 |
-
→ <?php _e('select which information-field can users see/modify. The hidden fields\' values remain unmodified.', 'profilebuilder');?><br/>
|
23 |
-
→ <?php _e('add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload.', 'profilebuilder');?><br/>
|
24 |
-
→ <?php _e('add an avatar field.', 'profilebuilder');?><br/>
|
25 |
-
<br/>
|
26 |
-
|
27 |
-
<strong><?php _e('NOTE:', 'profilebuilder');?></strong>
|
28 |
-
<?php _e('this plugin only adds/removes fields in the front-end.', 'profilebuilder');?><br/>
|
29 |
-
<?php _e('The default information-fields will still be visible(and thus modifiable)', 'profilebuilder');?>
|
30 |
-
<?php _e('from the back-end, while custom fields will only be visible in the front-end.', 'profilebuilder');?>
|
31 |
-
</p>
|
32 |
-
|
33 |
-
<?php
|
34 |
-
}
|
35 |
-
?>
|
36 |
-
|
37 |
-
<?php
|
38 |
-
function plugin_layout(){
|
39 |
-
?>
|
40 |
-
<form method="post" action="options.php#plugin-layout">
|
41 |
-
<?php $wppb_showDefaultCss = get_option('wppb_default_style'); ?>
|
42 |
-
<?php settings_fields('wppb_default_style'); ?>
|
43 |
-
|
44 |
-
<h2><?php _e('Plugin Layout', 'profilebuilder');?></h2>
|
45 |
-
<h3><?php _e('Plugin Layout', 'profilebuilder');?></h3>
|
46 |
-
<font size="2"><?php _e('Stylesheet used:', 'profilebuilder');?></font>
|
47 |
-
<select name="wppb_default_style" class="wppb_default_style">
|
48 |
-
<option value="yes" <?php if ($wppb_showDefaultCss == 'yes') echo 'selected';?>><?php _e('Default', 'profilebuilder');?></option>
|
49 |
-
<?php
|
50 |
-
$wppb_premiumStyle = wppb_plugin_dir . '/premium/';
|
51 |
-
if (file_exists ( $wppb_premiumStyle.'premium.php' )){
|
52 |
-
?>
|
53 |
-
<option value="white" <?php if ($wppb_showDefaultCss == 'white') echo 'selected';?>><?php _e('White', 'profilebuilder');?></option>
|
54 |
-
<option value="black" <?php if ($wppb_showDefaultCss == 'black') echo 'selected';?>><?php _e('Black', 'profilebuilder');?></option>
|
55 |
-
<?php
|
56 |
-
}
|
57 |
-
?>
|
58 |
-
<option value="no" <?php if ($wppb_showDefaultCss == 'no') echo 'selected';?>><?php _e('None', 'profilebuilder');?></option>
|
59 |
-
</select>
|
60 |
-
<div align="right">
|
61 |
-
<input type="hidden" name="action" value="update" />
|
62 |
-
<p class="submit">
|
63 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
64 |
-
</p>
|
65 |
-
</div>
|
66 |
-
</form>
|
67 |
-
|
68 |
-
|
69 |
-
<?php
|
70 |
-
}
|
71 |
-
?>
|
72 |
-
|
73 |
-
<?php
|
74 |
-
function display_admin_settings(){
|
75 |
-
?>
|
76 |
-
<form method="post" action="options.php#show-hide-admin-bar">
|
77 |
-
<?php $wppb_showAdminBar = get_option('wppb_display_admin_settings'); ?>
|
78 |
-
<?php settings_fields('wppb_display_admin_settings'); ?>
|
79 |
-
|
80 |
-
|
81 |
-
<h2><?php _e('Show/Hide the Admin Bar on Front End', 'profilebuilder');?></h2>
|
82 |
-
<h3><?php _e('Show/Hide the Admin Bar on Front End', 'profilebuilder');?></h3>
|
83 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
84 |
-
<thead>
|
85 |
-
<tr>
|
86 |
-
<th class="manage-column" scope="col"><b><?php _e('User-group', 'profilebuilder');?></b></th>
|
87 |
-
<th class="manage-column" scope="col"><b><?php _e('Visibility', 'profilebuilder');?></b></th>
|
88 |
-
</tr>
|
89 |
-
</thead>
|
90 |
-
<tbody>
|
91 |
-
<?php
|
92 |
-
foreach($wppb_showAdminBar as $key => $data){
|
93 |
-
echo'<tr>
|
94 |
-
<td>
|
95 |
-
<font size="2">'.$key.'</font>
|
96 |
-
</td>
|
97 |
-
<td>
|
98 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="show"';if ($wppb_showAdminBar[$key] == 'show') echo ' checked';echo'/><font size="1">'; _e('Show', 'profilebuilder'); echo'</font><span style="padding-left:20px"></span>
|
99 |
-
<input type="radio" name="wppb_display_admin_settings['.$key.']" value="hide"';if ($wppb_showAdminBar[$key] == 'hide') echo ' checked';echo'/><font size="1">'; _e('Hide', 'profilebuilder'); echo'</font>
|
100 |
-
</td>
|
101 |
-
</tr>';
|
102 |
-
}
|
103 |
-
?>
|
104 |
-
|
105 |
-
</table>
|
106 |
-
<div align="right">
|
107 |
-
<input type="hidden" name="action" value="update" />
|
108 |
-
<p class="submit">
|
109 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
110 |
-
</p>
|
111 |
-
</div>
|
112 |
-
</form>
|
113 |
-
|
114 |
-
|
115 |
-
<?php
|
116 |
-
}
|
117 |
-
?>
|
118 |
-
|
119 |
-
<?php
|
120 |
-
function default_settings(){
|
121 |
-
?>
|
122 |
-
<form method="post" action="options.php#default-fields">
|
123 |
-
<?php $wppb_defaultOptions = get_option('wppb_default_settings'); ?>
|
124 |
-
<?php settings_fields('wppb_option_group'); ?>
|
125 |
-
|
126 |
-
|
127 |
-
<h2><?php _e('Default Profile Fields', 'profilebuilder');?></h2>
|
128 |
-
<h3><?php _e('Default Profile Fields', 'profilebuilder');?></h3>
|
129 |
-
<table class="wp-list-table widefat fixed pages" cellspacing="0">
|
130 |
-
<thead>
|
131 |
-
<tr>
|
132 |
-
<th class="manage-column" scope="col" id="firstColumn"><b><?php _e('Input Field Name', 'profilebuilder');?></b></th>
|
133 |
-
<th class="manage-column" scope="col" id="secondColumn"><b><?php _e('Visibility', 'profilebuilder');?></b></th>
|
134 |
-
<th class="manage-column" scope="col" id="thirdColumn"><b><?php _e('Required', 'profilebuilder');?></b></th>
|
135 |
-
</tr>
|
136 |
-
</thead>
|
137 |
-
<tbody class="plugins" >
|
138 |
-
<tr>
|
139 |
-
<td colspan="3"><font size="4"><?php _e('Name:', 'profilebuilder');?></font></td>
|
140 |
-
</tr>
|
141 |
-
</tbody>
|
142 |
-
<tbody>
|
143 |
-
<tr>
|
144 |
-
<td>
|
145 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('Username', 'profilebuilder');?></font>
|
146 |
-
</td>
|
147 |
-
<td>
|
148 |
-
<input type="radio" name="wppb_default_settings[username]" value="show" checked /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
149 |
-
<input type="radio" name="wppb_default_settings[username]" value="hide" disabled /><font size="1" color="grey"><?php _e('Hide', 'profilebuilder');?></font>
|
150 |
-
</td>
|
151 |
-
<td>
|
152 |
-
<input type="radio" name="wppb_default_settings[usernameRequired]" value="yes" checked /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
153 |
-
<input type="radio" name="wppb_default_settings[usernameRequired]" value="no" disabled /><font size="1" color="grey"><?php _e('No', 'profilebuilder');?></font>
|
154 |
-
</td>
|
155 |
-
</tr>
|
156 |
-
<tr>
|
157 |
-
<td>
|
158 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('First Name', 'profilebuilder');?></font>
|
159 |
-
</td>
|
160 |
-
<td>
|
161 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="show" <?php if ($wppb_defaultOptions['firstname'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
162 |
-
<input type="radio" name="wppb_default_settings[firstname]" value="hide" <?php if ($wppb_defaultOptions['firstname'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
163 |
-
</td>
|
164 |
-
<td>
|
165 |
-
<input type="radio" name="wppb_default_settings[firstnameRequired]" value="yes" <?php if ($wppb_defaultOptions['firstnameRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
166 |
-
<input type="radio" name="wppb_default_settings[firstnameRequired]" value="no" <?php if ($wppb_defaultOptions['firstnameRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
167 |
-
</td>
|
168 |
-
</tr>
|
169 |
-
<tr>
|
170 |
-
<td>
|
171 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('Last Name', 'profilebuilder');?></font>
|
172 |
-
</td>
|
173 |
-
<td>
|
174 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="show" <?php if ($wppb_defaultOptions['lastname'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
175 |
-
<input type="radio" name="wppb_default_settings[lastname]" value="hide" <?php if ($wppb_defaultOptions['lastname'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
176 |
-
</td>
|
177 |
-
<td>
|
178 |
-
<input type="radio" name="wppb_default_settings[lastnameRequired]" value="yes" <?php if ($wppb_defaultOptions['lastnameRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
179 |
-
<input type="radio" name="wppb_default_settings[lastnameRequired]" value="no" <?php if ($wppb_defaultOptions['lastnameRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
180 |
-
</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td>
|
184 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('Nickname', 'profilebuilder');?></font>
|
185 |
-
</td>
|
186 |
-
<td>
|
187 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="show" <?php if ($wppb_defaultOptions['nickname'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
188 |
-
<input type="radio" name="wppb_default_settings[nickname]" value="hide" <?php if ($wppb_defaultOptions['nickname'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
189 |
-
</td>
|
190 |
-
<td>
|
191 |
-
<input type="radio" name="wppb_default_settings[nicknameRequired]" value="yes" <?php if ($wppb_defaultOptions['nicknameRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
192 |
-
<input type="radio" name="wppb_default_settings[nicknameRequired]" value="no" <?php if ($wppb_defaultOptions['nicknameRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
193 |
-
</td>
|
194 |
-
</tr>
|
195 |
-
<tr>
|
196 |
-
<td>
|
197 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('Display name publicly as...', 'profilebuilder');?></font>
|
198 |
-
</td>
|
199 |
-
<td>
|
200 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="show" <?php if ($wppb_defaultOptions['dispname'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
201 |
-
<input type="radio" name="wppb_default_settings[dispname]" value="hide" <?php if ($wppb_defaultOptions['dispname'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
202 |
-
</td>
|
203 |
-
<td>
|
204 |
-
<input type="radio" name="wppb_default_settings[dispnameRequired]" value="yes" <?php if ($wppb_defaultOptions['dispnameRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
205 |
-
<input type="radio" name="wppb_default_settings[dispnameRequired]" value="no" <?php if ($wppb_defaultOptions['dispnameRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
206 |
-
</td>
|
207 |
-
</tr>
|
208 |
-
<tbody class="plugins">
|
209 |
-
<tr>
|
210 |
-
<td colspan="3"><font size="4"><?php _e('Contact Info:', 'profilebuilder');?></font></td>
|
211 |
-
</tr>
|
212 |
-
</tbody>
|
213 |
-
<tbody>
|
214 |
-
<tr>
|
215 |
-
<td>
|
216 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('E-mail', 'profilebuilder');?></font>
|
217 |
-
</td>
|
218 |
-
<td>
|
219 |
-
<input type="radio" name="wppb_default_settings[email]" value="show" checked><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
220 |
-
<input type="radio" name="wppb_default_settings[email]" value="hide" disabled><font size="1" color="grey"><?php _e('Hide', 'profilebuilder');?></font>
|
221 |
-
</td>
|
222 |
-
<td>
|
223 |
-
<input type="radio" name="wppb_default_settings[emailRequired]" value="yes" checked /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
224 |
-
<input type="radio" name="wppb_default_settings[emailRequired]" value="no" disabled /><font size="1" color="grey"><?php _e('No', 'profilebuilder');?></font>
|
225 |
-
</td>
|
226 |
-
</tr>
|
227 |
-
<tr>
|
228 |
-
<td>
|
229 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('Website', 'profilebuilder');?></font>
|
230 |
-
</td>
|
231 |
-
<td>
|
232 |
-
<input type="radio" name="wppb_default_settings[website]" value="show" <?php if ($wppb_defaultOptions['website'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
233 |
-
<input type="radio" name="wppb_default_settings[website]" value="hide" <?php if ($wppb_defaultOptions['website'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
234 |
-
</td>
|
235 |
-
<td>
|
236 |
-
<input type="radio" name="wppb_default_settings[websiteRequired]" value="yes" <?php if ($wppb_defaultOptions['websiteRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
237 |
-
<input type="radio" name="wppb_default_settings[websiteRequired]" value="no" <?php if ($wppb_defaultOptions['websiteRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
238 |
-
</td>
|
239 |
-
</tr>
|
240 |
-
<tbody class="plugins">
|
241 |
-
</tbody>
|
242 |
-
<tbody>
|
243 |
-
<tr>
|
244 |
-
<td>
|
245 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('AIM', 'profilebuilder');?></font>
|
246 |
-
</td>
|
247 |
-
<td>
|
248 |
-
<input type="radio" name="wppb_default_settings[aim]" value="show" <?php if ($wppb_defaultOptions['aim'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
249 |
-
<input type="radio" name="wppb_default_settings[aim]" value="hide" <?php if ($wppb_defaultOptions['aim'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
250 |
-
</td>
|
251 |
-
<td>
|
252 |
-
<input type="radio" name="wppb_default_settings[aimRequired]" value="yes" <?php if ($wppb_defaultOptions['aimRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
253 |
-
<input type="radio" name="wppb_default_settings[aimRequired]" value="no" <?php if ($wppb_defaultOptions['aimRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
254 |
-
</td>
|
255 |
-
</tr>
|
256 |
-
<tr>
|
257 |
-
<td>
|
258 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('Yahoo IM', 'profilebuilder');?></font>
|
259 |
-
</td>
|
260 |
-
<td>
|
261 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="show" <?php if ($wppb_defaultOptions['yahoo'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
262 |
-
<input type="radio" name="wppb_default_settings[yahoo]" value="hide" <?php if ($wppb_defaultOptions['yahoo'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
263 |
-
</td>
|
264 |
-
<td>
|
265 |
-
<input type="radio" name="wppb_default_settings[yahooRequired]" value="yes" <?php if ($wppb_defaultOptions['yahooRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
266 |
-
<input type="radio" name="wppb_default_settings[yahooRequired]" value="no" <?php if ($wppb_defaultOptions['yahooRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
267 |
-
</td>
|
268 |
-
</tr>
|
269 |
-
<tr>
|
270 |
-
<td>
|
271 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('Jabber / Google Talk', 'profilebuilder');?></font>
|
272 |
-
</td>
|
273 |
-
<td>
|
274 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="show" <?php if ($wppb_defaultOptions['jabber'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
275 |
-
<input type="radio" name="wppb_default_settings[jabber]" value="hide" <?php if ($wppb_defaultOptions['jabber'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
276 |
-
</td>
|
277 |
-
<td>
|
278 |
-
<input type="radio" name="wppb_default_settings[jabberRequired]" value="yes" <?php if ($wppb_defaultOptions['jabberRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
279 |
-
<input type="radio" name="wppb_default_settings[jabberRequired]" value="no" <?php if ($wppb_defaultOptions['jabberRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
280 |
-
</td>
|
281 |
-
</tr>
|
282 |
-
<tbody class="plugins">
|
283 |
-
<tr>
|
284 |
-
<td colspan="3"><font size="4"><?php _e('About Yourself:', 'profilebuilder');?></font></td>
|
285 |
-
</tr>
|
286 |
-
</tbody>
|
287 |
-
<tbody>
|
288 |
-
<tr>
|
289 |
-
<td>
|
290 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('Biographical Info', 'profilebuilder');?></font>
|
291 |
-
</td>
|
292 |
-
<td>
|
293 |
-
<input type="radio" name="wppb_default_settings[bio]" value="show" <?php if ($wppb_defaultOptions['bio'] == 'show') echo 'checked';?> /><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
294 |
-
<input type="radio" name="wppb_default_settings[bio]" value="hide" <?php if ($wppb_defaultOptions['bio'] == 'hide') echo 'checked';?> /><font size="1"><?php _e('Hide', 'profilebuilder');?></font>
|
295 |
-
</td>
|
296 |
-
<td>
|
297 |
-
<input type="radio" name="wppb_default_settings[bioRequired]" value="yes" <?php if ($wppb_defaultOptions['bioRequired'] == 'yes') echo 'checked';?> /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
298 |
-
<input type="radio" name="wppb_default_settings[bioRequired]" value="no" <?php if ($wppb_defaultOptions['bioRequired'] == 'no') echo 'checked';?> /><font size="1"><?php _e('No', 'profilebuilder');?></font>
|
299 |
-
</td>
|
300 |
-
</tr>
|
301 |
-
<tbody>
|
302 |
-
<tr>
|
303 |
-
<td>
|
304 |
-
<span style="padding-left:50px"></span><font size="2"><?php _e('New Password', 'profilebuilder');?></font>
|
305 |
-
</td>
|
306 |
-
<td>
|
307 |
-
<input type="radio" name="wppb_default_settings[password]" value="show" checked><font size="1"><?php _e('Show', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
308 |
-
<input type="radio" name="wppb_default_settings[password]" value="hide" disabled><font size="1" color="grey"><?php _e('Hide', 'profilebuilder');?></font>
|
309 |
-
</td>
|
310 |
-
<td>
|
311 |
-
<input type="radio" name="wppb_default_settings[passwordRequired]" value="yes" checked /><font size="1"><?php _e('Yes', 'profilebuilder');?></font><span style="padding-left:20px"></span>
|
312 |
-
<input type="radio" name="wppb_default_settings[passwordRequired]" value="no" disabled /><font size="1" color="grey"><?php _e('No', 'profilebuilder');?></font>
|
313 |
-
</td>
|
314 |
-
</tr>
|
315 |
-
</tbody>
|
316 |
-
</table>
|
317 |
-
<div align="right">
|
318 |
-
<input type="hidden" name="action" value="update" />
|
319 |
-
<p class="submit">
|
320 |
-
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
|
321 |
-
</p>
|
322 |
-
</form>
|
323 |
-
</div>
|
324 |
-
|
325 |
-
<?php
|
326 |
-
}
|
327 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/front-end/options.php
DELETED
@@ -1,146 +0,0 @@
|
|
1 |
-
<!--
|
2 |
-
Original Plugin Name: OptionTree
|
3 |
-
Original Plugin URI: http://wp.envato.com
|
4 |
-
Original Author: Derek Herman
|
5 |
-
Original Author URI: http://valendesigns.com
|
6 |
-
-->
|
7 |
-
<?php if (!defined('ProfileBuilderVersion')) exit('No direct script access allowed'); ?>
|
8 |
-
<?php require_once('menu.file.php'); ?>
|
9 |
-
|
10 |
-
<div id="framework_wrap" class="wrap">
|
11 |
-
|
12 |
-
<div id="header">
|
13 |
-
<h1>Profile Builder</h1>
|
14 |
-
<span class="icon"> </span>
|
15 |
-
<div class="version">
|
16 |
-
<?php echo 'Version ' . ProfileBuilderVersion; ?>
|
17 |
-
</div>
|
18 |
-
</div>
|
19 |
-
|
20 |
-
<div id="content_wrap">
|
21 |
-
|
22 |
-
<?php
|
23 |
-
$wppb_premium = wppb_plugin_dir . '/premium/';
|
24 |
-
if (!file_exists ( $wppb_premium.'premium.php' )){
|
25 |
-
?>
|
26 |
-
<div class="info basic-version-info">
|
27 |
-
<img src="<?php echo wppb_plugin_url ?>/assets/images/ad_image.png" alt="Profile Builder Pro" />
|
28 |
-
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
29 |
-
<input type="hidden" name="cmd" value="_s-xclick">
|
30 |
-
<input type="hidden" name="hosted_button_id" value="3J62P8ZXKFJM4">
|
31 |
-
<input type="image" src="http://beta.cozmoslabs.com/wp-content/plugins/reflection-media-subscriber/includes/icons/buy_now_button.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
32 |
-
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
33 |
-
</form>
|
34 |
-
<a href="http://www.cozmoslabs.com/wordpress-profile-builder/">Or Learn More</a>
|
35 |
-
|
36 |
-
</div>
|
37 |
-
<?php
|
38 |
-
}
|
39 |
-
?>
|
40 |
-
<div class="info top-info"></div>
|
41 |
-
|
42 |
-
<?php $wppb_premium = wppb_plugin_dir . '/premium/';
|
43 |
-
if (file_exists ( $wppb_premium.'premium.php' )){
|
44 |
-
echo '<div class="ajax-message';
|
45 |
-
if ( isset( $message ) ) { echo ' show'; }
|
46 |
-
echo '">';
|
47 |
-
if ( isset( $message ) ) { echo $message; }
|
48 |
-
echo '</div>';
|
49 |
-
}
|
50 |
-
?>
|
51 |
-
|
52 |
-
<div id="content">
|
53 |
-
|
54 |
-
<div id="options_tabs">
|
55 |
-
|
56 |
-
<ul class="options_tabs">
|
57 |
-
<li><a href="#profile-builder"><?php _e('Basic Information','profilebuilder');?></a><span></span></li>
|
58 |
-
<li><a href="#plugin-layout"><?php _e('Plugin Layout','profilebuilder');?></a><span></span></li>
|
59 |
-
<li><a href="#show-hide-admin-bar"><?php _e('Show/Hide the Admin Bar on Front-end','profilebuilder');?></a><span></span></li>
|
60 |
-
<li><a href="#default-fields"><?php _e('Default Profile Fields','profilebuilder');?></a><span></span></li>
|
61 |
-
<?php
|
62 |
-
$wppb_premium = wppb_plugin_dir . '/premium/';
|
63 |
-
$wppb_addons = wppb_plugin_dir . '/premium/addon/';
|
64 |
-
|
65 |
-
if (file_exists ( $wppb_premium.'premium.php' )){
|
66 |
-
echo '<li><a href="#create-extra-fields">'; _e('Extra Profile Fields','profilebuilder'); echo'</a><span></span></li>';
|
67 |
-
}
|
68 |
-
if (file_exists ( $wppb_addons.'addon.php' )){
|
69 |
-
echo '<li><a href="#add-ons">'; _e('Addons','profilebuilder'); echo'</a><span></span></li>';
|
70 |
-
}
|
71 |
-
if (file_exists ( $wppb_premium.'premium.php' )){
|
72 |
-
echo '<li><a href="#register-profile-builder">'; _e('Register Your Version','profilebuilder'); echo'</a><span></span></li>';
|
73 |
-
}
|
74 |
-
?>
|
75 |
-
<?php
|
76 |
-
$addons_options_set = get_option('wppb_premium_addon_settings','not_found');
|
77 |
-
if ($addons_options_set != 'not_found'){
|
78 |
-
$addons_options_description = get_option('wppb_premium_addon_settings_description'); //fetch the descriptions array
|
79 |
-
foreach ($addons_options_set as $key => $value)
|
80 |
-
if ($value == 'show'){
|
81 |
-
echo '<li><a href="#'.$key.'">'; _e($addons_options_description[$key],'profilebuilder'); echo '</a><span></span></li>';
|
82 |
-
}
|
83 |
-
}
|
84 |
-
?>
|
85 |
-
|
86 |
-
</ul>
|
87 |
-
<div id="profile-builder" class="block">
|
88 |
-
<?php basic_info(); ?>
|
89 |
-
</div>
|
90 |
-
|
91 |
-
<div id="plugin-layout" class="block">
|
92 |
-
<?php plugin_layout(); ?>
|
93 |
-
</div>
|
94 |
-
|
95 |
-
|
96 |
-
<div id="show-hide-admin-bar" class="block has-table">
|
97 |
-
<?php display_admin_settings(); ?>
|
98 |
-
</div>
|
99 |
-
|
100 |
-
<div id="default-fields" class="block has-table">
|
101 |
-
<?php default_settings(); ?>
|
102 |
-
</div>
|
103 |
-
|
104 |
-
<?php $wppb_premium = wppb_plugin_dir . '/premium/';
|
105 |
-
if (file_exists ( $wppb_premium.'premium.php' )){
|
106 |
-
require_once($wppb_premium.'premium.php');
|
107 |
-
echo '<div id="create-extra-fields" class="block has-table">';
|
108 |
-
custom_settings();
|
109 |
-
echo '</div>';
|
110 |
-
echo '<div id="register-profile-builder" class="block">';
|
111 |
-
register_profile_builder();
|
112 |
-
echo '</div>';
|
113 |
-
}
|
114 |
-
?>
|
115 |
-
|
116 |
-
<?php $wppb_addons = wppb_plugin_dir . '/premium/addon/';
|
117 |
-
if (file_exists ( $wppb_addons.'addon.php' )){
|
118 |
-
require_once($wppb_addons.'addon.php');
|
119 |
-
echo '<div id="add-ons" class="block has-table">';
|
120 |
-
displayAddons();
|
121 |
-
echo '</div>';
|
122 |
-
|
123 |
-
$addons_options_set = get_option('wppb_premium_addon_settings','not_found');
|
124 |
-
if ($addons_options_set != 'not_found'){
|
125 |
-
foreach ($addons_options_set as $key => $value)
|
126 |
-
if ($value == 'show'){
|
127 |
-
echo '<div id="'.$key.'" class="block has-table">';
|
128 |
-
$key();
|
129 |
-
echo '</div>';
|
130 |
-
}
|
131 |
-
}
|
132 |
-
}
|
133 |
-
?>
|
134 |
-
|
135 |
-
<br class="clear" />
|
136 |
-
|
137 |
-
</div>
|
138 |
-
|
139 |
-
</div>
|
140 |
-
|
141 |
-
<div class="info bottom"></div>
|
142 |
-
|
143 |
-
</div>
|
144 |
-
|
145 |
-
</div>
|
146 |
-
<!-- [END] framework_wrap -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/front-end/wppb.edit.profile.php
DELETED
@@ -1,935 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
wp_update_user only attempts to clear and reset cookies if it's updating the password.
|
4 |
-
The php function setcookie(), used in both the cookie-clearing and cookie-resetting functions,
|
5 |
-
adds to the page headers and therefore must be called within the first php tag on the page, and
|
6 |
-
before the WordPress get_header() function. Since wp_update_user needs this, it must be at the
|
7 |
-
beginning of the page as well.
|
8 |
-
*/
|
9 |
-
$changesSaved = 'no';
|
10 |
-
$changesSavedNoMatchingPass = 'no';
|
11 |
-
$changesSavedNoPass = 'no';
|
12 |
-
|
13 |
-
function wppb_save_the_password(){
|
14 |
-
global $changesSaved;
|
15 |
-
global $changesSavedNoMatchingPass;
|
16 |
-
global $changesSavedNoPass;
|
17 |
-
|
18 |
-
/* Load registration file. */
|
19 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
20 |
-
/* Get user info. */
|
21 |
-
global $current_user;
|
22 |
-
|
23 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
24 |
-
/* Update user password. */
|
25 |
-
if ( !empty($_POST['pass1'] ) && !empty( $_POST['pass2'] ) ) {
|
26 |
-
if ( $_POST['pass1'] == $_POST['pass2'] )
|
27 |
-
{
|
28 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_pass' => esc_attr( $_POST['pass1'] ) ) );
|
29 |
-
$changesSaved = 'yes';
|
30 |
-
} else {
|
31 |
-
$changesSavedNoMatchingPass = 'yes';
|
32 |
-
}
|
33 |
-
}elseif (( empty($_POST['pass1'] ) && !empty( $_POST['pass2'] )) || ( !empty($_POST['pass1'] ) && empty( $_POST['pass2'] )) ) {
|
34 |
-
$changesSavedNoPass = 'yes';
|
35 |
-
}
|
36 |
-
}
|
37 |
-
}
|
38 |
-
add_action('init', 'wppb_save_the_password');
|
39 |
-
|
40 |
-
function wppb_front_end_profile_info() {
|
41 |
-
|
42 |
-
global $changesSaved;
|
43 |
-
global $changesSavedNoMatchingPass;
|
44 |
-
global $changesSavedNoPass;
|
45 |
-
$editProfileFilterArray = array();
|
46 |
-
$extraFieldsErrorHolder = array(); //we will use this array to store the ID's of the extra-fields left uncompleted
|
47 |
-
|
48 |
-
ob_start();
|
49 |
-
get_currentuserinfo();
|
50 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
51 |
-
$changesSavedNoEmail = 'no';
|
52 |
-
$changesSavedNoEmailExist = 'no';
|
53 |
-
$previousError = 'no';
|
54 |
-
$pictureUpload = 'no';
|
55 |
-
$avatarUpload = 'yes';
|
56 |
-
$allRequiredCompleted = 'yes';
|
57 |
-
$uploadName = array();
|
58 |
-
$uploadSize = array();
|
59 |
-
$editFilterArray = array();
|
60 |
-
|
61 |
-
|
62 |
-
/* Load registration file. */
|
63 |
-
require_once(ABSPATH . WPINC . '/registration.php');
|
64 |
-
/* Get user info. */
|
65 |
-
global $current_user;
|
66 |
-
|
67 |
-
/* delete the attachment if set */
|
68 |
-
if (isset($_GET['userID']) && isset($_GET['field'])){
|
69 |
-
update_user_meta( $_GET['userID'], $_GET['field'], '');
|
70 |
-
}
|
71 |
-
/* delete the avatar */
|
72 |
-
if (isset($_GET['userID']) && isset($_GET['fieldOriginal']) && isset($_GET['fieldResized'])){
|
73 |
-
update_user_meta( $_GET['userID'], $_GET['fieldOriginal'], '');
|
74 |
-
update_user_meta( $_GET['userID'], $_GET['fieldResized'], '');
|
75 |
-
}
|
76 |
-
|
77 |
-
//fallback if the file was largen then post_max_size, case in which no errors can be saved in $_FILES[fileName]['error']
|
78 |
-
if (empty($_FILES) && empty($_POST) && isset($_SERVER['REQUEST_METHOD']) && strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
|
79 |
-
$editProfileFilterArray['noPost'] = '
|
80 |
-
<p class="error">'.
|
81 |
-
__('The information size you were trying to submit was larger than', 'profilebuilder') .' '. ServerMaxUploadSizeMega .'b!<br/>'.
|
82 |
-
__('This is usually caused by a large file(s) trying to be uploaded.', 'profilebuilder') .'<br/>'.
|
83 |
-
__('Since it was also larger than', 'profilebuilder') .' '. ServerMaxPostSizeMega .'b '. __('no additional information is available.', 'profilebuilder') .'<br/>
|
84 |
-
</p>';
|
85 |
-
$editProfileFilterArray['noPost'] = apply_filters('wppb_edit_profile_no_post_error', $editProfileFilterArray['noPost']);
|
86 |
-
echo $editProfileFilterArray['noPost'];
|
87 |
-
}
|
88 |
-
// a way to catch the user before updating his/her profile without completing a required field
|
89 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'update-user' && wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user') ) {
|
90 |
-
//variable to control whether the user submitted data or not
|
91 |
-
|
92 |
-
$allRequiredCompleted = apply_filters('wppb_edit_profile_all_required_completed', $allRequiredCompleted);
|
93 |
-
}
|
94 |
-
|
95 |
-
/* If profile was saved, update profile. */
|
96 |
-
if ( ('POST' == $_SERVER['REQUEST_METHOD']) && (!empty( $_POST['action'] )) && ($_POST['action'] == 'update-user') && (wp_verify_nonce($_POST['edit_nonce_field'],'verify_edit_user')) && ($allRequiredCompleted == 'yes') ) {
|
97 |
-
|
98 |
-
$_POST['email'] = apply_filters('wppb_edit_profile_posted_email', $_POST['email']);
|
99 |
-
if ($wppb_defaultOptions['emailRequired'] == 'yes'){
|
100 |
-
if ((trim($_POST['email']) != '') && isset($_POST['email'])){
|
101 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
102 |
-
$thisEmail = email_exists( $_POST['email'] );
|
103 |
-
else $thisEmail = $current_user->id;
|
104 |
-
|
105 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
106 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
107 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
108 |
-
$changesSaved = 'yes';
|
109 |
-
}else{
|
110 |
-
$changesSavedNoEmailExist = 'yes';
|
111 |
-
}
|
112 |
-
}else{
|
113 |
-
$changesSavedNoEmail = 'yes';
|
114 |
-
}
|
115 |
-
}
|
116 |
-
}else{
|
117 |
-
if (email_exists( $_POST['email'] ) != FALSE)
|
118 |
-
$thisEmail = email_exists( $_POST['email'] );
|
119 |
-
else $thisEmail = $current_user->id;
|
120 |
-
|
121 |
-
if ( !empty( $_POST['email'] ) && is_email( $_POST['email'] )){ // if the user entered a valid email address
|
122 |
-
if (($thisEmail == $current_user->id)){ // if the entered email address is not already registered to some other user
|
123 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_email' => esc_attr( $_POST['email'] )));
|
124 |
-
$changesSaved = 'yes';
|
125 |
-
}else{
|
126 |
-
$changesSavedNoEmailExist = 'yes';
|
127 |
-
}
|
128 |
-
}else{
|
129 |
-
$changesSavedNoEmail = 'yes';
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
|
134 |
-
/* Update user information. */
|
135 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
136 |
-
$_POST['first_name'] = apply_filters('wppb_edit_profile_posted_first_name', $_POST['first_name']);
|
137 |
-
if ($wppb_defaultOptions['firstnameRequired'] == 'yes'){
|
138 |
-
if ((trim($_POST['first_name']) != '') && isset($_POST['first_name'])){
|
139 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
140 |
-
$changesSaved = 'yes';
|
141 |
-
}
|
142 |
-
}else{
|
143 |
-
wp_update_user( array( 'ID' => $current_user->id, 'first_name' => esc_attr( $_POST['first_name'] )));
|
144 |
-
$changesSaved = 'yes';
|
145 |
-
}
|
146 |
-
}
|
147 |
-
|
148 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
149 |
-
$_POST['last_name'] = apply_filters('wppb_edit_profile_posted_last_name', $_POST['last_name']);
|
150 |
-
if ($wppb_defaultOptions['lastnameRequired'] == 'yes'){
|
151 |
-
if ((trim($_POST['last_name']) != '') && isset($_POST['last_name'])){
|
152 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
153 |
-
$changesSaved = 'yes';
|
154 |
-
}
|
155 |
-
}else{
|
156 |
-
wp_update_user( array( 'ID' => $current_user->id, 'last_name' => esc_attr( $_POST['last_name'] )));
|
157 |
-
$changesSaved = 'yes';
|
158 |
-
}
|
159 |
-
}
|
160 |
-
|
161 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
162 |
-
$_POST['nickname'] = apply_filters('wppb_edit_profile_posted_nickname', $_POST['nickname']);
|
163 |
-
if ($wppb_defaultOptions['nicknameRequired'] == 'yes'){
|
164 |
-
if ((trim($_POST['nickname']) != '') && isset($_POST['nickname'])){
|
165 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
166 |
-
$changesSaved = 'yes';
|
167 |
-
}
|
168 |
-
}else{
|
169 |
-
wp_update_user( array( 'ID' => $current_user->id, 'nickname' => esc_attr( $_POST['nickname'] )));
|
170 |
-
$changesSaved = 'yes';
|
171 |
-
}
|
172 |
-
|
173 |
-
}
|
174 |
-
|
175 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
176 |
-
$_POST['display_name'] = apply_filters('wppb_edit_profile_posted_display_name', $_POST['display_name']);
|
177 |
-
if ($wppb_defaultOptions['dispnameRequired'] == 'yes'){
|
178 |
-
if ((trim($_POST['display_name']) != '') && isset($_POST['display_name'])){
|
179 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
180 |
-
$changesSaved = 'yes';
|
181 |
-
}
|
182 |
-
}else{
|
183 |
-
wp_update_user( array( 'ID' => $current_user->id, 'display_name' => esc_attr( $_POST['display_name'] )));
|
184 |
-
$changesSaved = 'yes';
|
185 |
-
}
|
186 |
-
}
|
187 |
-
|
188 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
189 |
-
$_POST['website'] = apply_filters('wppb_edit_profile_posted_website', $_POST['website']);
|
190 |
-
if ($wppb_defaultOptions['websiteRequired'] == 'yes'){
|
191 |
-
if ((trim($_POST['website']) != '') && isset($_POST['website'])){
|
192 |
-
$wppbPos = strpos($_POST['website'], 'http://');
|
193 |
-
if($wppbPos !== FALSE){
|
194 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => esc_attr( $_POST['website'] )));
|
195 |
-
$changesSaved = 'yes';
|
196 |
-
}else{
|
197 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => 'http://'.esc_attr( $_POST['website'] )));
|
198 |
-
$changesSaved = 'yes';
|
199 |
-
}
|
200 |
-
}
|
201 |
-
}else{
|
202 |
-
$wppbPos = strpos($_POST['website'], 'http://');
|
203 |
-
$website = esc_attr( $_POST['website'] );
|
204 |
-
if($wppbPos !== FALSE){
|
205 |
-
if ($website == 'http://')
|
206 |
-
$website = '';
|
207 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => $website));
|
208 |
-
$changesSaved = 'yes';
|
209 |
-
}else{
|
210 |
-
if ($website != '')
|
211 |
-
$website = 'http://'.$website;
|
212 |
-
wp_update_user( array( 'ID' => $current_user->id, 'user_url' => $website));
|
213 |
-
$changesSaved = 'yes';
|
214 |
-
}
|
215 |
-
}
|
216 |
-
}
|
217 |
-
|
218 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
219 |
-
$_POST['aim'] = apply_filters('wppb_edit_profile_posted_aim', $_POST['aim']);
|
220 |
-
if ($wppb_defaultOptions['aimRequired'] == 'yes'){
|
221 |
-
if ((trim($_POST['aim']) != '') && isset($_POST['aim'])){
|
222 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
223 |
-
$changesSaved = 'yes';
|
224 |
-
}
|
225 |
-
}else{
|
226 |
-
update_user_meta( $current_user->id, 'aim', esc_attr( $_POST['aim'] ) );
|
227 |
-
$changesSaved = 'yes';
|
228 |
-
}
|
229 |
-
}
|
230 |
-
|
231 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
232 |
-
$_POST['yim'] = apply_filters('wppb_edit_profile_posted_yahoo', $_POST['yim']);
|
233 |
-
if ($wppb_defaultOptions['yahooRequired'] == 'yes'){
|
234 |
-
if ((trim($_POST['yim']) != '') && isset($_POST['yim'])){
|
235 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
236 |
-
$changesSaved = 'yes';
|
237 |
-
}
|
238 |
-
}else{
|
239 |
-
update_user_meta( $current_user->id, 'yim', esc_attr( $_POST['yim'] ) );
|
240 |
-
$changesSaved = 'yes';
|
241 |
-
}
|
242 |
-
}
|
243 |
-
|
244 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
245 |
-
$_POST['jabber'] = apply_filters('wppb_edit_profile_posted_jabber', $_POST['jabber']);
|
246 |
-
if ($wppb_defaultOptions['jabberRequired'] == 'yes'){
|
247 |
-
if ((trim($_POST['jabber']) != '') && isset($_POST['jabber'])){
|
248 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
249 |
-
$changesSaved = 'yes';
|
250 |
-
}
|
251 |
-
}else{
|
252 |
-
update_user_meta( $current_user->id, 'jabber', esc_attr( $_POST['jabber'] ) );
|
253 |
-
$changesSaved = 'yes';
|
254 |
-
}
|
255 |
-
}
|
256 |
-
|
257 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
258 |
-
$_POST['description'] = apply_filters('wppb_edit_profile_posted_bio', $_POST['description']);
|
259 |
-
if ($wppb_defaultOptions['bioRequired'] == 'yes'){
|
260 |
-
if ((trim($_POST['description']) != '') && isset($_POST['description'])){
|
261 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
262 |
-
$changesSaved = 'yes';
|
263 |
-
}
|
264 |
-
}else{
|
265 |
-
update_user_meta( $current_user->id, 'description', esc_attr( $_POST['description'] ) );
|
266 |
-
$changesSaved = 'yes';
|
267 |
-
}
|
268 |
-
}
|
269 |
-
|
270 |
-
/* update the extra profile information */
|
271 |
-
$wppb_premium = wppb_plugin_dir . '/premium/functions/';
|
272 |
-
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
273 |
-
$wppbFetchArray = get_option('wppb_custom_fields');
|
274 |
-
foreach ( $wppbFetchArray as $key => $value){
|
275 |
-
switch ($value['item_type']) {
|
276 |
-
case "input":{
|
277 |
-
$_POST[$value['item_id'].$value['id']] = apply_filters('wppb_edit_profile_input_custom_field_'.$value['id'], $_POST[$value['item_id'].$value['id']]);
|
278 |
-
if ($value['item_required'] != null){
|
279 |
-
if ($value['item_required'] == 'yes'){
|
280 |
-
if (trim($_POST[$value['item_id'].$value['id']]) != '')
|
281 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
282 |
-
else
|
283 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
284 |
-
}
|
285 |
-
}else
|
286 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
287 |
-
|
288 |
-
break;
|
289 |
-
}
|
290 |
-
case "hiddenInput":{
|
291 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
292 |
-
|
293 |
-
break;
|
294 |
-
}
|
295 |
-
case "checkbox":{
|
296 |
-
$checkboxOption = '';
|
297 |
-
$checkboxValue = explode(',', $value['item_options']);
|
298 |
-
foreach($checkboxValue as $thisValue){
|
299 |
-
$thisValue = str_replace(' ', '#@space@#', $thisValue); //we need to escape the space-codification we sent earlier in the post
|
300 |
-
if (isset($_POST[$thisValue.$value['id']])){
|
301 |
-
$localValue = str_replace('#@space@#', ' ', $_POST[$thisValue.$value['id']]);
|
302 |
-
$checkboxOption = $checkboxOption.$localValue.',';
|
303 |
-
}
|
304 |
-
}
|
305 |
-
|
306 |
-
if ($value['item_required'] != null){
|
307 |
-
if ($value['item_required'] == 'yes'){
|
308 |
-
if (trim($checkboxOption) != '')
|
309 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $checkboxOption ) );
|
310 |
-
else
|
311 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
312 |
-
}
|
313 |
-
}else
|
314 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $checkboxOption ) );
|
315 |
-
|
316 |
-
break;
|
317 |
-
}
|
318 |
-
case "radio":{
|
319 |
-
if ($value['item_required'] != null){
|
320 |
-
if ($value['item_required'] == 'yes'){
|
321 |
-
if (trim($_POST[$value['item_id'].$value['id']]) != '')
|
322 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
323 |
-
else
|
324 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
325 |
-
}
|
326 |
-
}
|
327 |
-
break;
|
328 |
-
}
|
329 |
-
case "select":{
|
330 |
-
if ($value['item_required'] != null){
|
331 |
-
if ($value['item_required'] == 'yes'){
|
332 |
-
if (trim($_POST[$value['item_id'].$value['id']]) != '')
|
333 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
334 |
-
else
|
335 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
336 |
-
}
|
337 |
-
}
|
338 |
-
break;
|
339 |
-
}
|
340 |
-
case "countrySelect":{
|
341 |
-
if ($value['item_required'] != null){
|
342 |
-
if ($value['item_required'] == 'yes'){
|
343 |
-
if (trim($_POST[$value['item_id'].$value['id']]) != '')
|
344 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
345 |
-
else
|
346 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
347 |
-
}
|
348 |
-
}else
|
349 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
350 |
-
|
351 |
-
break;
|
352 |
-
}
|
353 |
-
case "timeZone":{
|
354 |
-
if ($value['item_required'] != null){
|
355 |
-
if ($value['item_required'] == 'yes'){
|
356 |
-
if (trim($_POST[$value['item_id'].$value['id']]) != '')
|
357 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
358 |
-
else
|
359 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
360 |
-
}
|
361 |
-
}else
|
362 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
363 |
-
|
364 |
-
break;
|
365 |
-
}
|
366 |
-
case "datepicker":{
|
367 |
-
if ($value['item_required'] != null){
|
368 |
-
if ($value['item_required'] == 'yes'){
|
369 |
-
if (trim($_POST[$value['item_id'].$value['id']]) != '')
|
370 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
371 |
-
else
|
372 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
373 |
-
}
|
374 |
-
}else
|
375 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
376 |
-
|
377 |
-
break;
|
378 |
-
}
|
379 |
-
case "textarea":{
|
380 |
-
if ($value['item_required'] != null){
|
381 |
-
if ($value['item_required'] == 'yes'){
|
382 |
-
if (trim($_POST[$value['item_id'].$value['id']]) != '')
|
383 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
384 |
-
else
|
385 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
386 |
-
}
|
387 |
-
}else
|
388 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], esc_attr( $_POST[$value['item_id'].$value['id']] ) );
|
389 |
-
|
390 |
-
break;
|
391 |
-
}
|
392 |
-
case "upload":{
|
393 |
-
$uploadedfile = $value['item_type'].$value['id'];
|
394 |
-
|
395 |
-
//first we need to verify if we don't try to upload a 0b or 0 length file
|
396 |
-
if ( (basename( $_FILES[$uploadedfile]['name']) != '')){
|
397 |
-
|
398 |
-
//second we need to verify if the uploaded file size is less then the set file size in php.ini
|
399 |
-
if (($_FILES[$uploadedfile]['size'] < ServerMaxUploadSizeByte) && ($_FILES[$uploadedfile]['size'] !=0)){
|
400 |
-
//we need to prepare the basename of the file, so that ' becomes ` as ' gives an error
|
401 |
-
$fileName = basename( $_FILES[$uploadedfile]['name']);
|
402 |
-
$finalFileName = '';
|
403 |
-
|
404 |
-
for ($i=0; $i < strlen($fileName); $i++){
|
405 |
-
if ($fileName[$i] == "'")
|
406 |
-
$finalFileName .= '`';
|
407 |
-
else $finalFileName .= $fileName[$i];
|
408 |
-
}
|
409 |
-
|
410 |
-
//create the target path for uploading
|
411 |
-
$target_path = "wp-content/uploads/profile_builder/attachments/";
|
412 |
-
$target_path = $target_path . 'userID_'.$current_user->id.'_attachment_'. $finalFileName;
|
413 |
-
|
414 |
-
if (move_uploaded_file($_FILES[$uploadedfile]['tmp_name'], $target_path)){
|
415 |
-
$upFile = get_bloginfo('home').'/'.$target_path;
|
416 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], $upFile);
|
417 |
-
$pictureUpload = 'yes';
|
418 |
-
}else{
|
419 |
-
//insert the name of the file in an array so that in case an error comes up, we know which files we just uploaded
|
420 |
-
array_push($uploadName, basename( $_FILES[$uploadedfile]['name']));
|
421 |
-
}
|
422 |
-
}else{
|
423 |
-
//insert the name of the file in an array so that in case an error comes up, we know which files we just uploaded
|
424 |
-
array_push($uploadName, basename( $_FILES[$uploadedfile]['name']));
|
425 |
-
}
|
426 |
-
}
|
427 |
-
break;
|
428 |
-
}
|
429 |
-
case "avatar":{
|
430 |
-
$avatarUpload = 'no';
|
431 |
-
$uploadedfile = $value['item_type'].$value['id'];
|
432 |
-
$target_path_original = "wp-content/uploads/profile_builder/avatars/";
|
433 |
-
$fileName = $_FILES[$uploadedfile]['name'];
|
434 |
-
$finalFileName = '';
|
435 |
-
|
436 |
-
for ($i=0; $i < strlen($fileName); $i++){
|
437 |
-
if ($fileName[$i] == "'")
|
438 |
-
$finalFileName .= '`';
|
439 |
-
elseif ($fileName[$i] == ' ')
|
440 |
-
$finalFileName .= '_';
|
441 |
-
else $finalFileName .= $fileName[$i];
|
442 |
-
}
|
443 |
-
|
444 |
-
$fileName = $finalFileName;
|
445 |
-
|
446 |
-
$target_path = $target_path_original . 'userID_'.$current_user->id.'_originalAvatar_'. $fileName;
|
447 |
-
$target_path_avatar = $target_path_original . 'userID_'.$current_user->id.'_resziedAvatarSize_'.$value['item_options'].'_orignalName_'.$fileName;
|
448 |
-
|
449 |
-
/* when trying to upload file, be sure it's one of the accepted image file-types */
|
450 |
-
if ( (($_FILES[$uploadedfile]['type'] == 'image/jpeg') || ($_FILES[$uploadedfile]['type'] == 'image/jpg') || ($_FILES[$uploadedfile]['type'] == 'image/png') || ($_FILES[$uploadedfile]['type'] == 'image/bmp') || ($_FILES[$uploadedfile]['type'] == 'image/pjpeg') || ($_FILES[$uploadedfile]['type'] == 'image/x-png')) && (($_FILES[$uploadedfile]['size'] < ServerMaxUploadSizeByte) && ($_FILES[$uploadedfile]['size'] !=0)) ){
|
451 |
-
$avatarUpload = 'yes';
|
452 |
-
$wp_filetype = wp_check_filetype(basename( $_FILES[$uploadedfile]['name']), null );
|
453 |
-
$attachment = array(
|
454 |
-
'post_mime_type' => $wp_filetype['type'],
|
455 |
-
'post_title' => $fileName,
|
456 |
-
'post_content' => '',
|
457 |
-
'post_status' => 'inherit'
|
458 |
-
);
|
459 |
-
|
460 |
-
|
461 |
-
$attach_id = wp_insert_attachment( $attachment, $target_path);
|
462 |
-
$attach_id_avatar = wp_insert_attachment( $attachment, $target_path_avatar);
|
463 |
-
|
464 |
-
$upFile = image_downsize( $attach_id, 'thumbnail' );
|
465 |
-
$upFile_avatar = image_downsize( $attach_id_avatar, 'thumbnail' );
|
466 |
-
$upFile = $upFile[0];
|
467 |
-
$upFile_avatar = $upFile_avatar[0];
|
468 |
-
|
469 |
-
//calculate memory needed for file creation and allocate dynamically, in case of large files
|
470 |
-
$memoryNeeded = round(($upFile[0] * $upFile[1] * $upFile['bits'] * $upFile['channels'] / 8 + Pow(2, 16)) * 1.8);
|
471 |
-
$memoryHave = memory_get_usage();
|
472 |
-
$memoryHave = memoryHave * Pow(1024,2);
|
473 |
-
$memoryLimitMB = ini_get('memory_limit');
|
474 |
-
$memoryLimit = substr ( $memoryLimitMB, 0, strlen($memoryLimitMB)-1 );
|
475 |
-
$memoryLimit = $memoryLimit * Pow(1024,2);
|
476 |
-
|
477 |
-
$newLimit = ceil( (($memoryHave + $memoryNeeded + $memoryLimit) / Pow(1024,2)) * 1.8 );
|
478 |
-
ini_set( 'memory_limit', $newLimit . 'M' );
|
479 |
-
|
480 |
-
//if file upload succeded
|
481 |
-
if (move_uploaded_file($_FILES[$uploadedfile]['tmp_name'], $target_path)){
|
482 |
-
// update the usermeta field with the original file url
|
483 |
-
update_user_meta( $current_user->id, 'custom_field_'.$value['id'], $upFile);
|
484 |
-
|
485 |
-
// also upload a resized image of it
|
486 |
-
(move_uploaded_file($_FILES[$uploadedfile]['tmp_name'], $target_path_avatar));
|
487 |
-
|
488 |
-
|
489 |
-
$extension = str_replace ( 'image/' , '' , $_FILES[$uploadedfile]['type']);
|
490 |
-
if($extension=="jpg" || $extension=="jpeg" || $extension=="pjpeg" )
|
491 |
-
$src = imagecreatefromjpeg($upFile);
|
492 |
-
elseif($extension=="png" || $extension=="x-png")
|
493 |
-
$src = imagecreatefrompng($upFile);
|
494 |
-
else
|
495 |
-
$src = imagecreatefromgif($upFile);
|
496 |
-
|
497 |
-
list($width,$height)=getimagesize($upFile);
|
498 |
-
|
499 |
-
$newwidth=$value['item_options'];
|
500 |
-
$newheight=$value['item_options'];
|
501 |
-
$tmp=imagecreatetruecolor($newwidth,$newheight);
|
502 |
-
|
503 |
-
imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height);
|
504 |
-
$filename = $target_path_avatar;
|
505 |
-
|
506 |
-
imagejpeg($tmp,$filename,100);
|
507 |
-
|
508 |
-
imagedestroy($src);
|
509 |
-
imagedestroy($tmp);
|
510 |
-
|
511 |
-
//restore the old value of the memory after imageprocessing is done
|
512 |
-
ini_restore ( 'memory_limit' );
|
513 |
-
|
514 |
-
// update/add a new usermeta field containing the url to the resized image
|
515 |
-
update_user_meta( $current_user->id, 'custom_field_resized'.$value['id'], $upFile_avatar);
|
516 |
-
}else $avatarUpload = 'no';
|
517 |
-
}elseif ( (($_FILES[$uploadedfile]['size'] > ServerMaxUploadSizeByte) || ($_FILES[$uploadedfile]['size'] == 0)) && ($fileName != '') )
|
518 |
-
$avatarUpload = 'no';
|
519 |
-
elseif ($fileName == '')
|
520 |
-
$avatarUpload = 'yes';
|
521 |
-
break;
|
522 |
-
}
|
523 |
-
}
|
524 |
-
}
|
525 |
-
}
|
526 |
-
|
527 |
-
}
|
528 |
-
|
529 |
-
?>
|
530 |
-
<div class="wppb_holder" id="wppb_modify">
|
531 |
-
<?php
|
532 |
-
if ( !is_user_logged_in() ) :
|
533 |
-
$editProfileFilterArray['notLoggedIn'] = '
|
534 |
-
<p class="warning">'. __('You must be logged in to edit your profile.', 'profilebuilder') .'</p><!-- .warning -->';
|
535 |
-
$editProfileFilterArray['notLoggedIn'] = apply_filters('wppb_edit_profile_user_not_logged_in', $editProfileFilterArray['notLoggedIn']);
|
536 |
-
echo $editProfileFilterArray['notLoggedIn'];
|
537 |
-
|
538 |
-
else :
|
539 |
-
{
|
540 |
-
/* messages for the the delete avatar/attachment */
|
541 |
-
if (isset($_GET['fileType'])){
|
542 |
-
if ($_GET['fileType'] == 'avatar'){
|
543 |
-
$editProfileFilterArray['avatarChangesSaved'] = '
|
544 |
-
<p class="changes-saved">'. __('The avatar was successfully deleted.', 'profilebuilder') .'</p><!-- .changes-saved -->';
|
545 |
-
$editProfileFilterArray['avatarChangesSaved'] = apply_filters('wppb_edit_profile_avatar_changes_saved', $editProfileFilterArray['avatarChangesSaved']);
|
546 |
-
echo $editProfileFilterArray['avatarChangesSaved'];
|
547 |
-
unset($_GET['fileType']);
|
548 |
-
}elseif ($_GET['fileType'] == 'attachment'){
|
549 |
-
$editProfileFilterArray['attachmentChangesSaved'] = '
|
550 |
-
<p class="changes-saved">'.
|
551 |
-
__('The attachment', 'profilebuilder') .' "'. $_GET['fileName'] .'" '. __('was successfully deleted.', 'profilebuilder') .'
|
552 |
-
</p><!-- .changes-saved -->';
|
553 |
-
$editProfileFilterArray['attachmentChangesSaved'] = apply_filters('wppb_edit_profile_attachment_changes_saved', $editProfileFilterArray['attachmentChangesSaved']);
|
554 |
-
echo $editProfileFilterArray['attachmentChangesSaved'];
|
555 |
-
unset($_GET['fileType']);
|
556 |
-
unset($_GET['fileName']);
|
557 |
-
}
|
558 |
-
}
|
559 |
-
|
560 |
-
/* all the other messages/errors */
|
561 |
-
$nrOfBadUploads = 0;
|
562 |
-
$nrOfBadUploads = count($uploadName);
|
563 |
-
|
564 |
-
if (($changesSaved == 'yes') && ($changesSavedNoMatchingPass == 'no') && ($changesSavedNoPass == 'no') && ($changesSavedNoEmail == 'no') && ($changesSavedNoEmailExist == 'no') && ($avatarUpload == 'yes') && ($nrOfBadUploads == 0)){
|
565 |
-
$editProfileFilterArray['allChangesSaved'] = '
|
566 |
-
<p class="changes-saved">'. __('The changes have been successfully saved.', 'profilebuilder') .'</p><!-- .changes-saved -->';
|
567 |
-
$editProfileFilterArray['allChangesSaved'] = apply_filters('wppb_edit_profile_all_changes_saved', $editProfileFilterArray['allChangesSaved']);
|
568 |
-
echo $editProfileFilterArray['allChangesSaved'];
|
569 |
-
}
|
570 |
-
elseif (($changesSaved == 'yes') && ($changesSavedNoEmailExist == 'yes') && ($previousError == 'no')){
|
571 |
-
$editProfileFilterArray['allChangesSavedExceptExistingEmail'] = '
|
572 |
-
<p class="semi-saved"> '.
|
573 |
-
__('The email address you entered is already registered to a different user.', 'profilebuilder') .'<br/>'. __('The email address was', 'profilebuilder') .' <span class="error">'. __('NOT', 'profilebuilder') .'</span> '. __('updated along with the rest of the information.', 'profilebuilder') .'
|
574 |
-
</p>';
|
575 |
-
$editProfileFilterArray['allChangesSavedExceptExistingEmail'] = apply_filters('wppb_edit_profile_all_changes_saved_except_existing_email', $editProfileFilterArray['allChangesSavedExceptExistingEmail']);
|
576 |
-
echo $editProfileFilterArray['allChangesSavedExceptExistingEmail'];
|
577 |
-
$previousError = 'yes';
|
578 |
-
}
|
579 |
-
|
580 |
-
if (($changesSaved == 'yes') && ($changesSavedNoEmail == 'yes') && ($previousError == 'no')){
|
581 |
-
$editProfileFilterArray['allChangesSavedExceptInvalidEmail'] = '
|
582 |
-
<p class="semi-saved"> '.
|
583 |
-
__('The email address you entered is invalid.', 'profilebuilder') .'<br/>'. __('The email address was', 'profilebuilder') .' <span class="error">'. __('NOT', 'profilebuilder') .'</span> '. __('updated along with the rest of the information.', 'profilebuilder') .'
|
584 |
-
</p>';
|
585 |
-
$editProfileFilterArray['allChangesSavedExceptInvalidEmail'] = apply_filters('wppb_edit_profile_all_changes_saved_except_invalid_email', $editProfileFilterArray['allChangesSavedExceptInvalidEmail']);
|
586 |
-
echo $editProfileFilterArray['allChangesSavedExceptInvalidEmail'];
|
587 |
-
$previousError = 'yes';
|
588 |
-
}
|
589 |
-
|
590 |
-
if (($changesSaved == 'yes') && ($changesSavedNoMatchingPass == 'yes') && ($previousError == 'no')){
|
591 |
-
$editProfileFilterArray['allChangesSavedMismatchedPass'] = '
|
592 |
-
<p class="semi-saved">';
|
593 |
-
__('The passwords you entered do not match.', 'profilebuilder') .'<br/>'. __('The password was', 'profilebuilder') .' <span class="error">'. __('NOT', 'profilebuilder') .'</span> '. __('updated along with the rest of the information.', 'profilebuilder') .'
|
594 |
-
</p>';
|
595 |
-
$editProfileFilterArray['allChangesSavedMismatchedPass'] = apply_filters('wppb_edit_profile_all_changes_saved_except_mismatch_password', $editProfileFilterArray['allChangesSavedMismatchedPass']);
|
596 |
-
echo $editProfileFilterArray['allChangesSavedMismatchedPass'];
|
597 |
-
$previousError = 'yes';
|
598 |
-
}
|
599 |
-
if (($changesSaved == 'yes') && ($changesSavedNoPass == 'yes') && ($previousError == 'no')){
|
600 |
-
$editProfileFilterArray['allChangesSavedUncompletedPass'] = '
|
601 |
-
<p class="semi-saved">'.
|
602 |
-
__('You didn\'t complete both password fields.', 'profilebuilder') .'<br/>'. __('The password was', 'profilebuilder') .' <span class="error">'. __('NOT', 'profilebuilder') .'</span> '. __('updated along with the rest of the information.', 'profilebuilder') .'
|
603 |
-
</p>';
|
604 |
-
$editProfileFilterArray['allChangesSavedUncompletedPass'] = apply_filters('wppb_edit_profile_all_changes_saved_except_uncompleted_password', $editProfileFilterArray['allChangesSavedUncompletedPass']);
|
605 |
-
echo $editProfileFilterArray['allChangesSavedUncompletedPass'];
|
606 |
-
$previousError = 'yes';
|
607 |
-
}
|
608 |
-
if ($allRequiredCompleted == 'no'){
|
609 |
-
$editProfileFilterArray['errorSavingChanges'] = '<p class="error">'.$errorMessage.'<br/>'. __('Your profile was NOT updated!', 'profilebuilder').'</p><!-- .error -->';
|
610 |
-
$editProfileFilterArray['errorSavingChanges'] = apply_filters('wppb_edit_profile_error_saving_changes', $editProfileFilterArray['errorSavingChanges']);
|
611 |
-
echo $editProfileFilterArray['errorSavingChanges'];
|
612 |
-
}
|
613 |
-
$wppb_premium = wppb_plugin_dir . '/premium/functions/';
|
614 |
-
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
615 |
-
if (($changesSaved == 'yes') && ($nrOfBadUploads > 0) && ($previousError == 'no')){
|
616 |
-
$lastOne = 0;
|
617 |
-
$editProfileFilterArray['errorUploadingAttachments'] = '
|
618 |
-
<p class="semi-saved">'. __('There was an error while trying to upload the following attachments:', 'profilebuilder') .'<br/>
|
619 |
-
<span class="error">';
|
620 |
-
foreach ($uploadName as $key => $name){
|
621 |
-
$lastOne++;
|
622 |
-
$editProfileFilterArray['errorUploadingAttachments'] .= $name;
|
623 |
-
if ($nrOfBadUploads-$lastOne > 0)
|
624 |
-
$editProfileFilterArray['errorUploadingAttachments'] .= ';<span style="padding-left:10px"></span>';
|
625 |
-
}
|
626 |
-
$editProfileFilterArray['errorUploadingAttachments'] .= '
|
627 |
-
</span><br/>'.
|
628 |
-
__('Possible cause: the size was bigger than', 'profilebuilder') .' '.ServerMaxUploadSizeMega.'b.<br/>'. __('The listed attachements were', 'profilebuilder') .' <span class="error">'. __('NOT', 'profilebuilder') .'</span> '. __('updated along with the rest of the information.', 'profilebuilder') .'
|
629 |
-
</p>';
|
630 |
-
$editProfileFilterArray['errorUploadingAttachments'] = apply_filters('wppb_edit_profile_error_uploading_attachments', $editProfileFilterArray['errorUploadingAttachments']);
|
631 |
-
echo $editProfileFilterArray['errorUploadingAttachments'];
|
632 |
-
$previousError = 'yes';
|
633 |
-
}if (($changesSaved == 'yes') && ($avatarUpload == 'no') && ($previousError == 'no')){
|
634 |
-
$editProfileFilterArray['errorUploadingAvatar'] = '
|
635 |
-
<p class="semi-saved">'.
|
636 |
-
__('There was an error while trying to upload your avatar picture.', 'profilebuilder') .'<br/>'. __('Possible cause: size/incorrect file-type.', 'profilebuilder') .'<br/>'. __('The avatar was', 'profilebuilder') .' <span class="error">'. __('NOT', 'profilebuilder') .'</span> '. __('updated along with the rest of the information.', 'profilebuilder') .'
|
637 |
-
</p>';
|
638 |
-
$editProfileFilterArray['errorUploadingAvatar'] = apply_filters('wppb_edit_profile_error_uploading_avatar', $editProfileFilterArray['errorUploadingAvatar']);
|
639 |
-
echo $editProfileFilterArray['errorUploadingAvatar'];
|
640 |
-
$previousError = 'yes';
|
641 |
-
}
|
642 |
-
}
|
643 |
-
}
|
644 |
-
|
645 |
-
/* use this action hook to add extra content before the edit profile form. */
|
646 |
-
do_action( 'wppb_before_edit_profile_fields' );
|
647 |
-
?>
|
648 |
-
|
649 |
-
<form enctype="multipart/form-data" method="post" id="edituser" class="user-forms" action="<?php the_permalink(); ?>">
|
650 |
-
<?php
|
651 |
-
echo '<input type="hidden" name="MAX_FILE_SIZE" value="'.ServerMaxUploadSizeByte.'" /><!-- set the MAX_FILE_SIZE to the server\'s current max upload size in bytes -->';
|
652 |
-
|
653 |
-
$editProfileFilterArray['contentName1'] = '<p class="nameHeader"><strong>'. __('Name', 'profilebuilder') .'</strong></p>';
|
654 |
-
$editProfileFilterArray['contentName1'] = apply_filters('wppb_edit_profile_content_name1', $editProfileFilterArray['contentName1']);
|
655 |
-
echo $editProfileFilterArray['contentName1'];
|
656 |
-
|
657 |
-
if ($wppb_defaultOptions['username'] == 'show'){
|
658 |
-
$editProfileFilterArray['contentName2'] = '
|
659 |
-
<p class="username">
|
660 |
-
<label for="user_login">'. __('Username', 'profilebuilder') .'</label>
|
661 |
-
<input class="text-input" name="user_login" type="text" id="user_login" value="'. get_the_author_meta( 'user_login', $current_user->id ) .'" disabled="disabled"/> <span class="wppb-description-delimiter"> '. __('Usernames cannot be changed.', 'profilebuilder') .'</span>
|
662 |
-
</p><!-- .first_name -->';
|
663 |
-
$editProfileFilterArray['contentName2'] = apply_filters('wppb_edit_profile_content_name2', $editProfileFilterArray['contentName2']);
|
664 |
-
echo $editProfileFilterArray['contentName2'];
|
665 |
-
}
|
666 |
-
|
667 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
668 |
-
$errorVar = '';
|
669 |
-
$errorMark = '';
|
670 |
-
if ($wppb_defaultOptions['firstnameRequired'] == 'yes'){
|
671 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
672 |
-
if ((trim($_POST['first_name']) == '') && isset($_POST['first_name'])){
|
673 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
674 |
-
$errorVar = ' errorHolder';
|
675 |
-
}
|
676 |
-
}
|
677 |
-
$editProfileFilterArray['contentName3'] = '
|
678 |
-
<p class="first_name'.$errorVar.'">
|
679 |
-
<label for="first_name">'. __('First Name', 'profilebuilder') .$errorMark.'</label>
|
680 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'. get_the_author_meta( 'first_name', $current_user->id ) .'" />
|
681 |
-
</p><!-- .first_name -->';
|
682 |
-
$editProfileFilterArray['contentName3'] = apply_filters('wppb_edit_profile_content_name3', $editProfileFilterArray['contentName3']);
|
683 |
-
echo $editProfileFilterArray['contentName3'];
|
684 |
-
}
|
685 |
-
|
686 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
687 |
-
$errorVar = '';
|
688 |
-
$errorMark = '';
|
689 |
-
if ($wppb_defaultOptions['lastnameRequired'] == 'yes'){
|
690 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
691 |
-
if ((trim($_POST['last_name']) == '') && isset($_POST['last_name'])){
|
692 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
693 |
-
$errorVar = ' errorHolder';
|
694 |
-
}
|
695 |
-
}
|
696 |
-
$editProfileFilterArray['contentName4'] = '
|
697 |
-
<p class="last_name'.$errorVar.'">
|
698 |
-
<label for="last_name">'. __('Last Name', 'profilebuilder') .$errorMark.'</label>
|
699 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'. get_the_author_meta( 'last_name', $current_user->id ) .'" />
|
700 |
-
</p><!-- .last_name -->';
|
701 |
-
$editProfileFilterArray['contentName4'] = apply_filters('wppb_edit_profile_content_name4', $editProfileFilterArray['contentName4']);
|
702 |
-
echo $editProfileFilterArray['contentName4'];
|
703 |
-
}
|
704 |
-
|
705 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
706 |
-
$errorVar = '';
|
707 |
-
$errorMark = '';
|
708 |
-
if ($wppb_defaultOptions['nicknameRequired'] == 'yes'){
|
709 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
710 |
-
if ((trim($_POST['nickname']) == '') && isset($_POST['nickname'])){
|
711 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
712 |
-
$errorVar = ' errorHolder';
|
713 |
-
}
|
714 |
-
}
|
715 |
-
$editProfileFilterArray['contentName5'] = '
|
716 |
-
<p class="nickname'.$errorVar.'">
|
717 |
-
<label for="nickname">'. __('Nickname', 'profilebuilder') .$errorMark.'</label>
|
718 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'. get_the_author_meta( 'nickname', $current_user->id ) .'" />
|
719 |
-
<span class="wppb-description-delimiter">'. __('(required)', 'profilebuilder') .'</span>
|
720 |
-
</p><!-- .nickname -->';
|
721 |
-
$editProfileFilterArray['contentName5'] = apply_filters('wppb_edit_profile_content_name5', $editProfileFilterArray['contentName5']);
|
722 |
-
echo $editProfileFilterArray['contentName5'];
|
723 |
-
}
|
724 |
-
|
725 |
-
if ($wppb_defaultOptions['dispname'] == 'show'){
|
726 |
-
$errorVar = '';
|
727 |
-
$errorMark = '';
|
728 |
-
if ($wppb_defaultOptions['dispnameRequired'] == 'yes'){
|
729 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
730 |
-
if ((trim($_POST['display_name']) == '') && isset($_POST['display_name'])){
|
731 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
732 |
-
$errorVar = ' errorHolder';
|
733 |
-
}
|
734 |
-
}
|
735 |
-
echo '
|
736 |
-
<p class="display_name'.$errorVar.'">
|
737 |
-
<label for="display_name">'. __('Display name publicly as', 'profilebuilder') .$errorMark.'</label>
|
738 |
-
<select name="display_name" id="display_name">';
|
739 |
-
$public_display = array();
|
740 |
-
$public_display['display_username'] = get_the_author_meta('user_login', $current_user->id);
|
741 |
-
$thisFirstName = get_the_author_meta('first_name', $current_user->id);
|
742 |
-
if ( !empty($thisFirstName))
|
743 |
-
$public_display['display_firstname'] = get_the_author_meta('first_name', $current_user->id);
|
744 |
-
$thisLastName = get_the_author_meta('last_name', $current_user->id);
|
745 |
-
if ( !empty($thisLastName))
|
746 |
-
$public_display['display_lastname'] = get_the_author_meta('last_name', $current_user->id);
|
747 |
-
$public_display['display_nickname'] = get_the_author_meta('nickname', $current_user->id);
|
748 |
-
if ( !empty($thisFirstName) && !empty($thisLastName) ) {
|
749 |
-
$public_display['display_firstlast'] = $thisFirstName . ' ' . $thisLastName;
|
750 |
-
$public_display['display_lastfirst'] = $thisLastName . ' ' . $thisFirstName;
|
751 |
-
}
|
752 |
-
$thisDisplayName = get_the_author_meta('display_name', $current_user->id);
|
753 |
-
if ( !in_array( $thisDisplayName, $public_display ) ) // Only add this if it isn't duplicated elsewhere
|
754 |
-
$public_display = array( 'display_displayname' => $thisDisplayName ) + $public_display;
|
755 |
-
$public_display = array_map( 'trim', $public_display );
|
756 |
-
foreach ( $public_display as $id => $item ) {
|
757 |
-
echo '<option id="'.$id.'" value="'.$item.'"'; selected( $thisDisplayName, $item ); echo'>'.$item.'</option>';
|
758 |
-
}
|
759 |
-
echo '
|
760 |
-
</select>
|
761 |
-
</p><!-- .display_name -->';
|
762 |
-
}
|
763 |
-
|
764 |
-
$editProfileFilterArray['contentInfo1'] = '<p class="contactInfoHeader"><strong>'. __('Contact Info', 'profilebuilder') .'</strong></p>';
|
765 |
-
$editProfileFilterArray['contentInfo1'] = apply_filters('wppb_edit_profile_content_info1', $editProfileFilterArray['contentInfo1']);
|
766 |
-
echo $editProfileFilterArray['contentInfo1'];
|
767 |
-
|
768 |
-
if ($wppb_defaultOptions['email'] == 'show'){
|
769 |
-
$errorVar = '';
|
770 |
-
$errorMark = '';
|
771 |
-
if ($wppb_defaultOptions['emailRequired'] == 'yes'){
|
772 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
773 |
-
if ((trim($_POST['email']) == '') && isset($_POST['email'])){
|
774 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
775 |
-
$errorVar = ' errorHolder';
|
776 |
-
}
|
777 |
-
}
|
778 |
-
$editProfileFilterArray['contentInfo2'] = '
|
779 |
-
<p class="form-email'.$errorVar.'">
|
780 |
-
<label for="email">'. __('E-mail', 'profilebuilder') .$errorMark.'</label>
|
781 |
-
<input class="text-input" name="email" type="text" id="email" value="'. get_the_author_meta( 'user_email', $current_user->id ) .'" />
|
782 |
-
<span class="wppb-description-delimiter">'. __('(required)', 'profilebuilder') .'</span>
|
783 |
-
</p><!-- .form-email -->';
|
784 |
-
$editProfileFilterArray['contentInfo2'] = apply_filters('wppb_edit_profile_content_info2', $editProfileFilterArray['contentInfo2']);
|
785 |
-
echo $editProfileFilterArray['contentInfo2'];
|
786 |
-
}
|
787 |
-
|
788 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
789 |
-
$errorVar = '';
|
790 |
-
$errorMark = '';
|
791 |
-
if ($wppb_defaultOptions['websiteRequired'] == 'yes'){
|
792 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
793 |
-
if ((trim($_POST['website']) == '') && isset($_POST['website'])){
|
794 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
795 |
-
$errorVar = ' errorHolder';
|
796 |
-
}
|
797 |
-
}
|
798 |
-
$editProfileFilterArray['contentInfo3'] = '
|
799 |
-
<p class="form-website'.$errorVar.'">
|
800 |
-
<label for="website">'. __('Website', 'profilebuilder') .$errorMark.'</label>
|
801 |
-
<input class="text-input" name="website" type="text" id="website" value="'. get_the_author_meta( 'user_url', $current_user->id ) .'" />
|
802 |
-
</p><!-- .form-website -->';
|
803 |
-
$editProfileFilterArray['contentInfo3'] = apply_filters('wppb_edit_profile_content_info3', $editProfileFilterArray['contentInfo3']);
|
804 |
-
echo $editProfileFilterArray['contentInfo3'];
|
805 |
-
}
|
806 |
-
|
807 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
808 |
-
$errorVar = '';
|
809 |
-
$errorMark = '';
|
810 |
-
if ($wppb_defaultOptions['aimRequired'] == 'yes'){
|
811 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
812 |
-
if ((trim($_POST['aim']) == '') && isset($_POST['aim'])){
|
813 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
814 |
-
$errorVar = ' errorHolder';
|
815 |
-
}
|
816 |
-
}
|
817 |
-
$editProfileFilterArray['contentInfo4'] = '
|
818 |
-
<p class="form-aim'.$errorVar.'">
|
819 |
-
<label for="aim">'. __('AIM', 'profilebuilder') .'</label>
|
820 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'. get_the_author_meta( 'aim', $current_user->id ) .'" />
|
821 |
-
</p><!-- .form-aim -->';
|
822 |
-
$editProfileFilterArray['contentInfo4'] = apply_filters('wppb_edit_profile_content_info4', $editProfileFilterArray['contentInfo4']);
|
823 |
-
echo $editProfileFilterArray['contentInfo4'];
|
824 |
-
}
|
825 |
-
|
826 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
827 |
-
$errorVar = '';
|
828 |
-
$errorMark = '';
|
829 |
-
if ($wppb_defaultOptions['yahooRequired'] == 'yes'){
|
830 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
831 |
-
if ((trim($_POST['yim']) == '') && isset($_POST['yim'])){
|
832 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
833 |
-
$errorVar = ' errorHolder';
|
834 |
-
}
|
835 |
-
}
|
836 |
-
$editProfileFilterArray['contentInfo5'] = '
|
837 |
-
<p class="form-yim'.$errorVar.'">
|
838 |
-
<label for="yim">'. __('Yahoo IM', 'profilebuilder') .$errorMark.'</label>
|
839 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'. get_the_author_meta( 'yim', $current_user->id ) .'" />
|
840 |
-
</p><!-- .form-yim -->';
|
841 |
-
$editProfileFilterArray['contentInfo5'] = apply_filters('wppb_edit_profile_content_info5', $editProfileFilterArray['contentInfo5']);
|
842 |
-
echo $editProfileFilterArray['contentInfo5'];
|
843 |
-
}
|
844 |
-
|
845 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
846 |
-
$errorVar = '';
|
847 |
-
$errorMark = '';
|
848 |
-
if ($wppb_defaultOptions['jabberRequired'] == 'yes'){
|
849 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
850 |
-
if ((trim($_POST['jabber']) == '') && isset($_POST['jabber'])){
|
851 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
852 |
-
$errorVar = ' errorHolder';
|
853 |
-
}
|
854 |
-
}
|
855 |
-
$editProfileFilterArray['contentInfo6'] = '
|
856 |
-
<p class="form-jabber'.$errorVar.'">
|
857 |
-
<label for="jabber">'. __('Jabber / Google Talk', 'profilebuilder') .$errorMark.'</label>
|
858 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'. get_the_author_meta( 'jabber', $current_user->id ) .'" />
|
859 |
-
</p><!-- .form-jabber -->';
|
860 |
-
$editProfileFilterArray['contentInfo6'] = apply_filters('wppb_edit_profile_content_info6', $editProfileFilterArray['contentInfo6']);
|
861 |
-
echo $editProfileFilterArray['contentInfo6'];
|
862 |
-
}
|
863 |
-
|
864 |
-
$editProfileFilterArray['aboutYourself1'] = '<p class="aboutYourselfHeader"><strong>'. __('About Yourself', 'profilebuilder') .'</strong></p>';
|
865 |
-
$editProfileFilterArray['aboutYourself1'] = apply_filters('wppb_edit_profile_content_about_yourself1', $editProfileFilterArray['aboutYourself1']);
|
866 |
-
echo $editProfileFilterArray['aboutYourself1'];
|
867 |
-
|
868 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
869 |
-
$errorVar = '';
|
870 |
-
$errorMark = '';
|
871 |
-
if ($wppb_defaultOptions['bioRequired'] == 'yes'){
|
872 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
873 |
-
if ((trim($_POST['description']) == '') && isset($_POST['description'])){
|
874 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field wasn\'t updated because you entered and empty string (It was marked as required by the administrator)."/>';
|
875 |
-
$errorVar = ' errorHolder';
|
876 |
-
}
|
877 |
-
}
|
878 |
-
$editProfileFilterArray['aboutYourself2'] = '
|
879 |
-
<p class="form-description'.$errorVar.'">
|
880 |
-
<label for="description">'. __('Biographical Info', 'profilebuilder') .$errorMark.'</label>
|
881 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'. get_the_author_meta( 'description', $current_user->id ) .'</textarea>
|
882 |
-
</p><!-- .form-description -->';
|
883 |
-
$editProfileFilterArray['aboutYourself2'] = apply_filters('wppb_edit_profile_content_about_yourself2', $editProfileFilterArray['aboutYourself2']);
|
884 |
-
echo $editProfileFilterArray['aboutYourself2'];
|
885 |
-
}
|
886 |
-
|
887 |
-
if ($wppb_defaultOptions['password'] == 'show'){
|
888 |
-
|
889 |
-
$editProfileFilterArray['aboutYourself3'] = '
|
890 |
-
<p class="form-password">
|
891 |
-
<label for="pass1">'. __('New Password', 'profilebuilder') .'</label>
|
892 |
-
<input class="text-input" name="pass1" type="password" id="pass1" />
|
893 |
-
</p><!-- .form-password -->
|
894 |
-
|
895 |
-
<p class="form-password'.$errorVar.'">
|
896 |
-
<label for="pass2">'. __('Repeat Password', 'profilebuilder') .$errorMark.'</label>
|
897 |
-
<input class="text-input" name="pass2" type="password" id="pass2" />
|
898 |
-
</p><!-- .form-password -->';
|
899 |
-
$editProfileFilterArray['aboutYourself3'] = apply_filters('wppb_edit_profile_content_about_yourself3', $editProfileFilterArray['aboutYourself3']);
|
900 |
-
echo $editProfileFilterArray['aboutYourself3'];
|
901 |
-
}
|
902 |
-
|
903 |
-
|
904 |
-
$wppb_premium = wppb_plugin_dir . '/premium/functions/';
|
905 |
-
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
906 |
-
require_once($wppb_premium.'extra.fields.php');
|
907 |
-
edit_profile_extra_fields($current_user->id, $extraFieldsErrorHolder);
|
908 |
-
}
|
909 |
-
?>
|
910 |
-
|
911 |
-
|
912 |
-
<p class="form-submit">
|
913 |
-
<input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profilebuilder'); ?>" />
|
914 |
-
<?php// wp_nonce_field( 'update-user' ) ?>
|
915 |
-
<input name="action" type="hidden" id="action" value="update-user" />
|
916 |
-
</p><!-- .form-submit -->
|
917 |
-
<?php wp_nonce_field('verify_edit_user','edit_nonce_field'); ?>
|
918 |
-
</form><!-- #edituser -->
|
919 |
-
|
920 |
-
<?php endif; ?>
|
921 |
-
|
922 |
-
<?php /* use this action hook to add extra content after the edit profile form. */ ?>
|
923 |
-
<?php do_action( 'wppb_after_edit_profile_fields' ); ?>
|
924 |
-
|
925 |
-
</div>
|
926 |
-
|
927 |
-
<?php
|
928 |
-
$output = ob_get_contents();
|
929 |
-
ob_end_clean();
|
930 |
-
|
931 |
-
$editProfileFilterArray = apply_filters('wppb_edit_profile', $editProfileFilterArray);
|
932 |
-
|
933 |
-
return $output;
|
934 |
-
}
|
935 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/front-end/wppb.login.php
DELETED
@@ -1,167 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if(!function_exists('wppb_curpageurl')){
|
3 |
-
function wppb_curpageurl() {
|
4 |
-
$pageURL = 'http';
|
5 |
-
if ((isset($_SERVER["HTTPS"])) && ($_SERVER["HTTPS"] == "on")) {
|
6 |
-
$pageURL .= "s";
|
7 |
-
}
|
8 |
-
$pageURL .= "://";
|
9 |
-
if ($_SERVER["SERVER_PORT"] != "80") {
|
10 |
-
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
11 |
-
} else {
|
12 |
-
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
13 |
-
}
|
14 |
-
return $pageURL;
|
15 |
-
}
|
16 |
-
}
|
17 |
-
|
18 |
-
/* wp_signon can only be executed before anything is outputed in the page because of that we're adding it to the init hook */
|
19 |
-
global $wppb_login;
|
20 |
-
$wppb_login = false;
|
21 |
-
|
22 |
-
function wppb_signon(){
|
23 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'log-in' && wp_verify_nonce($_POST['login_nonce_field'],'verify_true_login')) :
|
24 |
-
global $error;
|
25 |
-
global $wppb_login;
|
26 |
-
|
27 |
-
if (isset($_POST['remember-me']))
|
28 |
-
$remember = $_POST['remember-me'];
|
29 |
-
else $remember = false;
|
30 |
-
$wppb_login = wp_signon( array( 'user_login' => $_POST['user-name'], 'user_password' => $_POST['password'], 'remember' => $_POST['remember-me'] ), false );
|
31 |
-
endif;
|
32 |
-
}
|
33 |
-
add_action('init', 'wppb_signon');
|
34 |
-
|
35 |
-
function wppb_front_end_login(){
|
36 |
-
$loginFilterArray = array();
|
37 |
-
ob_start();
|
38 |
-
global $wppb_login;
|
39 |
-
|
40 |
-
echo '<div class="wppb_holder" id="wppb_login">';
|
41 |
-
|
42 |
-
if ( is_user_logged_in() ) : // Already logged in
|
43 |
-
global $user_ID;
|
44 |
-
$wppb_user = get_userdata( $user_ID );
|
45 |
-
if($wppb_user->display_name == ''){
|
46 |
-
$wppb_user->display_name = $wppb_user->user_login;
|
47 |
-
}
|
48 |
-
|
49 |
-
?>
|
50 |
-
<?php
|
51 |
-
$loginFilterArray['loginMessage1'] = '
|
52 |
-
<p class="alert">'.
|
53 |
-
__('You are currently logged in as', 'profilebuilder').' <a href="'.$authorPostsUrl = get_author_posts_url( $wppb_user->ID ).'" title="'.$wppb_user->display_name.'">'.$wppb_user->display_name.'</a>.
|
54 |
-
<a href="'.wp_logout_url( get_permalink() ).'" title="'. __('Log out of this account', 'profilebuilder').'">'. __('Log out', 'profilebuilder').' »</a>
|
55 |
-
</p><!-- .alert-->';
|
56 |
-
|
57 |
-
$loginFilterArray['loginMessage1'] = apply_filters('wppb_login_login_message1', $loginFilterArray['loginMessage1']);
|
58 |
-
echo $loginFilterArray['loginMessage1'];
|
59 |
-
?>
|
60 |
-
|
61 |
-
<?php elseif ( $wppb_login->ID ) : // Successful login ?>
|
62 |
-
<?php
|
63 |
-
//$wppb_login = get_userdata( $wppb_login->ID );
|
64 |
-
if($wppb_login->display_name == ''){
|
65 |
-
$wppb_login->display_name = $wppb_login->user_login;
|
66 |
-
}
|
67 |
-
|
68 |
-
?>
|
69 |
-
|
70 |
-
<?php
|
71 |
-
$loginFilterArray['loginMessage2'] = '
|
72 |
-
<p class="success">'.
|
73 |
-
__('You have successfully logged in as', 'profilebuilder').' <a href="'.$authorPostsUrl = get_author_posts_url( $wppb_login->ID ).'" title="'.$wppb_login->display_name.'">'.$wppb_login->display_name.'</a>.
|
74 |
-
</p><!-- .success-->';
|
75 |
-
|
76 |
-
$loginFilterArray['loginMessage2'] = apply_filters('wppb_login_login_message2', $loginFilterArray['loginMessage2']);
|
77 |
-
echo $loginFilterArray['loginMessage2'];
|
78 |
-
?>
|
79 |
-
|
80 |
-
|
81 |
-
<?php
|
82 |
-
$permaLnk2 = get_permalink();
|
83 |
-
$wppb_addons = wppb_plugin_dir . '/premium/addon/';
|
84 |
-
if (file_exists ( $wppb_addons.'addon.php' )){
|
85 |
-
//check to see if the redirecting addon is present and activated
|
86 |
-
$wppb_premium_addon_settings = get_option('wppb_premium_addon_settings'); //fetch the descriptions array
|
87 |
-
if ($wppb_premium_addon_settings['customRedirect'] == 'show'){
|
88 |
-
//check to see if the redirect location is not an empty string and is activated
|
89 |
-
$customRedirectSettings = get_option('customRedirectSettings');
|
90 |
-
if ((trim($customRedirectSettings['afterLoginTarget']) != '') && ($customRedirectSettings['afterLogin'] == 'yes')){
|
91 |
-
$permaLnk2 = trim($customRedirectSettings['afterLoginTarget']);
|
92 |
-
$findHttp = strpos($permaLnk2, 'http');
|
93 |
-
if ($findHttp === false)
|
94 |
-
$permaLnk2 = 'http://'. $permaLnk2;
|
95 |
-
}
|
96 |
-
}
|
97 |
-
}
|
98 |
-
|
99 |
-
$loginFilterArray['redirectMessage'] = '
|
100 |
-
<font color="black">'. __('You will soon be redirected automatically. If you see this page for more than 1 second, please click', 'profilebuilder').' <a href="'.$permaLnk2.'">'. __('here', 'profilebuilder').'</a>.<meta http-equiv="Refresh" content="1;url='.$permaLnk2.'" /></font><br/><br/>';
|
101 |
-
$loginFilterArray['redirectMessage'] = apply_filters('wppb_login_redirect_message', $loginFilterArray['redirectMessage']);
|
102 |
-
echo $loginFilterArray['redirectMessage'];
|
103 |
-
?>
|
104 |
-
<?php else : // Not logged in ?>
|
105 |
-
|
106 |
-
<?php if (!empty( $_POST['action'] )): ?>
|
107 |
-
<p class="error">
|
108 |
-
<?php if ( trim($_POST['user-name']) == '') echo '<strong>'. __('ERROR:','profilebuilder').'</strong> '. __('The username field is empty', 'profilebuilder').'. '; ?>
|
109 |
-
<?php if ( is_wp_error($wppb_login) ) echo $wppb_login->get_error_message();?>
|
110 |
-
</p><!-- .error -->
|
111 |
-
<?php endif; ?>
|
112 |
-
|
113 |
-
<?php /* use this action hook to add extra content before the login form. */ ?>
|
114 |
-
<?php do_action( 'wppb_before_login' ); ?>
|
115 |
-
|
116 |
-
<form action="<?php wppb_curpageurl(); ?>" method="post" class="sign-in">
|
117 |
-
<p class="login-form-username">
|
118 |
-
<label for="user-name"><?php _e('Username', 'profilebuilder'); ?></label>
|
119 |
-
<?php
|
120 |
-
if (isset($_POST['user-name']))
|
121 |
-
$userName = esc_html( $_POST['user-name'] );
|
122 |
-
else $userName = '';
|
123 |
-
?>
|
124 |
-
<?php echo '<input type="text" name="user-name" id="user-name" class="text-input" value="'.$userName.'" />'; ?>
|
125 |
-
</p><!-- .form-username -->
|
126 |
-
|
127 |
-
<p class="login-form-password">
|
128 |
-
<label for="password"><?php _e('Password', 'profilebuilder'); ?></label>
|
129 |
-
<input type="password" name="password" id="password" class="text-input" />
|
130 |
-
</p><!-- .form-password -->
|
131 |
-
<p class="login-form-submit">
|
132 |
-
<input type="submit" name="submit" class="submit button" value="<?php _e('Log in', 'profilebuilder'); ?>" />
|
133 |
-
<?php
|
134 |
-
$loginFilterArray['rememberMe'] = '
|
135 |
-
<input class="remember-me checkbox" name="remember-me" id="remember-me" type="checkbox" checked="checked" value="forever" />
|
136 |
-
<label for="remember-me">'. __('Remember me', 'profilebuilder').'</label>';
|
137 |
-
$loginFilterArray['rememberMe'] = apply_filters('wppb_login_remember_me', $loginFilterArray['rememberMe']);
|
138 |
-
echo $loginFilterArray['rememberMe'];
|
139 |
-
?>
|
140 |
-
|
141 |
-
<input type="hidden" name="action" value="log-in" />
|
142 |
-
</p><!-- .form-submit -->
|
143 |
-
<?php
|
144 |
-
$loginFilterArray['loginURL'] = '
|
145 |
-
<p>
|
146 |
-
<a href="'.$siteURL=get_option('siteurl').'/wp-login.php?action=lostpassword">'. __('Lost password?', 'profilebuilder').'</a>
|
147 |
-
</p>';
|
148 |
-
$loginFilterArray['loginURL'] = apply_filters('wppb_login_url', $loginFilterArray['loginURL']);
|
149 |
-
echo $loginFilterArray['loginURL'];
|
150 |
-
?>
|
151 |
-
<?php wp_nonce_field('verify_true_login','login_nonce_field'); ?>
|
152 |
-
</form><!-- .sign-in -->
|
153 |
-
|
154 |
-
<?php endif;?>
|
155 |
-
|
156 |
-
<?php /* use this action hook to add extra content after the login form. */ ?>
|
157 |
-
<?php do_action( 'wppb_after_login' ); ?>
|
158 |
-
|
159 |
-
</div>
|
160 |
-
<?php
|
161 |
-
$output = ob_get_contents();
|
162 |
-
ob_end_clean();
|
163 |
-
|
164 |
-
$loginFilterArray = apply_filters('wppb_login', $loginFilterArray);
|
165 |
-
|
166 |
-
return $output;
|
167 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/front-end/wppb.recover.password.php
DELETED
@@ -1,388 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
//function needed to check if the current page already has a ? sign in the address bar
|
3 |
-
if(!function_exists('wppb_curpageurl_password_recovery')){
|
4 |
-
function wppb_curpageurl_password_recovery() {
|
5 |
-
$pageURL = 'http';
|
6 |
-
if ((isset($_SERVER["HTTPS"])) && ($_SERVER["HTTPS"] == "on")) {
|
7 |
-
$pageURL .= "s";
|
8 |
-
}
|
9 |
-
$pageURL .= "://";
|
10 |
-
if ($_SERVER["SERVER_PORT"] != "80") {
|
11 |
-
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
12 |
-
}else{
|
13 |
-
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
14 |
-
}
|
15 |
-
|
16 |
-
$questionPos = strpos($pageURL, '?');
|
17 |
-
$submitedPos = strpos($pageURL, 'submited=yes');
|
18 |
-
|
19 |
-
if ($submitedPos !== false)
|
20 |
-
return $pageURL;
|
21 |
-
elseif($questionPos !== false)
|
22 |
-
return $pageURL.'&submited=yes';
|
23 |
-
else
|
24 |
-
return $pageURL.'?submited=yes';
|
25 |
-
}
|
26 |
-
}
|
27 |
-
|
28 |
-
if(!function_exists('wppb_curpageurl_password_recovery2')){
|
29 |
-
function wppb_curpageurl_password_recovery2($user_login, $id) {
|
30 |
-
|
31 |
-
global $wpdb;
|
32 |
-
$pageURL = 'http';
|
33 |
-
|
34 |
-
if ((isset($_SERVER["HTTPS"])) && ($_SERVER["HTTPS"] == "on")) {
|
35 |
-
$pageURL .= "s";
|
36 |
-
}
|
37 |
-
$pageURL .= "://";
|
38 |
-
if ($_SERVER["SERVER_PORT"] != "80") {
|
39 |
-
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
40 |
-
}else{
|
41 |
-
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
42 |
-
}
|
43 |
-
|
44 |
-
$questionPos = strpos($pageURL, '?');
|
45 |
-
$key = md5($user_login.'RMPBP'.$id.'PWRCVR');
|
46 |
-
|
47 |
-
if($questionPos !== false){
|
48 |
-
$wpdb->update($wpdb->users, array('user_activation_key' => $key), array('user_login' => $user_login));
|
49 |
-
return $pageURL.'&loginName='.$user_login.'&key='.$key;
|
50 |
-
}else{
|
51 |
-
$wpdb->update($wpdb->users, array('user_activation_key' => $key), array('user_login' => $user_login));
|
52 |
-
return $pageURL.'?loginName='.$user_login.'&key='.$key;
|
53 |
-
}
|
54 |
-
}
|
55 |
-
}
|
56 |
-
|
57 |
-
if(!function_exists('wppb_curpageurl_password_recovery3')){
|
58 |
-
function wppb_curpageurl_password_recovery3() {
|
59 |
-
$pageURL = 'http';
|
60 |
-
if ((isset($_SERVER["HTTPS"])) && ($_SERVER["HTTPS"] == "on")) {
|
61 |
-
$pageURL .= "s";
|
62 |
-
}
|
63 |
-
$pageURL .= "://";
|
64 |
-
if ($_SERVER["SERVER_PORT"] != "80") {
|
65 |
-
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
66 |
-
}else{
|
67 |
-
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
68 |
-
}
|
69 |
-
|
70 |
-
$questionPos = strpos($pageURL, '?');
|
71 |
-
$finalActionPos = strpos($pageURL, 'finalAction=yes');
|
72 |
-
|
73 |
-
if ($finalActionPos !== false)
|
74 |
-
return $pageURL;
|
75 |
-
elseif($questionPos !== false)
|
76 |
-
return $pageURL.'&finalAction=yes';
|
77 |
-
else
|
78 |
-
return $pageURL.'?finalAction=yes';
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
function wppb_front_end_password_recovery(){
|
85 |
-
$recoverPasswordFilterArray = array();
|
86 |
-
$message = '';
|
87 |
-
$messageNo = '';
|
88 |
-
$message2 = '';
|
89 |
-
$messageNo2 = '';
|
90 |
-
|
91 |
-
global $wpdb;
|
92 |
-
//global $current_user;
|
93 |
-
//get_currentuserinfo();
|
94 |
-
|
95 |
-
$linkLoginName = '';
|
96 |
-
$linkKey = '';
|
97 |
-
|
98 |
-
ob_start();
|
99 |
-
|
100 |
-
|
101 |
-
/* If the user entered an email/username, process the request */
|
102 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'recover_password' && wp_verify_nonce($_POST['password_recovery_nonce_field'],'verify_true_password_recovery') ) {
|
103 |
-
|
104 |
-
$postedData = $_POST['username_email']; //we get the raw data
|
105 |
-
//check to see if it's an e-mail (and if this is valid/present in the database) or is a username
|
106 |
-
if (is_email($postedData)){
|
107 |
-
if (email_exists($postedData)){
|
108 |
-
$recoverPasswordFilterArray['sentMessage1'] = __('A password reset email has been sent to ', 'profilebuilder').$postedData.'. <br/>'.__('Following the link sent in the email address will reset the password.', 'profilebuilder');
|
109 |
-
$recoverPasswordFilterArray['sentMessage1'] = apply_filters('wppb_recover_password_sent_message1', $recoverPasswordFilterArray['sentMessage1']);
|
110 |
-
$messageNo = '1';
|
111 |
-
$message = $recoverPasswordFilterArray['sentMessage1'];
|
112 |
-
|
113 |
-
//verify e-mail validity
|
114 |
-
$query = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE user_email='".$postedData."'");
|
115 |
-
$requestedUserID = $query[0]->ID;
|
116 |
-
$requestedUserLogin = $query[0]->user_login;
|
117 |
-
$requestedUserEmail = $query[0]->user_email;
|
118 |
-
|
119 |
-
//send primary email message
|
120 |
-
$recoverPasswordFilterArray['userMailMessage1'] = __('Someone requested that the password be reset for the following account: ', 'profilebuilder');
|
121 |
-
$recoverPasswordFilterArray['userMailMessage1'] .= '<b>'.$requestedUserLogin.'</b><br/>';
|
122 |
-
$recoverPasswordFilterArray['userMailMessage1'] .= __('If this was a mistake, just ignore this email and nothing will happen.', 'profilebuilder').'<br/>';
|
123 |
-
$recoverPasswordFilterArray['userMailMessage1'] .= __('To reset your password, visit the following link:', 'profilebuilder');
|
124 |
-
$recoverPasswordFilterArray['userMailMessage1'] .= '<a href="'.wppb_curpageurl_password_recovery2($requestedUserLogin, $requestedUserID).'">'.wppb_curpageurl_password_recovery2($requestedUserLogin, $requestedUserID).'</a>';
|
125 |
-
$recoverPasswordFilterArray['userMailMessage1'] = apply_filters('wppb_recover_password_message_content_sent_to_user1', $recoverPasswordFilterArray['userMailMessage1']);
|
126 |
-
|
127 |
-
$recoverPasswordFilterArray['userMailMessageTitle1'] = __('Password Reset Feature from', 'profilebuilder').' "'.$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES).'"';
|
128 |
-
$recoverPasswordFilterArray['userMailMessageTitle1'] = apply_filters('wppb_recover_password_message_title_sent_to_user1', $recoverPasswordFilterArray['userMailMessageTitle1']);
|
129 |
-
|
130 |
-
//we add this filter to enable html encoding
|
131 |
-
add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
|
132 |
-
//send mail to the user notifying him of the reset request
|
133 |
-
if (trim($recoverPasswordFilterArray['userMailMessageTitle1']) != ''){
|
134 |
-
$sent = wp_mail($requestedUserEmail, $recoverPasswordFilterArray['userMailMessageTitle1'], $recoverPasswordFilterArray['userMailMessage1']);
|
135 |
-
if ($sent === false){
|
136 |
-
$recoverPasswordFilterArray['sentMessageCouldntSendMessage'] = '<b>'. __('ERROR', 'profilebuilder') .': </b>'.__('There was an error while trying to send the activation link to ', 'profilebuilder').$postedData.'!';
|
137 |
-
$recoverPasswordFilterArray['sentMessageCouldntSendMessage'] = apply_filters('wppb_recover_password_sent_message_error_sending', $recoverPasswordFilterArray['sentMessageCouldntSendMessage']);
|
138 |
-
$messageNo = '5';
|
139 |
-
$message = $recoverPasswordFilterArray['sentMessageCouldntSendMessage'];
|
140 |
-
}
|
141 |
-
}
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
}elseif (!email_exists($postedData)){
|
146 |
-
$recoverPasswordFilterArray['sentMessage2'] = __('The email address entered wasn\'t found in the database!', 'profilebuilder').'<br/>'.__('Please check that you entered the correct email address.', 'profilebuilder');
|
147 |
-
$recoverPasswordFilterArray['sentMessage2'] = apply_filters('wppb_recover_password_sent_message2', $recoverPasswordFilterArray['sentMessage2']);
|
148 |
-
$messageNo = '2';
|
149 |
-
$message = $recoverPasswordFilterArray['sentMessage2'];
|
150 |
-
}
|
151 |
-
}elseif (!is_email($postedData)){
|
152 |
-
if (username_exists($postedData)){
|
153 |
-
$recoverPasswordFilterArray['sentMessage3'] = __('A password reset email has been sent to ', 'profilebuilder').$postedData.'. <br/>'.__('Following the link sent in the email address will reset the password.', 'profilebuilder');
|
154 |
-
$recoverPasswordFilterArray['sentMessage3'] = apply_filters('wppb_recover_password_sent_message3', $recoverPasswordFilterArray['sentMessage3']);
|
155 |
-
$messageNo = '3';
|
156 |
-
$message = $recoverPasswordFilterArray['sentMessage3'];
|
157 |
-
|
158 |
-
//verify username validity
|
159 |
-
$query = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE user_login='".$postedData."'");
|
160 |
-
$requestedUserID = $query[0]->ID;
|
161 |
-
$requestedUserLogin = $query[0]->user_login;
|
162 |
-
$requestedUserEmail = $query[0]->user_email;
|
163 |
-
|
164 |
-
//send primary email message
|
165 |
-
$recoverPasswordFilterArray['userMailMessage1'] = __('Someone requested that the password be reset for the following account: ', 'profilebuilder');
|
166 |
-
$recoverPasswordFilterArray['userMailMessage1'] .= '<b>'.$requestedUserLogin.'</b><br/>';
|
167 |
-
$recoverPasswordFilterArray['userMailMessage1'] .= __('If this was a mistake, just ignore this email and nothing will happen.', 'profilebuilder').'<br/>';
|
168 |
-
$recoverPasswordFilterArray['userMailMessage1'] .= __('To reset your password, visit the following link:', 'profilebuilder');
|
169 |
-
$recoverPasswordFilterArray['userMailMessage1'] .= '<a href="'.wppb_curpageurl_password_recovery2($requestedUserLogin, $requestedUserID).'">'.wppb_curpageurl_password_recovery2($requestedUserLogin, $requestedUserID).'</a>';
|
170 |
-
$recoverPasswordFilterArray['userMailMessage1'] = apply_filters('wppb_recover_password_message_content_sent_to_user1', $recoverPasswordFilterArray['userMailMessage1']);
|
171 |
-
|
172 |
-
$recoverPasswordFilterArray['userMailMessageTitle1'] = __('Password Reset Feature from', 'profilebuilder').' "'.$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES).'"';
|
173 |
-
$recoverPasswordFilterArray['userMailMessageTitle1'] = apply_filters('wppb_recover_password_message_title_sent_to_user1', $recoverPasswordFilterArray['userMailMessageTitle1']);
|
174 |
-
|
175 |
-
//we add this filter to enable html encoding
|
176 |
-
add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
|
177 |
-
//send mail to the user notifying him of the reset request
|
178 |
-
if (trim($recoverPasswordFilterArray['userMailMessageTitle1']) != ''){
|
179 |
-
$sent = wp_mail($requestedUserEmail, $recoverPasswordFilterArray['userMailMessageTitle1'], $recoverPasswordFilterArray['userMailMessage1']);
|
180 |
-
if ($sent === false){
|
181 |
-
$recoverPasswordFilterArray['sentMessageCouldntSendMessage'] = '<b>'. __('ERROR', 'profilebuilder') .': </b>'.__('There was an error while trying to send the activation link to ', 'profilebuilder').$postedData.'!';
|
182 |
-
$recoverPasswordFilterArray['sentMessageCouldntSendMessage'] = apply_filters('wppb_recover_password_sent_message_error_sending', $recoverPasswordFilterArray['sentMessageCouldntSendMessage']);
|
183 |
-
$messageNo = '5';
|
184 |
-
$message = $recoverPasswordFilterArray['sentMessageCouldntSendMessage'];
|
185 |
-
}
|
186 |
-
}
|
187 |
-
}elseif (!username_exists($postedData)){
|
188 |
-
$recoverPasswordFilterArray['sentMessage4'] = __('The username entered wasn\'t found in the database!', 'profilebuilder').'<br/>'.__('Please check that you entered the correct username.', 'profilebuilder');
|
189 |
-
$recoverPasswordFilterArray['sentMessage4'] = apply_filters('wppb_recover_password_sent_message4', $recoverPasswordFilterArray['sentMessage4']);
|
190 |
-
$messageNo = '4';
|
191 |
-
$message = $recoverPasswordFilterArray['sentMessage4'];
|
192 |
-
}
|
193 |
-
}
|
194 |
-
|
195 |
-
}
|
196 |
-
/* If the user used the correct key-code, update his/her password */
|
197 |
-
elseif ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action2'] ) && $_POST['action2'] == 'recover_password2' && wp_verify_nonce($_POST['password_recovery_nonce_field2'],'verify_true_password_recovery2') ) {
|
198 |
-
if (($_POST['passw1'] == $_POST['passw2']) && (!empty($_POST['passw1']) && !empty($_POST['passw2']))){
|
199 |
-
$message2 = __('Your password has been successfully changed!', 'profilebuilder');
|
200 |
-
$messageNo2 = '1';
|
201 |
-
if ((isset($_GET['loginName'])) && (isset($_GET['finalAction']))){
|
202 |
-
$loginName = $_GET['loginName'];
|
203 |
-
}
|
204 |
-
//update the new password and delete the key
|
205 |
-
$query2 = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE user_login='".$loginName."'");
|
206 |
-
wp_update_user( array( 'ID' => $query2[0]->ID, 'user_pass' => esc_attr( $_POST['passw1'] ) ) );
|
207 |
-
$wpdb->update($wpdb->users, array('user_activation_key' => ''), array('user_login' => $loginName));
|
208 |
-
|
209 |
-
//send secondary mail to the user containing the username and the new password
|
210 |
-
$recoverPasswordFilterArray['userMailMessage2'] = __('You have successfully reset your password,', 'profilebuilder');
|
211 |
-
$recoverPasswordFilterArray['userMailMessage2'] .= ' <b>'.$loginName.'</b>';
|
212 |
-
$recoverPasswordFilterArray['userMailMessage2'] = apply_filters('wppb_recover_password_message_content_sent_to_user2', $recoverPasswordFilterArray['userMailMessage2']);
|
213 |
-
|
214 |
-
$recoverPasswordFilterArray['userMailMessageTitle2'] = __('Password Successfully Reset for', 'profilebuilder') .' '.$query2[0]->user_login.' '. __('from', 'profilebuilder').' "'.$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES).'"';
|
215 |
-
$recoverPasswordFilterArray['userMailMessageTitle2'] = apply_filters('wppb_recover_password_message_title_sent_to_user2', $recoverPasswordFilterArray['userMailMessageTitle2']);
|
216 |
-
|
217 |
-
//we add this filter to enable html encoding
|
218 |
-
add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
|
219 |
-
//send mail to the user notifying him of the reset request
|
220 |
-
if (trim($recoverPasswordFilterArray['userMailMessageTitle2']) != '')
|
221 |
-
wp_mail($query2[0]->user_email, $recoverPasswordFilterArray['userMailMessageTitle2'], $recoverPasswordFilterArray['userMailMessage2']);
|
222 |
-
|
223 |
-
//send email to admin
|
224 |
-
$recoverPasswordFilterArray['adminMailMessage'] = $loginName. ' '.__('has requested a password change via the password reset feature.');
|
225 |
-
$recoverPasswordFilterArray['adminMailMessage'] .= '<br/>'.__('His/her new password is:','profilebuilder'). ' '.$_POST['passw1'];
|
226 |
-
$recoverPasswordFilterArray['adminMailMessage'] = apply_filters('wppb_recover_password_message_content_sent_to_admin', $recoverPasswordFilterArray['adminMailMessage']);
|
227 |
-
|
228 |
-
$recoverPasswordFilterArray['adminMailMessageTitle'] = __('Password Successfully Reset for', 'profilebuilder') .' '.$query2[0]->user_login.' '. __('from', 'profilebuilder').' "'.$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES).'"';
|
229 |
-
$recoverPasswordFilterArray['adminMailMessageTitle'] = apply_filters('wppb_recover_password_message_title_sent_to_admin', $recoverPasswordFilterArray['adminMailMessageTitle']);
|
230 |
-
|
231 |
-
|
232 |
-
//we disable the feature to send the admin a notification mail but can be still used using filters
|
233 |
-
$recoverPasswordFilterArray['adminMailMessageTitle'] = '';
|
234 |
-
$recoverPasswordFilterArray['adminMailMessageTitle'] = apply_filters('wppb_recover_password_message_title_sent_to_admin', $recoverPasswordFilterArray['adminMailMessageTitle']);
|
235 |
-
|
236 |
-
//we add this filter to enable html encoding
|
237 |
-
add_filter('wp_mail_content_type',create_function('', 'return "text/html"; '));
|
238 |
-
//send mail to the admin notifying him of of a user with a password reset request
|
239 |
-
if (trim($recoverPasswordFilterArray['adminMailMessageTitle']) != '')
|
240 |
-
wp_mail(get_option('admin_email'), $recoverPasswordFilterArray['adminMailMessageTitle'], $recoverPasswordFilterArray['adminMailMessage']);
|
241 |
-
|
242 |
-
}else{
|
243 |
-
$message2 = __('The entered passwords don\'t match!', 'profilebuilder');
|
244 |
-
$messageNo2 = '2';
|
245 |
-
}
|
246 |
-
|
247 |
-
}
|
248 |
-
|
249 |
-
?>
|
250 |
-
|
251 |
-
<div class="wppb_holder" id="wppb_recover_password">
|
252 |
-
|
253 |
-
<?php
|
254 |
-
/* use this action hook to add extra content before the password recovery form. */
|
255 |
-
do_action( 'wppb_before_recover_password_fields' );
|
256 |
-
|
257 |
-
//this is the part that handles the actual recovery
|
258 |
-
if (isset($_GET['submited']) && isset($_GET['loginName']) && isset($_GET['key'])){
|
259 |
-
//get the login name and key and verify if they match the ones in the database
|
260 |
-
$query = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE user_login='".$_GET['loginName']."'");
|
261 |
-
$dbValue = $query[0]->user_activation_key;
|
262 |
-
$id = $query[0]->ID;
|
263 |
-
$localHashValue = md5($_GET['loginName'].'RMPBP'.$id.'PWRCVR');
|
264 |
-
if ($localHashValue == $_GET['key']){
|
265 |
-
//check if the "finalAction" variable is not in the address bar, if it is, don't display the form anymore
|
266 |
-
if (isset($_GET['finalAction']) && ($_GET['finalAction'] == 'yes')){
|
267 |
-
if ($messageNo2 == '2'){
|
268 |
-
$recoverPasswordFilterArray['passwordChangedMessage2'] = '<p class="error">'. $message2 .'</p><!-- .error -->';
|
269 |
-
$recoverPasswordFilterArray['passwordChangedMessage2'] = apply_filters ('wppb_recover_password_password_changed_message2', $recoverPasswordFilterArray['passwordChangedMessage2']);
|
270 |
-
echo $recoverPasswordFilterArray['passwordChangedMessage2'];
|
271 |
-
?>
|
272 |
-
<form enctype="multipart/form-data" method="post" id="recover_password2" class="user-forms" action="<?php echo $url=wppb_curpageurl_password_recovery3();?>">
|
273 |
-
<?php
|
274 |
-
$recoverPasswordFilterArray['inputPassword'] = '
|
275 |
-
<p class="passw1">
|
276 |
-
<label for="passw1">'. __('Password', 'profilebuilder').'</label>
|
277 |
-
<input class="password" name="passw1" type="password" id="passw1" value="'.$_POST['passw1'].'" />
|
278 |
-
</p><!-- .passw1 -->
|
279 |
-
|
280 |
-
<p class="passw2">
|
281 |
-
<label for="passw2">'. __('Repeat Password', 'profilebuilder').'</label>
|
282 |
-
<input class="password" name="passw2" type="password" id="passw2" value="'.$_POST['passw2'].'" />
|
283 |
-
</p><!-- .passw2 -->';
|
284 |
-
$recoverPasswordFilterArray['inputPassword'] = apply_filters('wppb_recover_password_input', $recoverPasswordFilterArray['inputPassword']);
|
285 |
-
echo $recoverPasswordFilterArray['inputPassword'];
|
286 |
-
?>
|
287 |
-
<p class="form-submit">
|
288 |
-
<input name="recover_password2" type="submit" id="recover_password2" class="submit button" value="<?php _e('Reset Password', 'profilebuilder'); ?>" />
|
289 |
-
<input name="action2" type="hidden" id="action2" value="recover_password2" />
|
290 |
-
</p><!-- .form-submit -->
|
291 |
-
<?php wp_nonce_field('verify_true_password_recovery2', 'password_recovery_nonce_field2'); ?>
|
292 |
-
</form><!-- #recover_password -->
|
293 |
-
<?php
|
294 |
-
}elseif ($messageNo2 == '1'){
|
295 |
-
$recoverPasswordFilterArray['passwordChangedMessage1'] = '<p class="success">'. $message2 .'</p><!-- .success -->';
|
296 |
-
$recoverPasswordFilterArray['passwordChangedMessage1'] = apply_filters ('wppb_recover_password_password_changed_message1', $recoverPasswordFilterArray['passwordChangedMessage1']);
|
297 |
-
echo $recoverPasswordFilterArray['passwordChangedMessage1'];
|
298 |
-
}
|
299 |
-
|
300 |
-
}else{
|
301 |
-
|
302 |
-
?>
|
303 |
-
<form enctype="multipart/form-data" method="post" id="recover_password2" class="user-forms" action="<?php echo $url=wppb_curpageurl_password_recovery3();?>">
|
304 |
-
<?php
|
305 |
-
$recoverPasswordFilterArray['inputPassword'] = '
|
306 |
-
<p class="passw1">
|
307 |
-
<label for="passw1">'. __('Password', 'profilebuilder').'</label>
|
308 |
-
<input class="password" name="passw1" type="password" id="passw1" value="'.$_POST['passw1'].'" />
|
309 |
-
</p><!-- .passw1 -->
|
310 |
-
|
311 |
-
<p class="passw2">
|
312 |
-
<label for="passw2">'. __('Repeat Password', 'profilebuilder').'</label>
|
313 |
-
<input class="password" name="passw2" type="password" id="passw2" value="'.$_POST['passw2'].'" />
|
314 |
-
</p><!-- .passw2 -->';
|
315 |
-
$recoverPasswordFilterArray['inputPassword'] = apply_filters('wppb_recover_password_input', $recoverPasswordFilterArray['inputPassword']);
|
316 |
-
echo $recoverPasswordFilterArray['inputPassword'];
|
317 |
-
?>
|
318 |
-
<p class="form-submit">
|
319 |
-
<input name="recover_password2" type="submit" id="recover_password2" class="submit button" value="<?php _e('Reset Password', 'profilebuilder'); ?>" />
|
320 |
-
<input name="action2" type="hidden" id="action2" value="recover_password2" />
|
321 |
-
</p><!-- .form-submit -->
|
322 |
-
<?php wp_nonce_field('verify_true_password_recovery2', 'password_recovery_nonce_field2'); ?>
|
323 |
-
</form><!-- #recover_password -->
|
324 |
-
<?php
|
325 |
-
}
|
326 |
-
}else{
|
327 |
-
$recoverPasswordFilterArray['invalidKeyMessage'] = '<p class="warning"><b>'. __('ERROR:', 'profilebuilder') .'</b> '. __('Invalid key!', 'profilebuilder') .'</p><!-- .warning -->';
|
328 |
-
echo $recoverPasswordFilterArray['invalidKeyMessage'] = apply_filters('wppb_recover_password_invalid_key_message', $recoverPasswordFilterArray['invalidKeyMessage']);
|
329 |
-
}
|
330 |
-
|
331 |
-
}else{
|
332 |
-
//display error message and the form
|
333 |
-
if (($messageNo == '') || ($messageNo == '2') || ($messageNo == '4')){
|
334 |
-
$recoverPasswordFilterArray['messageDisplay1'] = '
|
335 |
-
<p class="warning">'.$message.'</p><!-- .warning -->';
|
336 |
-
$recoverPasswordFilterArray['messageDisplay1'] = apply_filters('wppb_recover_password_displayed_message1', $recoverPasswordFilterArray['messageDisplay1']);
|
337 |
-
echo $recoverPasswordFilterArray['messageDisplay1'];
|
338 |
-
|
339 |
-
echo '<form enctype="multipart/form-data" method="post" id="recover_password" class="user-forms" action="'.$address = wppb_curpageurl_password_recovery().'">';
|
340 |
-
|
341 |
-
$recoverPasswordFilterArray['notification'] = __('Please enter your username or email address.', 'profilebuilder').'<br/>'.__('You will receive a link to create a new password via email.', 'profilebuilder').'<br/><br/>';
|
342 |
-
$recoverPasswordFilterArray['notification'] = apply_filters('wppb_recover_password_message1', $recoverPasswordFilterArray['notification']);
|
343 |
-
echo $recoverPasswordFilterArray['notification'];
|
344 |
-
|
345 |
-
$recoverPasswordFilterArray['input'] = '
|
346 |
-
<p class="username_email">
|
347 |
-
<label for="username_email">'. __('Username or E-mail', 'profilebuilder').'</label>
|
348 |
-
<input class="text-input" name="username_email" type="text" id="username_email" value="'.$_POST['username_email'].'" />
|
349 |
-
</p><!-- .username_email -->';
|
350 |
-
$recoverPasswordFilterArray['input'] = apply_filters('wppb_recover_password_input', $recoverPasswordFilterArray['input']);
|
351 |
-
echo $recoverPasswordFilterArray['input'];
|
352 |
-
|
353 |
-
|
354 |
-
?>
|
355 |
-
<p class="form-submit">
|
356 |
-
<input name="recover_password" type="submit" id="recover_password" class="submit button" value="<?php _e('Get New Password', 'profilebuilder'); ?>" />
|
357 |
-
<input name="action" type="hidden" id="action" value="recover_password" />
|
358 |
-
</p><!-- .form-submit -->
|
359 |
-
<?php wp_nonce_field('verify_true_password_recovery', 'password_recovery_nonce_field'); ?>
|
360 |
-
</form><!-- #recover_password -->
|
361 |
-
<?php
|
362 |
-
}elseif ($messageNo == '5'){
|
363 |
-
$recoverPasswordFilterArray['messageDisplay1'] = '
|
364 |
-
<p class="warning">'.$message.'</p><!-- .warning -->';
|
365 |
-
$recoverPasswordFilterArray['messageDisplay1'] = apply_filters('wppb_recover_password_displayed_message1', $recoverPasswordFilterArray['messageDisplay1']);
|
366 |
-
echo $recoverPasswordFilterArray['messageDisplay1'];
|
367 |
-
}else{
|
368 |
-
//display success message
|
369 |
-
$recoverPasswordFilterArray['messageDisplay2'] = '
|
370 |
-
<p class="success">'.$message.'</p><!-- .success -->';
|
371 |
-
$recoverPasswordFilterArray['messageDisplay2'] = apply_filters('wppb_recover_password_displayed_message2', $recoverPasswordFilterArray['messageDisplay2']);
|
372 |
-
echo $recoverPasswordFilterArray['messageDisplay2'];
|
373 |
-
}
|
374 |
-
}
|
375 |
-
/* use this action hook to add extra content after the password recovery form. */
|
376 |
-
do_action( 'wppb_after_recover_password_fields' );
|
377 |
-
?>
|
378 |
-
</div>
|
379 |
-
|
380 |
-
<?php
|
381 |
-
$output = ob_get_contents();
|
382 |
-
ob_end_clean();
|
383 |
-
|
384 |
-
$recoverPasswordFilterArray = apply_filters('wppb_recover_password', $recoverPasswordFilterArray);
|
385 |
-
|
386 |
-
return $output;
|
387 |
-
}
|
388 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/front-end/wppb.register.php
DELETED
@@ -1,844 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function wppb_front_end_register($atts){
|
4 |
-
ob_start();
|
5 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
6 |
-
global $current_user;
|
7 |
-
global $wp_roles;
|
8 |
-
global $wpdb;
|
9 |
-
global $error;
|
10 |
-
$agreed = true;
|
11 |
-
$new_user = 'no';
|
12 |
-
$registerFilterArray = array();
|
13 |
-
$extraFieldsErrorHolder = array(); //we will use this array to store the ID's of the extra-fields left uncompleted
|
14 |
-
get_currentuserinfo();
|
15 |
-
|
16 |
-
/* variables used to verify if all required fields were submitted*/
|
17 |
-
$firstnameComplete = 'yes';
|
18 |
-
$lastnameComplete = 'yes';
|
19 |
-
$nicknameComplete = 'yes';
|
20 |
-
$websiteComplete = 'yes';
|
21 |
-
$aimComplete = 'yes';
|
22 |
-
$yahooComplete = 'yes';
|
23 |
-
$jabberComplete = 'yes';
|
24 |
-
$bioComplete = 'yes';
|
25 |
-
/* END variables used to verify if all required fields were submitted*/
|
26 |
-
|
27 |
-
|
28 |
-
/* Load registration file. */
|
29 |
-
require_once( ABSPATH . WPINC . '/registration.php' );
|
30 |
-
|
31 |
-
/* Check if users can register. */
|
32 |
-
$registration = get_option( 'users_can_register' );
|
33 |
-
|
34 |
-
|
35 |
-
//fallback if the file was largen then post_max_size, case in which no errors can be saved in $_FILES[fileName]['error']
|
36 |
-
if (empty($_FILES) && empty($_POST) && isset($_SERVER['REQUEST_METHOD']) && strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
|
37 |
-
$registerFilterArray['noPostError'] = '
|
38 |
-
<p class="error">'.
|
39 |
-
__('The information size you were trying to submit was larger than', 'profilebuilder') .' '. ServerMaxUploadSizeMega .'b!<br/>'.
|
40 |
-
__('This is usually caused by a large file(s) trying to be uploaded.', 'profilebuilder') .'<br/>'.
|
41 |
-
__('Since it was also larger than', 'profilebuilder') .' '. ServerMaxPostSizeMega .'b, '. __('no additional information is available.', 'profilebuilder'). '<br/>'.
|
42 |
-
__('The user was NOT created!', 'profilebuilder') .
|
43 |
-
'</p>';
|
44 |
-
$registerFilterArray['noPostError'] = apply_filters('wppb_register_no_post_error_message', $registerFilterArray['noPostError']);
|
45 |
-
echo $registerFilterArray['noPostError'];
|
46 |
-
}
|
47 |
-
|
48 |
-
/* If user registered, input info. */
|
49 |
-
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'adduser' && wp_verify_nonce($_POST['register_nonce_field'],'verify_true_registration') ) {
|
50 |
-
//global $wp_roles;
|
51 |
-
|
52 |
-
//get value sent in the shortcode as parameter, default to "subscriber" if not set
|
53 |
-
extract(shortcode_atts(array('role' => 'subscriber'), $atts));
|
54 |
-
|
55 |
-
//check if the specified role exists in the database, else fall back to the "safe-zone"
|
56 |
-
$found = get_role($role);
|
57 |
-
|
58 |
-
if ($found != null)
|
59 |
-
$aprovedRole = $role;
|
60 |
-
else $aprovedRole = get_option( 'default_role' );
|
61 |
-
|
62 |
-
$user_pass = esc_attr( $_POST['passw1'] );
|
63 |
-
|
64 |
-
/* use filters to modify (if needed) the posted data before creating the user-data */
|
65 |
-
$user_pass = apply_filters('wppb_register_posted_password', $user_pass);
|
66 |
-
$_POST['user_name'] = apply_filters('wppb_register_posted_email', $_POST['user_name']);
|
67 |
-
$_POST['first_name'] = apply_filters('wppb_register_posted_first_name', $_POST['first_name']);
|
68 |
-
$_POST['last_name'] = apply_filters('wppb_register_posted_last_name', $_POST['last_name']);
|
69 |
-
$_POST['nickname'] = apply_filters('wppb_register_posted_nickname', $_POST['nickname']);
|
70 |
-
$_POST['email'] = apply_filters('wppb_register_posted_email', $_POST['email']);
|
71 |
-
$_POST['website'] = apply_filters('wppb_register_posted_website', $_POST['website']);
|
72 |
-
$_POST['aim'] = apply_filters('wppb_register_posted_aim', $_POST['aim']);
|
73 |
-
$_POST['yim'] = apply_filters('wppb_register_posted_yahoo', $_POST['yim']);
|
74 |
-
$_POST['jabber'] = apply_filters('wppb_register_posted_jabber', $_POST['jabber']);
|
75 |
-
$_POST['description'] = apply_filters('wppb_register_posted_bio', $_POST['description']);
|
76 |
-
/* END use filters to modify (if needed) the posted data before creating the user-data */
|
77 |
-
|
78 |
-
$userdata = array(
|
79 |
-
'user_pass' => $user_pass,
|
80 |
-
'user_login' => esc_attr( $_POST['user_name'] ),
|
81 |
-
'first_name' => esc_attr( $_POST['first_name'] ),
|
82 |
-
'last_name' => esc_attr( $_POST['last_name'] ),
|
83 |
-
'nickname' => esc_attr( $_POST['nickname'] ),
|
84 |
-
'user_email' => esc_attr( $_POST['email'] ),
|
85 |
-
'user_url' => esc_attr( $_POST['website'] ),
|
86 |
-
'aim' => esc_attr( $_POST['aim'] ),
|
87 |
-
'yim' => esc_attr( $_POST['yim'] ),
|
88 |
-
'jabber' => esc_attr( $_POST['jabber'] ),
|
89 |
-
'description' => esc_attr( $_POST['description'] ),
|
90 |
-
'role' => $aprovedRole);
|
91 |
-
|
92 |
-
//get required and shown fields
|
93 |
-
$wppb_defaultOptions = get_option('wppb_default_settings');
|
94 |
-
|
95 |
-
//check if the user agreed to the terms and conditions (if it was set)
|
96 |
-
$wppb_premium = wppb_plugin_dir . '/premium/functions/';
|
97 |
-
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
98 |
-
$wppbFetchArray = get_option('wppb_custom_fields');
|
99 |
-
foreach ( $wppbFetchArray as $key => $value){
|
100 |
-
switch ($value['item_type']) {
|
101 |
-
case "agreeToTerms":{
|
102 |
-
$agreed = false;
|
103 |
-
if ( (isset($_POST[$value['item_id'].$value['id']] )) && ($_POST[$value['item_id'].$value['id']] == 'agree'))
|
104 |
-
$agreed = true;
|
105 |
-
break;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
}
|
109 |
-
}
|
110 |
-
|
111 |
-
$registerFilterArray['extraError'] = ''; //this is for creating extra error message and bypassing registration
|
112 |
-
$registerFilterArray['extraError'] = apply_filters('wppb_register_extra_error', $registerFilterArray['extraError']);
|
113 |
-
|
114 |
-
/* check if all the required fields were completed */
|
115 |
-
if($wppb_defaultOptions['firstname'] == 'show'){
|
116 |
-
if (($wppb_defaultOptions['firstnameRequired'] == 'yes') && (trim($_POST['first_name']) == ''))
|
117 |
-
$firstnameComplete = 'no';
|
118 |
-
}elseif($wppb_defaultOptions['lastname'] == 'show'){
|
119 |
-
if (($wppb_defaultOptions['lastnameRequired'] == 'yes') && (trim($_POST['last_name']) == ''))
|
120 |
-
$lastnameComplete = 'no';
|
121 |
-
}elseif($wppb_defaultOptions['nickname'] == 'show'){
|
122 |
-
if (($wppb_defaultOptions['nicknameRequired'] == 'yes') && (trim($_POST['nickname']) == ''))
|
123 |
-
$nicknameComplete = 'no';
|
124 |
-
}elseif($wppb_defaultOptions['website'] == 'show'){
|
125 |
-
if (($wppb_defaultOptions['websiteRequired'] == 'yes') && (trim($_POST['website']) == ''))
|
126 |
-
$websiteComplete = 'no';
|
127 |
-
}elseif($wppb_defaultOptions['aim'] == 'show'){
|
128 |
-
if (($wppb_defaultOptions['aimRequired'] == 'yes') && (trim($_POST['aim']) == ''))
|
129 |
-
$aimComplete = 'no';
|
130 |
-
}elseif($wppb_defaultOptions['yahoo'] == 'show'){
|
131 |
-
if (($wppb_defaultOptions['yahooRequired'] == 'yes') && (trim($_POST['yahoo']) == ''))
|
132 |
-
$yahooComplete = 'no';
|
133 |
-
}elseif($wppb_defaultOptions['jabber'] == 'show'){
|
134 |
-
if (($wppb_defaultOptions['jabberRequired'] == 'yes') && (trim($_POST['jabber']) == ''))
|
135 |
-
$jabberComplete = 'no';
|
136 |
-
}elseif($wppb_defaultOptions['bio'] == 'show'){
|
137 |
-
if (($wppb_defaultOptions['bioRequired'] == 'yes') && (trim($_POST['description']) == ''))
|
138 |
-
$bioComplete = 'no';
|
139 |
-
}
|
140 |
-
|
141 |
-
// check the extra fields also
|
142 |
-
$wppb_premium = wppb_plugin_dir . '/premium/functions/';
|
143 |
-
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
144 |
-
$wppbFetchArray = get_option('wppb_custom_fields');
|
145 |
-
foreach ( $wppbFetchArray as $key => $value){
|
146 |
-
switch ($value['item_type']) {
|
147 |
-
case "input":{
|
148 |
-
$_POST[$value['item_id'].$value['id']] = apply_filters('wppb_register_input_custom_field_'.$value['id'], $_POST[$value['item_id'].$value['id']]);
|
149 |
-
if ($value['item_required'] != null){
|
150 |
-
if ($value['item_required'] == 'yes'){
|
151 |
-
if (trim($_POST[$value['item_id'].$value['id']]) == '')
|
152 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
153 |
-
}
|
154 |
-
}
|
155 |
-
break;
|
156 |
-
}
|
157 |
-
case "checkbox":{
|
158 |
-
$checkboxOption = '';
|
159 |
-
$checkboxValue = explode(',', $value['item_options']);
|
160 |
-
foreach($checkboxValue as $thisValue){
|
161 |
-
$thisValue = str_replace(' ', '#@space@#', $thisValue); //we need to escape the space-codification we sent earlier in the post
|
162 |
-
if (isset($_POST[$thisValue.$value['id']])){
|
163 |
-
$localValue = str_replace('#@space@#', ' ', $_POST[$thisValue.$value['id']]);
|
164 |
-
$checkboxOption = $checkboxOption.$localValue.',';
|
165 |
-
}
|
166 |
-
}
|
167 |
-
|
168 |
-
if ($value['item_required'] != null){
|
169 |
-
if ($value['item_required'] == 'yes'){
|
170 |
-
if (trim($checkboxOption) == '')
|
171 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
172 |
-
}
|
173 |
-
}
|
174 |
-
break;
|
175 |
-
}
|
176 |
-
case "radio":{
|
177 |
-
if ($value['item_required'] != null){
|
178 |
-
if ($value['item_required'] == 'yes'){
|
179 |
-
if (trim($_POST[$value['item_id'].$value['id']]) == '')
|
180 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
181 |
-
}
|
182 |
-
}
|
183 |
-
break;
|
184 |
-
}
|
185 |
-
case "select":{
|
186 |
-
if ($value['item_required'] != null){
|
187 |
-
if ($value['item_required'] == 'yes'){
|
188 |
-
if (trim($_POST[$value['item_id'].$value['id']]) == '')
|
189 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
190 |
-
}
|
191 |
-
}
|
192 |
-
break;
|
193 |
-
}
|
194 |
-
case "countrySelect":{
|
195 |
-
if ($value['item_required'] != null){
|
196 |
-
if ($value['item_required'] == 'yes'){
|
197 |
-
if (trim($_POST[$value['item_id'].$value['id']]) == '')
|
198 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
199 |
-
}
|
200 |
-
}
|
201 |
-
break;
|
202 |
-
}
|
203 |
-
case "timeZone":{
|
204 |
-
if ($value['item_required'] != null){
|
205 |
-
if ($value['item_required'] == 'yes'){
|
206 |
-
if (trim($_POST[$value['item_id'].$value['id']]) == '')
|
207 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
208 |
-
}
|
209 |
-
}
|
210 |
-
break;
|
211 |
-
}
|
212 |
-
case "datepicker":{
|
213 |
-
if ($value['item_required'] != null){
|
214 |
-
if ($value['item_required'] == 'yes'){
|
215 |
-
if (trim($_POST[$value['item_id'].$value['id']]) == '')
|
216 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
217 |
-
}
|
218 |
-
}
|
219 |
-
break;
|
220 |
-
}
|
221 |
-
case "textarea":{
|
222 |
-
if ($value['item_required'] != null){
|
223 |
-
if ($value['item_required'] == 'yes'){
|
224 |
-
if (trim($_POST[$value['item_id'].$value['id']]) == '')
|
225 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
226 |
-
}
|
227 |
-
}
|
228 |
-
break;
|
229 |
-
}
|
230 |
-
case "upload":{
|
231 |
-
$uploadedfile = $value['item_type'].$value['id'];
|
232 |
-
if ( (basename( $_FILES[$uploadedfile]['name']) == '')){
|
233 |
-
if ($value['item_required'] != null){
|
234 |
-
if ($value['item_required'] == 'yes')
|
235 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
236 |
-
}
|
237 |
-
}
|
238 |
-
break;
|
239 |
-
}
|
240 |
-
case "avatar":{
|
241 |
-
|
242 |
-
$uploadedfile = $value['item_type'].$value['id'];
|
243 |
-
|
244 |
-
if ( (basename( $_FILES[$uploadedfile]['name']) == '')){
|
245 |
-
if (($_FILES[$uploadedfile]['type'] != 'image/jpeg') || ($_FILES[$uploadedfile]['type'] != 'image/jpg') || ($_FILES[$uploadedfile]['type'] != 'image/png') || ($_FILES[$uploadedfile]['type'] != 'image/bmp') || ($_FILES[$uploadedfile]['type'] != 'image/pjpeg') || ($_FILES[$uploadedfile]['type'] != 'image/x-png'))
|
246 |
-
if ($value['item_required'] != null){
|
247 |
-
if ($value['item_required'] == 'yes')
|
248 |
-
array_push($extraFieldsErrorHolder, $value['id']);
|
249 |
-
}
|
250 |
-
}
|
251 |
-
break;
|
252 |
-
}
|
253 |
-
}
|
254 |
-
}
|
255 |
-
}
|
256 |
-
|
257 |
-
/* END check if all the required fields were completed */
|
258 |
-
|
259 |
-
if ($registerFilterArray['extraError'] != '')
|
260 |
-
$error = $registerFilterArray['extraError'];
|
261 |
-
elseif ( !$userdata['user_login'] )
|
262 |
-
$error = __('A username is required for registration.', 'profilebuilder');
|
263 |
-
elseif ( username_exists($userdata['user_login']) )
|
264 |
-
$error = __('Sorry, that username already exists!', 'profilebuilder');
|
265 |
-
elseif ( !is_email($userdata['user_email'], true) )
|
266 |
-
$error = __('You must enter a valid email address.', 'profilebuilder');
|
267 |
-
elseif ( email_exists($userdata['user_email']) )
|
268 |
-
$error = __('Sorry, that email address is already used!', 'profilebuilder');
|
269 |
-
elseif (( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) || ( $_POST['passw1'] != $_POST['passw2'] )){
|
270 |
-
if ( empty($_POST['passw1'] ) || empty( $_POST['passw2'] )) //verify if the user has completed both password fields
|
271 |
-
$error = __('You didn\'t complete one of the password-fields!', 'profilebuilder');
|
272 |
-
elseif ( $_POST['passw1'] != $_POST['passw2'] ) //verify if the the password and the retyped password are a match
|
273 |
-
$error = __('The entered passwords don\'t match!', 'profilebuilder');
|
274 |
-
}
|
275 |
-
elseif ( $agreed == false )
|
276 |
-
$error = __('You must agree to the terms and conditions before registering!', 'profilebuilder');
|
277 |
-
elseif(($firstnameComplete == 'no' || $lastnameComplete == 'no' || $nicknameComplete == 'no' || $websiteComplete == 'no' || $aimComplete == 'no' || $yahooComplete == 'no' || $jabberComplete == 'no' || $bioComplete == 'no' ) || !empty($extraFieldsErrorHolder))
|
278 |
-
$error = __('The account was NOT created!', 'profilebuilder') .'<br/>'. __('(Several required fields were left uncompleted)', 'profilebuilder');
|
279 |
-
else{
|
280 |
-
$registered_name = $_POST['user_name'];
|
281 |
-
$new_user = wp_insert_user( $userdata );
|
282 |
-
|
283 |
-
/* add the extra profile information */
|
284 |
-
$wppb_premium = wppb_plugin_dir . '/premium/functions/';
|
285 |
-
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
286 |
-
$wppbFetchArray = get_option('wppb_custom_fields');
|
287 |
-
foreach ( $wppbFetchArray as $key => $value){
|
288 |
-
switch ($value['item_type']) {
|
289 |
-
case "input":{
|
290 |
-
add_user_meta( $new_user, 'custom_field_'.$value['id'], esc_attr($_POST[$value['item_id'].$value['id']]) );
|
291 |
-
break;
|
292 |
-
}
|
293 |
-
case "hiddenInput":{
|
294 |
-
add_user_meta( $new_user, 'custom_field_'.$value['id'], esc_attr($_POST[$value['item_id'].$value['id']]) );
|
295 |
-
break;
|
296 |
-
}
|
297 |
-
case "checkbox":{
|
298 |
-
$checkboxOption = '';
|
299 |
-
$checkboxValue = explode(',', $value['item_options']);
|
300 |
-
foreach($checkboxValue as $thisValue){
|
301 |
-
$thisValue = str_replace(' ', '#@space@#', $thisValue); //we need to escape the space-codification we sent earlier in the post
|
302 |
-
if (isset($_POST[$thisValue.$value['id']])){
|
303 |
-
$localValue = str_replace('#@space@#', ' ', $_POST[$thisValue.$value['id']]);
|
304 |
-
$checkboxOption = $checkboxOption.$localValue.',';
|
305 |
-
}
|
306 |
-
}
|
307 |
-
|
308 |
-
add_user_meta( $new_user, 'custom_field_'.$value['id'], $checkboxOption );
|
309 |
-
break;
|
310 |
-
}
|
311 |
-
case "radio":{
|
312 |
-
add_user_meta( $new_user, 'custom_field_'.$value['id'], $_POST[$value['item_id'].$value['id']] );
|
313 |
-
break;
|
314 |
-
}
|
315 |
-
case "select":{
|
316 |
-
add_user_meta( $new_user, 'custom_field_'.$value['id'], $_POST[$value['item_id'].$value['id']] );
|
317 |
-
break;
|
318 |
-
}
|
319 |
-
case "countrySelect":{
|
320 |
-
update_user_meta( $new_user, 'custom_field_'.$value['id'], $_POST[$value['item_id'].$value['id']] );
|
321 |
-
break;
|
322 |
-
}
|
323 |
-
case "timeZone":{
|
324 |
-
update_user_meta( $new_user, 'custom_field_'.$value['id'], $_POST[$value['item_id'].$value['id']] );
|
325 |
-
break;
|
326 |
-
}
|
327 |
-
case "datepicker":{
|
328 |
-
update_user_meta( $new_user, 'custom_field_'.$value['id'], $_POST[$value['item_id'].$value['id']] );
|
329 |
-
break;
|
330 |
-
}
|
331 |
-
case "textarea":{
|
332 |
-
add_user_meta( $new_user, 'custom_field_'.$value['id'], esc_attr($_POST[$value['item_id'].$value['id']]) );
|
333 |
-
break;
|
334 |
-
}
|
335 |
-
case "upload":{
|
336 |
-
|
337 |
-
$uploadedfile = $value['item_type'].$value['id'];
|
338 |
-
|
339 |
-
//first we need to verify if we don't try to upload a 0b or 0 length file
|
340 |
-
if ( (basename( $_FILES[$uploadedfile]['name']) != '')){
|
341 |
-
|
342 |
-
//second we need to verify if the uploaded file size is less then the set file size in php.ini
|
343 |
-
if (($_FILES[$uploadedfile]['size'] < ServerMaxUploadSizeByte) && ($_FILES[$uploadedfile]['size'] !=0)){
|
344 |
-
//we need to prepare the basename of the file, so that ' becomes ` as ' gives an error
|
345 |
-
$fileName = basename( $_FILES[$uploadedfile]['name']);
|
346 |
-
$finalFileName = '';
|
347 |
-
|
348 |
-
for ($i=0; $i < strlen($fileName); $i++){
|
349 |
-
if ($fileName[$i] == "'")
|
350 |
-
$finalFileName .= '`';
|
351 |
-
else $finalFileName .= $fileName[$i];
|
352 |
-
}
|
353 |
-
|
354 |
-
//create the target path for uploading
|
355 |
-
$target_path = "wp-content/uploads/profile_builder/attachments/";
|
356 |
-
$target_path = $target_path . 'userID_'.$new_user.'_attachment_'. $finalFileName;
|
357 |
-
|
358 |
-
if (move_uploaded_file($_FILES[$uploadedfile]['tmp_name'], $target_path)){
|
359 |
-
$upFile = get_bloginfo('home').'/'.$target_path;
|
360 |
-
add_user_meta( $new_user, 'custom_field_'.$value['id'], $upFile );
|
361 |
-
$pictureUpload = 'yes';
|
362 |
-
}
|
363 |
-
}
|
364 |
-
}
|
365 |
-
break;
|
366 |
-
}
|
367 |
-
case "avatar":{
|
368 |
-
|
369 |
-
$uploadedfile = $value['item_type'].$value['id'];
|
370 |
-
$target_path_original = "wp-content/uploads/profile_builder/avatars/";
|
371 |
-
$fileName = $_FILES[$uploadedfile]['name'];
|
372 |
-
$finalFileName = '';
|
373 |
-
|
374 |
-
for ($i=0; $i < strlen($fileName); $i++){
|
375 |
-
if ($fileName[$i] == "'")
|
376 |
-
$finalFileName .= '`';
|
377 |
-
elseif ($fileName[$i] == ' ')
|
378 |
-
$finalFileName .= '_';
|
379 |
-
else $finalFileName .= $fileName[$i];
|
380 |
-
}
|
381 |
-
|
382 |
-
$fileName = $finalFileName;
|
383 |
-
|
384 |
-
$target_path = $target_path_original . 'userID_'.$new_user.'_originalAvatar_'. $fileName;
|
385 |
-
|
386 |
-
/* when trying to upload file, be sure it's one of the accepted image file-types */
|
387 |
-
if ( (($_FILES[$uploadedfile]['type'] == 'image/jpeg') || ($_FILES[$uploadedfile]['type'] == 'image/jpg') || ($_FILES[$uploadedfile]['type'] == 'image/png') || ($_FILES[$uploadedfile]['type'] == 'image/bmp') || ($_FILES[$uploadedfile]['type'] == 'image/pjpeg') || ($_FILES[$uploadedfile]['type'] == 'image/x-png')) && (($_FILES[$uploadedfile]['size'] < ServerMaxUploadSizeByte) && ($_FILES[$uploadedfile]['size'] !=0)) ){
|
388 |
-
$wp_filetype = wp_check_filetype(basename( $_FILES[$uploadedfile]['name']), null );
|
389 |
-
$attachment = array('post_mime_type' => $wp_filetype['type'],
|
390 |
-
'post_title' => $fileName, //preg_replace('/\.[^.]+$/', '', basename($_FILES[$uploadedfile]['name'])),
|
391 |
-
'post_content' => '',
|
392 |
-
'post_status' => 'inherit'
|
393 |
-
);
|
394 |
-
|
395 |
-
|
396 |
-
$attach_id = wp_insert_attachment( $attachment, $target_path);
|
397 |
-
|
398 |
-
$upFile = image_downsize( $attach_id, 'thumbnail' );
|
399 |
-
$upFile = $upFile[0];
|
400 |
-
|
401 |
-
//if file upload succeded
|
402 |
-
if (move_uploaded_file($_FILES[$uploadedfile]['tmp_name'], $target_path)){
|
403 |
-
add_user_meta( $new_user, 'custom_field_'.$value['id'], $upFile );
|
404 |
-
$avatarUpload = 'yes';
|
405 |
-
}
|
406 |
-
else $avatarUpload = 'no';
|
407 |
-
}
|
408 |
-
if (($_FILES[$uploadedfile]['type'] == ''))
|
409 |
-
$avatarUpload = 'yes';
|
410 |
-
|
411 |
-
break;
|
412 |
-
}
|
413 |
-
}
|
414 |
-
}
|
415 |
-
}
|
416 |
-
|
417 |
-
|
418 |
-
//send an email to the admin regarding each and every new subscriber
|
419 |
-
$bloginfo = get_bloginfo( 'name' );
|
420 |
-
$registerFilterArray['adminMessageOnRegistration'] = '';
|
421 |
-
$registerFilterArray['adminMessageOnRegistration'] = __('New subscriber on', 'profilebuilder') .' '.$bloginfo . "\r\n\r\n";
|
422 |
-
$registerFilterArray['adminMessageOnRegistration'] .= __('Username', 'profilebuilder') .': '. esc_attr($_POST['user_name']) . "\r\n";
|
423 |
-
$registerFilterArray['adminMessageOnRegistration'] .= __('E-mail', 'profilebuilder') .': '. esc_attr($_POST['email']) . "\r\n";
|
424 |
-
$registerFilterArray['adminMessageOnRegistration'] = apply_filters('wppb_register_admin_message_content', $registerFilterArray['adminMessageOnRegistration']);
|
425 |
-
|
426 |
-
$registerFilterArray['adminMessageOnRegistrationTitle'] = '['. $bloginfo .']'. __('A new subscriber has (been) registered!');
|
427 |
-
$registerFilterArray['adminMessageOnRegistrationTitle'] = apply_filters ('wppb_register_admin_message_title', $registerFilterArray['adminMessageOnRegistrationTitle']);
|
428 |
-
|
429 |
-
if (trim($registerFilterArray['adminMessageOnRegistration']) != '')
|
430 |
-
wp_mail(get_option('admin_email'), $registerFilterArray['adminMessageOnRegistrationTitle'], $registerFilterArray['adminMessageOnRegistration']);
|
431 |
-
|
432 |
-
|
433 |
-
//send an email to the newly registered user, if this option was selected
|
434 |
-
if (isset($_POST['send_credentials_via_email']) && ($_POST['send_credentials_via_email'] == 'sending')){
|
435 |
-
//change these variables to modify sent email message, destination and source.
|
436 |
-
$email = $_POST['email'];
|
437 |
-
$mailPassword = $_POST['passw1'];
|
438 |
-
$mailUsername = $_POST['user_name'];
|
439 |
-
|
440 |
-
$registerFilterArray['userMessageFrom'] = get_bloginfo('name');
|
441 |
-
$registerFilterArray['userMessageFrom'] = apply_filters('wppb_register_from_email_content', $registerFilterArray['userMessageFrom']);
|
442 |
-
|
443 |
-
$registerFilterArray['userMessageSubject'] = 'A new account has been created for you.';
|
444 |
-
$registerFilterArray['userMessageSubject'] = apply_filters('wppb_register_subject_email_content', $registerFilterArray['userMessageSubject']);
|
445 |
-
|
446 |
-
$registerFilterArray['userMessageContent'] = 'Welcome to blog '.$registerFilterArray['userMessageFrom'].'. Your username is:'.$mailUsername.' and password:'.$mailPassword;
|
447 |
-
$registerFilterArray['userMessageContent'] = apply_filters('wppb_register_email_content', $registerFilterArray['userMessageContent']);
|
448 |
-
|
449 |
-
$messageSent = wp_mail( $email, $registerFilterArray['userMessageSubject'], $registerFilterArray['userMessageContent']);
|
450 |
-
if( $messageSent == TRUE)
|
451 |
-
$sentEmailStatus = 2;
|
452 |
-
else
|
453 |
-
$sentEmailStatus = 1;
|
454 |
-
}
|
455 |
-
|
456 |
-
}
|
457 |
-
}
|
458 |
-
|
459 |
-
?>
|
460 |
-
<div class="wppb_holder" id="wppb_register">
|
461 |
-
<?php
|
462 |
-
if ( is_user_logged_in() && !current_user_can( 'create_users' ) ) :
|
463 |
-
|
464 |
-
global $user_ID;
|
465 |
-
$login = get_userdata( $user_ID );
|
466 |
-
if($login->display_name == ''){
|
467 |
-
$login->display_name = $login->user_login;
|
468 |
-
}
|
469 |
-
$registerFilterArray['loginLogoutError'] = '
|
470 |
-
<p class="log-in-out alert">'. __('You are logged in as', 'profilebuilder') .' <a href="'.get_author_posts_url( $login->ID ).'" title="'.$login->display_name.'">'.$login->display_name.'</a>. '. __('You don\'t need another account.', 'profilebuilder') .' <a href="'.wp_logout_url(get_permalink()).'" title="'. __('Log out of this account.', 'profilebuilder') .'">'. __('Logout', 'profilebuilder') .' »</a></p><!-- .log-in-out .alert -->';
|
471 |
-
$registerFilterArray['loginLogoutError'] = apply_filters('wppb_register_have_account_alert', $registerFilterArray['loginLogoutError']);
|
472 |
-
echo $registerFilterArray['loginLogoutError'];
|
473 |
-
|
474 |
-
elseif ( $new_user != 'no' ) :
|
475 |
-
if ( current_user_can( 'create_users' ) ){
|
476 |
-
$registerFilterArray['registrationMessage1'] = '
|
477 |
-
<p class="success">'. __('A user account has been created for', 'profilebuilder') .' '. $registered_name. '.</p><!-- .success -->';
|
478 |
-
$registerFilterArray['registrationMessage1'] = apply_filters('wppb_register_account_created1', $registerFilterArray['registrationMessage1']);
|
479 |
-
echo $registerFilterArray['registrationMessage1'];
|
480 |
-
|
481 |
-
$wppb_addons = wppb_plugin_dir . '/premium/addon/';
|
482 |
-
if (file_exists ( $wppb_addons.'addon.php' )){
|
483 |
-
//check to see if the redirecting addon is present and activated
|
484 |
-
$wppb_premium_addon_settings = get_option('wppb_premium_addon_settings');
|
485 |
-
if ($wppb_premium_addon_settings['customRedirect'] == 'show'){
|
486 |
-
//check to see if the redirect location is not an empty string and is activated
|
487 |
-
$customRedirectSettings = get_option('customRedirectSettings');
|
488 |
-
if ((trim($customRedirectSettings['afterRegisterTarget']) != '') && ($customRedirectSettings['afterRegister'] == 'yes')){
|
489 |
-
$redirectLink = trim($customRedirectSettings['afterRegisterTarget']);
|
490 |
-
$findHttp = strpos($redirectLink, 'http');
|
491 |
-
if ($findHttp === false)
|
492 |
-
$redirectLink = 'http://'. $redirectLink;
|
493 |
-
}
|
494 |
-
}
|
495 |
-
}
|
496 |
-
$registerFilterArray['redirectMessage1'] = '<font color="black">You will soon be redirected automatically. If you see this page for more than 3 second, please click <a href="'.$redirectLink.'">here</a>.<meta http-equiv="Refresh" content="3;url='.$redirectLink.'" /></font><br/><br/>';
|
497 |
-
$registerFilterArray['redirectMessage1'] = apply_filters('wppb_register_redirect_after_creation1', $registerFilterArray['redirectMessage1']);
|
498 |
-
echo $registerFilterArray['redirectMessage1'];
|
499 |
-
|
500 |
-
}else{
|
501 |
-
$registerFilterArray['registrationMessage2'] = '
|
502 |
-
<p class="success">'. __('Thank you for registering', 'profilebuilder') .' '. $registered_name .'.</p><!-- .success -->';
|
503 |
-
$registerFilterArray['registrationMessage2'] = apply_filters('wppb_register_account_created2', $registerFilterArray['registrationMessage2']);
|
504 |
-
echo $registerFilterArray['registrationMessage2'];
|
505 |
-
|
506 |
-
$wppb_addons = wppb_plugin_dir . '/premium/addon/';
|
507 |
-
if (file_exists ( $wppb_addons.'addon.php' )){
|
508 |
-
//check to see if the redirecting addon is present and activated
|
509 |
-
$wppb_premium_addon_settings = get_option('wppb_premium_addon_settings');
|
510 |
-
if ($wppb_premium_addon_settings['customRedirect'] == 'show'){
|
511 |
-
//check to see if the redirect location is not an empty string and is activated
|
512 |
-
$customRedirectSettings = get_option('customRedirectSettings');
|
513 |
-
if ((trim($customRedirectSettings['afterRegisterTarget']) != '') && ($customRedirectSettings['afterRegister'] == 'yes')){
|
514 |
-
$redirectLink = trim($customRedirectSettings['afterRegisterTarget']);
|
515 |
-
$findHttp = strpos($redirectLink, 'http');
|
516 |
-
if ($findHttp === false)
|
517 |
-
$redirectLink = 'http://'. $redirectLink;
|
518 |
-
}
|
519 |
-
}
|
520 |
-
}
|
521 |
-
$registerFilterArray['redirectMessage2'] = '<font color="black">You will soon be redirected automatically. If you see this page for more than 3 second, please click <a href="'.$redirectLink.'">here</a>.<meta http-equiv="Refresh" content="3;url='.$redirectLink.'" /></font><br/><br/>';
|
522 |
-
$registerFilterArray['redirectMessage2'] = apply_filters('wppb_register_redirect_after_creation2', $registerFilterArray['redirectMessage2']);
|
523 |
-
echo $registerFilterArray['redirectMessage2'];
|
524 |
-
}
|
525 |
-
|
526 |
-
|
527 |
-
if(isset($_POST['send_credentials_via_email'])){
|
528 |
-
if ($sentEmailStatus == 1){
|
529 |
-
$registerFilterArray['emailMessage1'] = '<p class="error">'. __('An error occured while trying to send the notification email.', 'profilebuilder') .'</p><!-- .error -->';
|
530 |
-
$registerFilterArray['emailMessage1'] = apply_filters('wppb_register_send_notification_email_fail', $registerFilterArray['emailMessage1']);
|
531 |
-
echo $registerFilterArray['emailMessage1'];
|
532 |
-
}elseif ($sentEmailStatus == 2){
|
533 |
-
$registerFilterArray['emailMessage2'] = '<p class="success">'. __('An email containing the username and password was successfully sent.', 'profilebuilder') .'</p><!-- .success -->';
|
534 |
-
$registerFilterArray['emailMessage2'] = apply_filters('wppb_register_send_notification_email_success', $registerFilterArray['emailMessage2']);
|
535 |
-
echo $registerFilterArray['emailMessage2'];
|
536 |
-
}
|
537 |
-
}
|
538 |
-
?>
|
539 |
-
<?php
|
540 |
-
else :
|
541 |
-
if ( $error ) :
|
542 |
-
$registerFilterArray['errorMessage'] = '<p class="error">'. $error .'</p><!-- .error -->';
|
543 |
-
$registerFilterArray['errorMessage'] = apply_filters('wppb_register_error_messaging', $registerFilterArray['errorMessage']);
|
544 |
-
echo $registerFilterArray['errorMessage'];
|
545 |
-
endif;
|
546 |
-
|
547 |
-
if ( current_user_can( 'create_users' ) && $registration ) :
|
548 |
-
$registerFilterArray['alertMessage1'] = '<p class="alert">'. __('Users can register themselves or you can manually create users here.', 'profilebuilder') .'</p><!-- .alert -->';
|
549 |
-
$registerFilterArray['alertMessage1'] = apply_filters('wppb_register_alert_messaging1', $registerFilterArray['alertMessage1']);
|
550 |
-
echo $registerFilterArray['alertMessage1'];
|
551 |
-
|
552 |
-
elseif ( current_user_can( 'create_users' ) ) :
|
553 |
-
$registerFilterArray['alertMessage2'] = '<p class="alert">'. __('Users cannot currently register themselves, but you can manually create users here.', 'profilebuilder') .'</p><!-- .alert -->';
|
554 |
-
$registerFilterArray['alertMessage2'] = apply_filters('wppb_register_alert_messaging2', $registerFilterArray['alertMessage2']);
|
555 |
-
echo $registerFilterArray['alertMessage2'];
|
556 |
-
|
557 |
-
elseif ( !current_user_can( 'create_users' ) && !$registration) :
|
558 |
-
$registerFilterArray['alertMessage3'] = '<p class="alert">'. __('Only an administrator can add new users.', 'profilebuilder') .'</p><!-- .alert -->';
|
559 |
-
$registerFilterArray['alertMessage3'] = apply_filters('wppb_register_alert_messaging3', $registerFilterArray['alertMessage3']);
|
560 |
-
echo $registerFilterArray['alertMessage3'];
|
561 |
-
endif;
|
562 |
-
|
563 |
-
if ( $registration || current_user_can( 'create_users' ) ) :
|
564 |
-
/* use this action hook to add extra content before the register form. */
|
565 |
-
do_action( 'wppb_before_register_fields' );
|
566 |
-
?>
|
567 |
-
<form enctype="multipart/form-data" method="post" id="adduser" class="user-forms" action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>">
|
568 |
-
<?php
|
569 |
-
echo '<input type="hidden" name="MAX_FILE_SIZE" value="'.ServerMaxUploadSizeByte.'" /><!-- set the MAX_FILE_SIZE to the server\'s current max upload size in bytes -->';
|
570 |
-
|
571 |
-
$registerFilterArray['name1'] = '<p class="registerNameHeading"><strong>'. __('Name', 'profilebuilder') .'</strong></p>';
|
572 |
-
$registerFilterArray['name1'] = apply_filters('wppb_register_content_name1', $registerFilterArray['name1']);
|
573 |
-
echo $registerFilterArray['name1'];
|
574 |
-
|
575 |
-
if ($wppb_defaultOptions['username'] == 'show'){
|
576 |
-
$errorMark = '';
|
577 |
-
if ($wppb_defaultOptions['usernameRequired'] == 'yes'){
|
578 |
-
$errorMark = '<font color="red" title="This field is required for registration.">*</font>';
|
579 |
-
}
|
580 |
-
|
581 |
-
$registerFilterArray['name2'] = '
|
582 |
-
<p class="form-username">
|
583 |
-
<label for="user_name">'. __('Username', 'profilebuilder') .$errorMark.'</label>
|
584 |
-
<input class="text-input" name="user_name" type="text" id="user_name" value="'.trim($_POST['user_name']).'" />
|
585 |
-
<span class="wppb-description-delimiter">'. __('(required)', 'profilebuilder') .'</span>
|
586 |
-
</p><!-- .form-username -->';
|
587 |
-
$registerFilterArray['name2'] = apply_filters('wppb_register_content_name2', $registerFilterArray['name2']);
|
588 |
-
echo $registerFilterArray['name2'];
|
589 |
-
}
|
590 |
-
|
591 |
-
if ($wppb_defaultOptions['firstname'] == 'show'){
|
592 |
-
$errorVar = '';
|
593 |
-
$errorMark = '';
|
594 |
-
if ($wppb_defaultOptions['firstnameRequired'] == 'yes'){
|
595 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
596 |
-
if ((trim($_POST['first_name']) == '') && isset($_POST['first_name'])){
|
597 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field must be filled out before registering (It was marked as required by the administrator)."/>';
|
598 |
-
$errorVar = ' errorHolder';
|
599 |
-
}
|
600 |
-
}
|
601 |
-
|
602 |
-
$registerFilterArray['name3'] = '
|
603 |
-
<p class="first_name'.$errorVar.'">
|
604 |
-
<label for="first_name">'. __('First Name', 'profilebuilder') .$errorMark.'</label>
|
605 |
-
<input class="text-input" name="first_name" type="text" id="first_name" value="'.trim($_POST['first_name']).'" />
|
606 |
-
</p><!-- .first_name -->';
|
607 |
-
$registerFilterArray['name3'] = apply_filters('wppb_register_content_name3', $registerFilterArray['name3']);
|
608 |
-
echo $registerFilterArray['name3'];
|
609 |
-
}
|
610 |
-
|
611 |
-
if ($wppb_defaultOptions['lastname'] == 'show'){
|
612 |
-
$errorVar = '';
|
613 |
-
$errorMark = '';
|
614 |
-
if ($wppb_defaultOptions['lastnameRequired'] == 'yes'){
|
615 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
616 |
-
if ((trim($_POST['last_name']) == '') && isset($_POST['last_name'])){
|
617 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field must be filled out before registering (It was marked as required by the administrator)."/>';
|
618 |
-
$errorVar = ' errorHolder';
|
619 |
-
}
|
620 |
-
}
|
621 |
-
|
622 |
-
$registerFilterArray['name4'] = '
|
623 |
-
<p class="last_name'.$errorVar.'">
|
624 |
-
<label for="last_name">'. __('Last Name', 'profilebuilder') .$errorMark.'</label>
|
625 |
-
<input class="text-input" name="last_name" type="text" id="last_name" value="'.trim($_POST['last_name']).'" />
|
626 |
-
</p><!-- .last_name -->';
|
627 |
-
$registerFilterArray['name4'] = apply_filters('wppb_register_content_name4', $registerFilterArray['name4']);
|
628 |
-
echo $registerFilterArray['name4'];
|
629 |
-
}
|
630 |
-
|
631 |
-
if ($wppb_defaultOptions['nickname'] == 'show'){
|
632 |
-
$errorVar = '';
|
633 |
-
$errorMark = '';
|
634 |
-
if ($wppb_defaultOptions['nicknameRequired'] == 'yes'){
|
635 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
636 |
-
if ((trim($_POST['nickname']) == '') && isset($_POST['nickname'])){
|
637 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field must be filled out before registering (It was marked as required by the administrator)."/>';
|
638 |
-
$errorVar = ' errorHolder';
|
639 |
-
}
|
640 |
-
}
|
641 |
-
|
642 |
-
$registerFilterArray['name5'] = '
|
643 |
-
<p class="nickname'.$errorVar.'">
|
644 |
-
<label for="nickname">'. __('Nickname', 'profilebuilder') .$errorMark.'</label>
|
645 |
-
<input class="text-input" name="nickname" type="text" id="nickname" value="'.trim($_POST['nickname']).'" />
|
646 |
-
</p><!-- .nickname -->';
|
647 |
-
$registerFilterArray['name5'] = apply_filters('wppb_register_content_name5', $registerFilterArray['name5']);
|
648 |
-
echo $registerFilterArray['name5'];
|
649 |
-
}
|
650 |
-
|
651 |
-
$registerFilterArray['info1'] = '<p register="registerContactInfoHeading"><strong>'. __('Contact Info', 'profilebuilder') .'</strong></p>';
|
652 |
-
$registerFilterArray['info1'] = apply_filters('wppb_register_content_info1', $registerFilterArray['info1']);
|
653 |
-
echo $registerFilterArray['info1'];
|
654 |
-
|
655 |
-
if ($wppb_defaultOptions['email'] == 'show'){
|
656 |
-
$errorVar = '';
|
657 |
-
$errorMark = '';
|
658 |
-
if ($wppb_defaultOptions['emailRequired'] == 'yes'){
|
659 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
660 |
-
if ((trim($_POST['email']) == '') && isset($_POST['email']))
|
661 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field is required for registration."/>';
|
662 |
-
}
|
663 |
-
|
664 |
-
$registerFilterArray['info2'] = '
|
665 |
-
<p class="form-email">
|
666 |
-
<label for="email">'. __('E-mail', 'profilebuilder') .$errorMark.'</label>
|
667 |
-
<input class="text-input" name="email" type="text" id="email" value="'.trim($_POST['email']).'" />
|
668 |
-
<span class="wppb-description-delimiter">'. __('(required)', 'profilebuilder') .'</span>
|
669 |
-
</p><!-- .form-email -->';
|
670 |
-
$registerFilterArray['info2'] = apply_filters('wppb_register_content_info2', $registerFilterArray['info2']);
|
671 |
-
echo $registerFilterArray['info2'];
|
672 |
-
}
|
673 |
-
|
674 |
-
if ($wppb_defaultOptions['website'] == 'show'){
|
675 |
-
$errorVar = '';
|
676 |
-
$errorMark = '';
|
677 |
-
if ($wppb_defaultOptions['websiteRequired'] == 'yes'){
|
678 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
679 |
-
if ((trim($_POST['website']) == '') && isset($_POST['website'])){
|
680 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field must be filled out before registering (It was marked as required by the administrator)."/>';
|
681 |
-
$errorVar = ' errorHolder';
|
682 |
-
}
|
683 |
-
}
|
684 |
-
|
685 |
-
$registerFilterArray['info3'] = '
|
686 |
-
<p class="form-website'.$errorVar.'">
|
687 |
-
<label for="website">'. __('Website', 'profilebuilder') .$errorMark.'</label>
|
688 |
-
<input class="text-input" name="website" type="text" id="website" value="'.trim($_POST['website']).'" />
|
689 |
-
</p><!-- .form-website -->';
|
690 |
-
$registerFilterArray['info3'] = apply_filters('wppb_register_content_info3', $registerFilterArray['info3']);
|
691 |
-
echo $registerFilterArray['info3'];
|
692 |
-
}
|
693 |
-
|
694 |
-
if ($wppb_defaultOptions['aim'] == 'show'){
|
695 |
-
$errorVar = '';
|
696 |
-
$errorMark = '';
|
697 |
-
if ($wppb_defaultOptions['aimRequired'] == 'yes'){
|
698 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
699 |
-
if ((trim($_POST['aim']) == '') && isset($_POST['aim'])){
|
700 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field must be filled out before registering (It was marked as required by the administrator)."/>';
|
701 |
-
$errorVar = ' errorHolder';
|
702 |
-
}
|
703 |
-
}
|
704 |
-
|
705 |
-
$registerFilterArray['info4'] = '
|
706 |
-
<p class="form-aim'.$errorVar.'">
|
707 |
-
<label for="aim">'. __('AIM', 'profilebuilder') .$errorMark.'</label>
|
708 |
-
<input class="text-input" name="aim" type="text" id="aim" value="'.trim($_POST['aim']).'" />
|
709 |
-
</p><!-- .form-aim -->';
|
710 |
-
$registerFilterArray['info4'] = apply_filters('wppb_register_content_info4', $registerFilterArray['info4']);
|
711 |
-
echo $registerFilterArray['info4'];
|
712 |
-
}
|
713 |
-
|
714 |
-
if ($wppb_defaultOptions['yahoo'] == 'show'){
|
715 |
-
$errorVar = '';
|
716 |
-
$errorMark = '';
|
717 |
-
if ($wppb_defaultOptions['yahooRequired'] == 'yes'){
|
718 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
719 |
-
if ((trim($_POST['yim']) == '') && isset($_POST['yim'])){
|
720 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field must be filled out before registering (It was marked as required by the administrator)."/>';
|
721 |
-
$errorVar = ' errorHolder';
|
722 |
-
}
|
723 |
-
}
|
724 |
-
|
725 |
-
$registerFilterArray['info5'] = '
|
726 |
-
<p class="form-yim'.$errorVar.'">
|
727 |
-
<label for="yim">'. __('Yahoo IM', 'profilebuilder') .$errorMark.'</label>
|
728 |
-
<input class="text-input" name="yim" type="text" id="yim" value="'.trim($_POST['yim']).'" />
|
729 |
-
</p><!-- .form-yim -->';
|
730 |
-
$registerFilterArray['info5'] = apply_filters('wppb_register_content_info5', $registerFilterArray['info5']);
|
731 |
-
echo $registerFilterArray['info5'];
|
732 |
-
}
|
733 |
-
|
734 |
-
if ($wppb_defaultOptions['jabber'] == 'show'){
|
735 |
-
$errorVar = '';
|
736 |
-
$errorMark = '';
|
737 |
-
if ($wppb_defaultOptions['jabberRequired'] == 'yes'){
|
738 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
739 |
-
if ((trim($_POST['jabber']) == '') && isset($_POST['jabber'])){
|
740 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field must be filled out before registering (It was marked as required by the administrator)."/>';
|
741 |
-
$errorVar = ' errorHolder';
|
742 |
-
}
|
743 |
-
}
|
744 |
-
|
745 |
-
$registerFilterArray['info6'] = '
|
746 |
-
<p class="form-jabber'.$errorVar.'">
|
747 |
-
<label for="jabber">'. __('Jabber / Google Talk', 'profilebuilder') .$errorMark.'</label>
|
748 |
-
<input class="text-input" name="jabber" type="text" id="jabber" value="'.trim($_POST['jabber']).'" />
|
749 |
-
</p><!-- .form-jabber -->';
|
750 |
-
$registerFilterArray['info6'] = apply_filters('wppb_register_content_info6', $registerFilterArray['info6']);
|
751 |
-
echo $registerFilterArray['info6'];
|
752 |
-
}
|
753 |
-
|
754 |
-
$registerFilterArray['ay1'] = '<p class="registerAboutYourselfHeader"><strong>'. __('About Yourself', 'profilebuilder') .'</strong></p>';
|
755 |
-
$registerFilterArray['ay1'] = apply_filters('wppb_register_content_about_yourself1', $registerFilterArray['ay1']);
|
756 |
-
echo $registerFilterArray['ay1'];
|
757 |
-
|
758 |
-
if ($wppb_defaultOptions['bio'] == 'show'){
|
759 |
-
$errorVar = '';
|
760 |
-
$errorMark = '';
|
761 |
-
if ($wppb_defaultOptions['bioRequired'] == 'yes'){
|
762 |
-
$errorMark = '<font color="red" title="This field is marked as required by the administrator.">*</font>';
|
763 |
-
if ((trim($_POST['description']) == '') && isset($_POST['description'])){
|
764 |
-
$errorMark = '<img src="'.wppb_plugin_url . '/assets/images/pencil_delete.png" title="This field must be filled out before registering (It was marked as required by the administrator)."/>';
|
765 |
-
$errorVar = ' errorHolder';
|
766 |
-
}
|
767 |
-
}
|
768 |
-
|
769 |
-
$registerFilterArray['ay2'] = '
|
770 |
-
<p class="form-description'.$errorVar.'">
|
771 |
-
<label for="description">'. __('Biographical Info', 'profilebuilder') .$errorMark.'</label>
|
772 |
-
<textarea class="text-input" name="description" id="description" rows="5" cols="30">'.trim($_POST['description']).'</textarea>
|
773 |
-
</p><!-- .form-description -->';
|
774 |
-
$registerFilterArray['ay2'] = apply_filters('wppb_register_content_about_yourself2', $registerFilterArray['ay2']);
|
775 |
-
echo $registerFilterArray['ay2'];
|
776 |
-
}
|
777 |
-
|
778 |
-
if ($wppb_defaultOptions['password'] == 'show'){
|
779 |
-
$errorMark = '';
|
780 |
-
if ($wppb_defaultOptions['passwordRequired'] == 'yes'){
|
781 |
-
$errorMark = '<font color="red" title="This field is required for registration.">*</font>';
|
782 |
-
}
|
783 |
-
|
784 |
-
$registerFilterArray['ay3'] = '
|
785 |
-
<p class="form-password">
|
786 |
-
<label for="pass1">'. __('Password', 'profilebuilder') .$errorMark.'</label>
|
787 |
-
<input class="text-input" name="passw1" type="password" id="pass1" value="'.trim($_POST['passw1']).'" />
|
788 |
-
</p><!-- .form-password -->
|
789 |
-
|
790 |
-
<p class="form-password">
|
791 |
-
<label for="pass2">'. __('Repeat Password', 'profilebuilder') .$errorMark.'</label>
|
792 |
-
<input class="text-input" name="passw2" type="password" id="pass2" value="'.trim($_POST['passw2']).'" />
|
793 |
-
</p><!-- .form-password -->';
|
794 |
-
$registerFilterArray['ay3'] = apply_filters('wppb_register_content_about_yourself3', $registerFilterArray['ay3']);
|
795 |
-
echo $registerFilterArray['ay3'];
|
796 |
-
}
|
797 |
-
|
798 |
-
$wppb_premium = wppb_plugin_dir . '/premium/functions/';
|
799 |
-
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
800 |
-
require_once($wppb_premium.'extra.fields.php');
|
801 |
-
register_user_extra_fields($error, $_POST, $extraFieldsErrorHolder);
|
802 |
-
}
|
803 |
-
|
804 |
-
if (isset($_POST['send_credentials_via_email']))
|
805 |
-
$checkedVar = ' checked';
|
806 |
-
else $checkedVar = '';
|
807 |
-
$registerFilterArray['confirmationEmailForm'] = '
|
808 |
-
<p class="send-confirmation-email">
|
809 |
-
<label for="send-confirmation-email">
|
810 |
-
<input id="send_credentials_via_email" type="checkbox" name="send_credentials_via_email" value="sending"'. $checkedVar .'/>
|
811 |
-
<span class="wppb-description-delimiter"> '. __('Send these credentials via email.', 'profilebuilder') .'</span>
|
812 |
-
</label>
|
813 |
-
</p><!-- .send-confirmation-email -->';
|
814 |
-
$registerFilterArray['confirmationEmailForm'] = apply_filters('wppb_register_confirmation_email_form', $registerFilterArray['confirmationEmailForm']);
|
815 |
-
echo $registerFilterArray['confirmationEmailForm'];
|
816 |
-
?>
|
817 |
-
|
818 |
-
<p class="form-submit">
|
819 |
-
<input name="adduser" type="submit" id="addusersub" class="submit button" value="<?php if ( current_user_can( 'create_users' ) ) _e('Add User', 'profilebuilder'); else _e('Register', 'profilebuilder'); ?>" />
|
820 |
-
<input name="action" type="hidden" id="action" value="adduser" />
|
821 |
-
</p><!-- .form-submit -->
|
822 |
-
<?php
|
823 |
-
wp_nonce_field('verify_true_registration','register_nonce_field');
|
824 |
-
?>
|
825 |
-
</form><!-- #adduser -->
|
826 |
-
|
827 |
-
<?php
|
828 |
-
endif;
|
829 |
-
endif;
|
830 |
-
|
831 |
-
/* use this action hook to add extra content after the register form. */
|
832 |
-
do_action( 'wppb_after_register_fields' );
|
833 |
-
?>
|
834 |
-
|
835 |
-
</div>
|
836 |
-
<?php
|
837 |
-
$output = ob_get_contents();
|
838 |
-
ob_end_clean();
|
839 |
-
|
840 |
-
$registerFilterArray = apply_filters('wppb_register', $registerFilterArray);
|
841 |
-
|
842 |
-
return $output;
|
843 |
-
}
|
844 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/functions/functions.load.php
DELETED
@@ -1,185 +0,0 @@
|
|
1 |
-
<?php if (!defined('ProfileBuilderVersion')) exit('No direct script access allowed');
|
2 |
-
/*
|
3 |
-
Original Plugin Name: OptionTree
|
4 |
-
Original Plugin URI: http://wp.envato.com
|
5 |
-
Original Author: Derek Herman
|
6 |
-
Original Author URI: http://valendesigns.com
|
7 |
-
*/
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Functions Load
|
11 |
-
*
|
12 |
-
*/
|
13 |
-
/* whitelist options, you can add more register_settings changing the second parameter */
|
14 |
-
|
15 |
-
function wppb_register_settings() {
|
16 |
-
$premiumPresent = wppb_plugin_dir . '/premium/premium.php';
|
17 |
-
$addonPresent = wppb_plugin_dir . '/premium/addon/addon.php';
|
18 |
-
|
19 |
-
register_setting( 'wppb_option_group', 'wppb_default_settings' );
|
20 |
-
register_setting( 'wppb_default_style', 'wppb_default_style' );
|
21 |
-
register_setting( 'wppb_display_admin_settings', 'wppb_display_admin_settings' );
|
22 |
-
if (file_exists($premiumPresent)){
|
23 |
-
register_setting( 'wppb_profile_builder_pro_serial', 'wppb_profile_builder_pro_serial' );
|
24 |
-
}
|
25 |
-
if (file_exists($addonPresent)){
|
26 |
-
register_setting( 'wppb_premium_addon_settings', 'wppb_premium_addon_settings' );
|
27 |
-
register_setting( 'customRedirectSettings', 'customRedirectSettings' );
|
28 |
-
register_setting( 'userListingSettings', 'userListingSettings' );
|
29 |
-
}
|
30 |
-
|
31 |
-
|
32 |
-
}
|
33 |
-
|
34 |
-
|
35 |
-
function wppb_add_plugin_stylesheet() {
|
36 |
-
$wppb_showDefaultCss = get_option('wppb_default_style');
|
37 |
-
$styleUrl_default = wppb_plugin_url . '/assets/css/front.end.css';
|
38 |
-
$styleUrl_white = wppb_plugin_url . '/premium/assets/css/front.end.white.css';
|
39 |
-
$styleUrl_black = wppb_plugin_url . '/premium/assets/css/front.end.black.css';
|
40 |
-
$styleFile_default = wppb_plugin_dir . '/assets/css/front.end.css';
|
41 |
-
$styleFile_white = wppb_plugin_dir . '/premium/assets/css/front.end.white.css';
|
42 |
-
$styleFile_black = wppb_plugin_dir . '/premium/assets/css/front.end.black.css';
|
43 |
-
if ( (file_exists($styleFile_default)) && ($wppb_showDefaultCss == 'yes') ) {
|
44 |
-
wp_register_style('wppb_stylesheet', $styleUrl_default);
|
45 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
46 |
-
}elseif ( (file_exists($styleFile_white)) && ($wppb_showDefaultCss == 'white') ) {
|
47 |
-
wp_register_style('wppb_stylesheet', $styleUrl_white);
|
48 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
49 |
-
}elseif ( (file_exists($styleFile_black)) && ($wppb_showDefaultCss == 'black') ) {
|
50 |
-
wp_register_style('wppb_stylesheet', $styleUrl_black);
|
51 |
-
wp_enqueue_style( 'wppb_stylesheet');
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
|
56 |
-
function wppb_show_admin_bar($content){
|
57 |
-
global $current_user;
|
58 |
-
$admintSettingsPresent = get_option('wppb_display_admin_settings','not_found');
|
59 |
-
if ($admintSettingsPresent != 'not_found'){
|
60 |
-
$wppb_showAdminBar = get_option('wppb_display_admin_settings');
|
61 |
-
if ($current_user->ID != 0){
|
62 |
-
$userRole = ($current_user->data->wp_capabilities);
|
63 |
-
if ($userRole != NULL){
|
64 |
-
$currentRole = key($userRole);
|
65 |
-
$getSettings = $wppb_showAdminBar[$currentRole];
|
66 |
-
if ($getSettings == 'show')
|
67 |
-
return true;
|
68 |
-
elseif ($getSettings == 'hide')
|
69 |
-
return false;
|
70 |
-
}
|
71 |
-
}
|
72 |
-
}
|
73 |
-
else
|
74 |
-
return true;
|
75 |
-
}
|
76 |
-
|
77 |
-
if(!function_exists('wppb_curpageurl')){
|
78 |
-
function wppb_curpageurl() {
|
79 |
-
$pageURL = 'http';
|
80 |
-
if ((isset($_SERVER["HTTPS"])) && ($_SERVER["HTTPS"] == "on")) {
|
81 |
-
$pageURL .= "s";
|
82 |
-
}
|
83 |
-
$pageURL .= "://";
|
84 |
-
if ($_SERVER["SERVER_PORT"] != "80") {
|
85 |
-
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
|
86 |
-
} else {
|
87 |
-
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
88 |
-
}
|
89 |
-
return $pageURL;
|
90 |
-
}
|
91 |
-
}
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
if ( is_admin() ){
|
96 |
-
/* include the css for the datepicker */
|
97 |
-
$wppb_premiumDatepicker = wppb_plugin_dir . '/premium/assets/css/';
|
98 |
-
if (file_exists ( $wppb_premiumDatepicker.'datepicker.style.css' ))
|
99 |
-
wp_enqueue_style( 'profile-builder-admin-datepicker-style', wppb_plugin_url.'/premium/assets/css/datepicker.style.css', false, ProfileBuilderVersion);
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
/* register the settings for the menu only display sidebar menu for a user with a certain capability, in this case only the "admin" */
|
104 |
-
add_action('admin_init', 'wppb_register_settings');
|
105 |
-
|
106 |
-
$wppb_premiumAdmin = wppb_plugin_dir . '/premium/functions/';
|
107 |
-
if (file_exists ( $wppb_premiumAdmin.'premium.functions.load.php' )){
|
108 |
-
include_once($wppb_premiumAdmin.'premium.functions.load.php');
|
109 |
-
|
110 |
-
/* check whether a delete attachment has been requested */
|
111 |
-
add_action('admin_init', 'wppb_deleteAttachment');
|
112 |
-
|
113 |
-
/* check whether a delete avatar has been requested */
|
114 |
-
add_action('admin_init', 'wppb_deleteAvatar');
|
115 |
-
|
116 |
-
}
|
117 |
-
|
118 |
-
|
119 |
-
/* display the same extra profile fields in the admin panel also */
|
120 |
-
$wppb_premium = wppb_plugin_dir . '/premium/functions/';
|
121 |
-
if (file_exists ( $wppb_premium.'extra.fields.php' )){
|
122 |
-
include( $wppb_premium.'extra.fields.php' );
|
123 |
-
add_action( 'show_user_profile', 'display_profile_extra_fields', 10 );
|
124 |
-
add_action( 'edit_user_profile', 'display_profile_extra_fields', 10 );
|
125 |
-
add_action( 'personal_options_update', 'save_extra_profile_fields', 10 );
|
126 |
-
add_action( 'edit_user_profile_update', 'save_extra_profile_fields', 10 );
|
127 |
-
|
128 |
-
/* check to see if the inserted serial number is valid or not; purely for visual needs */
|
129 |
-
add_action('admin_init', 'wppb_check_serial_number');
|
130 |
-
}
|
131 |
-
|
132 |
-
}
|
133 |
-
else if ( !is_admin() ){
|
134 |
-
/* include the stylesheet */
|
135 |
-
add_action('wp_print_styles', 'wppb_add_plugin_stylesheet');
|
136 |
-
|
137 |
-
$wppb_plugin = wppb_plugin_dir . '/';
|
138 |
-
|
139 |
-
/* include the menu file for the profile informations */
|
140 |
-
include_once($wppb_plugin.'front-end/wppb.edit.profile.php');
|
141 |
-
add_shortcode('wppb-edit-profile', 'wppb_front_end_profile_info');
|
142 |
-
|
143 |
-
/*include the menu file for the login screen */
|
144 |
-
include_once($wppb_plugin.'front-end/wppb.login.php');
|
145 |
-
add_shortcode('wppb-login', 'wppb_front_end_login');
|
146 |
-
|
147 |
-
/* include the menu file for the register screen */
|
148 |
-
include_once($wppb_plugin.'front-end/wppb.register.php');
|
149 |
-
add_shortcode('wppb-register', 'wppb_front_end_register');
|
150 |
-
|
151 |
-
/* include the menu file for the recover password screen */
|
152 |
-
include_once($wppb_plugin.'front-end/wppb.recover.password.php');
|
153 |
-
add_shortcode('wppb-recover-password', 'wppb_front_end_password_recovery');
|
154 |
-
|
155 |
-
/* set the front-end admin bar to show/hide */
|
156 |
-
add_filter( 'show_admin_bar' , 'wppb_show_admin_bar');
|
157 |
-
|
158 |
-
/* Shortcodes used for the widget area. Just uncomment whichever you need */
|
159 |
-
add_filter('widget_text', 'do_shortcode', 11);
|
160 |
-
|
161 |
-
/* check to see if the premium functions are present */
|
162 |
-
$wppb_premiumAdmin = wppb_plugin_dir . '/premium/functions/';
|
163 |
-
if (file_exists ( $wppb_premiumAdmin.'premium.functions.load.php' )){
|
164 |
-
|
165 |
-
include_once($wppb_premiumAdmin.'premium.functions.load.php');
|
166 |
-
|
167 |
-
/* filter to set current users custom avatar */
|
168 |
-
add_filter('get_avatar', 'wppb_changeDefaultAvatar', 21, 5);
|
169 |
-
|
170 |
-
/* check if there is a need to resize the current avatar image for all the users*/
|
171 |
-
add_action('init', 'wppb_resize_avatar');
|
172 |
-
}
|
173 |
-
|
174 |
-
$wppb_premiumAddon = wppb_plugin_dir . '/premium/addon/';
|
175 |
-
if (file_exists ( $wppb_premiumAddon.'addon.functions.php' )){
|
176 |
-
//include the file containing the addon functions
|
177 |
-
include_once($wppb_premiumAddon.'addon.functions.php');
|
178 |
-
|
179 |
-
$wppb_addonOptions = get_option('wppb_premium_addon_settings');
|
180 |
-
if ($wppb_addonOptions['userListing'] == 'show'){
|
181 |
-
//add shortcode for the user-listing functionality
|
182 |
-
add_shortcode('wppb-list-users', 'wppb_list_all_users');
|
183 |
-
}
|
184 |
-
}
|
185 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/index.php
DELETED
@@ -1,131 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
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 or add new (custom) ones both in the front-end and in the dashboard.
|
6 |
-
Version: 1.1.9
|
7 |
-
Author: Reflection Media, Barina Gabriel
|
8 |
-
Author URI: http://www.reflectionmedia.ro
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
== Copyright ==
|
12 |
-
Copyright 2011 Reflection Media (wwww.reflectionmedia.ro)
|
13 |
-
|
14 |
-
This program is free software; you can redistribute it and/or modify
|
15 |
-
it under the terms of the GNU General Public License as published by
|
16 |
-
the Free Software Foundation; either version 2 of the License, or
|
17 |
-
(at your option) any later version.
|
18 |
-
This program is distributed in the hope that it will be useful,
|
19 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
-
GNU General Public License for more details.
|
22 |
-
You should have received a copy of the GNU General Public License
|
23 |
-
along with this program; if not, write to the Free Software
|
24 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
-
*/
|
26 |
-
|
27 |
-
/*
|
28 |
-
Original Plugin Name: OptionTree
|
29 |
-
Original Plugin URI: http://wp.envato.com
|
30 |
-
Original Author: Derek Herman
|
31 |
-
Original Author URI: http://valendesigns.com
|
32 |
-
*/
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Definitions
|
36 |
-
*
|
37 |
-
*
|
38 |
-
*/
|
39 |
-
|
40 |
-
function return_bytes($val) {
|
41 |
-
$val = trim($val);
|
42 |
-
$last = strtolower($val[strlen($val)-1]);
|
43 |
-
switch($last) {
|
44 |
-
// The 'G' modifier is available since PHP 5.1.0
|
45 |
-
case 'g':
|
46 |
-
$val *= 1024;
|
47 |
-
case 'm':
|
48 |
-
$val *= 1024;
|
49 |
-
case 'k':
|
50 |
-
$val *= 1024;
|
51 |
-
}
|
52 |
-
|
53 |
-
return $val;
|
54 |
-
}
|
55 |
-
|
56 |
-
|
57 |
-
define( 'ProfileBuilderVersion', '1.1.9' );
|
58 |
-
define( 'wppb_plugin_dir', WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) );
|
59 |
-
define( 'wppb_plugin_url', WP_PLUGIN_URL . '/' . dirname( plugin_basename( __FILE__ ) ) );
|
60 |
-
define( 'ServerMaxUploadSizeByte', return_bytes( ini_get( 'upload_max_filesize') ) );
|
61 |
-
define( 'ServerMaxUploadSizeMega', ini_get( 'upload_max_filesize') );
|
62 |
-
define( 'ServerMaxPostSizeByte', return_bytes( ini_get( 'post_max_size') ) );
|
63 |
-
define( 'ServerMaxPostSizeMega', ini_get( 'post_max_size') );
|
64 |
-
define ('wppb_TRANSLATEDIR', wppb_plugin_dir.'/translation');
|
65 |
-
define ('wppb_TRANSLATIONDOMAIN', 'profilebuilder');
|
66 |
-
|
67 |
-
|
68 |
-
/**
|
69 |
-
* Required Files
|
70 |
-
*
|
71 |
-
*
|
72 |
-
*/
|
73 |
-
require_once('functions/functions.load.php');
|
74 |
-
|
75 |
-
$wppb_premiumAdmin = wppb_plugin_dir . '/premium/classes/';
|
76 |
-
if (file_exists ( $wppb_premiumAdmin.'premium.class.admin.php' )){
|
77 |
-
require_once($wppb_premiumAdmin.'premium.class.admin.php');
|
78 |
-
}else{
|
79 |
-
require_once('classes/class.admin.php');
|
80 |
-
}
|
81 |
-
|
82 |
-
/* check for updates */
|
83 |
-
$wppb_premiumUpdate = wppb_plugin_dir.'/premium/update/';
|
84 |
-
if (file_exists ($wppb_premiumUpdate.'update-checker.php')){
|
85 |
-
require ($wppb_premiumUpdate.'update-checker.php');
|
86 |
-
$localSerial = get_option( 'wppb_profile_builder_pro_serial' );
|
87 |
-
$MyUpdateChecker = new PluginUpdateChecker('http://cozmoslabs.com/update_metadata.php?localSerialNumber='.$localSerial, __FILE__, 'profile-builder-pro-update');
|
88 |
-
}
|
89 |
-
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Initialize the translation for the Plugin.
|
93 |
-
*
|
94 |
-
*/
|
95 |
-
function wppb_init_translation(){
|
96 |
-
load_plugin_textdomain( 'profilebuilder', false, basename( dirname( __FILE__ ) ) . '/translation/' );
|
97 |
-
}
|
98 |
-
add_action('init', 'wppb_init_translation');
|
99 |
-
|
100 |
-
/**
|
101 |
-
* Instantiate Classe
|
102 |
-
*
|
103 |
-
*
|
104 |
-
*/
|
105 |
-
$PB_Admin = new PB_Admin();
|
106 |
-
|
107 |
-
/**
|
108 |
-
* Wordpress Activate/Deactivate
|
109 |
-
*
|
110 |
-
* @uses register_activation_hook()
|
111 |
-
* @uses register_deactivation_hook()
|
112 |
-
*
|
113 |
-
*
|
114 |
-
*/
|
115 |
-
register_activation_hook( __FILE__, array( $PB_Admin, 'profile_builder_activate' ) );
|
116 |
-
register_deactivation_hook( __FILE__, array( $PB_Admin, 'profile_builder_deactivate' ) );
|
117 |
-
|
118 |
-
/**
|
119 |
-
* Required action filters
|
120 |
-
*
|
121 |
-
* @uses add_action()
|
122 |
-
*
|
123 |
-
*
|
124 |
-
*/
|
125 |
-
add_action( 'admin_init', array( $PB_Admin, 'profile_builder_initialize' ) );
|
126 |
-
add_action( 'admin_menu', array( $PB_Admin, 'profile_builder_admin' ) );
|
127 |
-
add_action( 'wp_ajax_profile_builder_add', array( $PB_Admin, 'profile_builder_add' ) );
|
128 |
-
add_action( 'wp_ajax_profile_builder_edit', array( $PB_Admin, 'profile_builder_edit' ) );
|
129 |
-
add_action( 'wp_ajax_profile_builder_delete', array( $PB_Admin, 'profile_builder_delete' ) );
|
130 |
-
add_action( 'wp_ajax_profile_builder_next_id', array( $PB_Admin, 'profile_builder_next_id' ) );
|
131 |
-
add_action( 'wp_ajax_profile_builder_sort', array( $PB_Admin, 'profile_builder_sort' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/readme.txt
DELETED
@@ -1,163 +0,0 @@
|
|
1 |
-
=== Profile Builder ===
|
2 |
-
|
3 |
-
Contributors: reflectionmedia, barinagabriel
|
4 |
-
Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
|
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.2
|
8 |
-
Stable tag: 1.1.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,
|
17 |
-
giving them a more flexible way to modify their user-information or to register new users.
|
18 |
-
Also, grants users with administrator rights to customize basic fields or add custom ones.
|
19 |
-
To achieve this, just create a new page, and give it an intuitive name(i.e. Edit Profile).
|
20 |
-
Now all you need to do is add the following shortcode(for the previous example): [wppb-edit-profile].
|
21 |
-
Publish your page and you are done!
|
22 |
-
|
23 |
-
You can use the following shortcodes:
|
24 |
-
|
25 |
-
* [wppb-edit-profile] - to grant users a front-end acces to their personal information(requires user to be logged in).
|
26 |
-
* [wppb-login] - for a log-in form.
|
27 |
-
* [wppb-register] - to add a registration form.
|
28 |
-
* [wppb-recover-password] - to add a password recovery form.
|
29 |
-
|
30 |
-
Users with administrator rights have access to the following features:
|
31 |
-
|
32 |
-
* add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black.
|
33 |
-
* select whether to display or not the admin bar in the front end for a specific user-group registered to the site.
|
34 |
-
* select which information-field can users see/modify. The hidden fields' values remain unmodified.
|
35 |
-
|
36 |
-
PROFILE BUILDER PRO
|
37 |
-
|
38 |
-
The [Pro version](http://www.cozmoslabs.com/wordpress-profile-builder/) has the following extra features:
|
39 |
-
|
40 |
-
* Create Extra User Fields
|
41 |
-
* Add avatar upload for users
|
42 |
-
* Select one of the 2 additional CSS styles: black or white
|
43 |
-
* Access to support forums and documentation
|
44 |
-
* 1 Year of Updates / Priority Support
|
45 |
-
|
46 |
-
[Click here to find out more](http://www.cozmoslabs.com/wordpress-profile-builder/).
|
47 |
-
|
48 |
-
|
49 |
-
NOTE:
|
50 |
-
|
51 |
-
This plugin only adds/removes fields in the front-end. The default information-fields will still be visible(and thus modifiable) from the back-end, while custom fields will only be visible in the front-end.
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
== Installation ==
|
56 |
-
|
57 |
-
1. Upload the profile-builder folder to the '/wp-content/plugins/' directory
|
58 |
-
1. Activate the plugin through the 'Plugins' menu in WordPress
|
59 |
-
1. Create a new page and use one of the shortcodes available
|
60 |
-
|
61 |
-
== Frequently Asked Questions ==
|
62 |
-
|
63 |
-
= I navigated away from Profile Builder and now I can�t find it anymore; where is it? =
|
64 |
-
|
65 |
-
Profile Builder can be found in the default menu of your WordPress installation under the �Users� sub-menu.
|
66 |
-
|
67 |
-
= Why do the custom WordPress fields still show up, even though I set it to be "hidden"? =
|
68 |
-
|
69 |
-
Profile Builder only disables the default fields in the front-end of your site/blog, it does absolutely nothing in the dashboard.
|
70 |
-
|
71 |
-
|
72 |
-
= I can�t find a question similar to my issue; Where can I find support? =
|
73 |
-
|
74 |
-
For more information please visit http://www.cozmoslabs.com and check out the faq section from Profile Builder
|
75 |
-
|
76 |
-
|
77 |
-
== Screenshots ==
|
78 |
-
1. Basic information: screenshot1.jpg
|
79 |
-
2. Layout Control: screenshot2.jpg
|
80 |
-
3. Show/Hide Admin Bar: screenshot3.jpg
|
81 |
-
4. Select Default User Fields: screenshot4
|
82 |
-
6. Register Page: screenshot6.jpg
|
83 |
-
7. Logged in Page: screenshot7.jpg
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
== Changelog ==
|
89 |
-
= 1.1.9 =
|
90 |
-
Minor changes to readme file.
|
91 |
-
|
92 |
-
= 1.1.8 =
|
93 |
-
Added the possibility to set the default fields as required (only works in the front end for now), and added a lot of new filters for a better and easier way to personalize the plugin. Also added a recover password feature (shortcode) to be in tune with the rest of the theme.
|
94 |
-
Added translations:
|
95 |
-
*italian (thanks to Gabriele, globalwebadvices@gmail.com)
|
96 |
-
*updated the english translation
|
97 |
-
|
98 |
-
= 1.1.7 =
|
99 |
-
Minor modification in the readme file.
|
100 |
-
|
101 |
-
= 1.1.6 =
|
102 |
-
Minor upload bug on WP repository.
|
103 |
-
|
104 |
-
= 1.1.5 =
|
105 |
-
Added translations:
|
106 |
-
*czech (thanks to Martin Jurica, martin@jurica.info)
|
107 |
-
*updated the english translation
|
108 |
-
|
109 |
-
= 1.1.4 =
|
110 |
-
Added the possibility to set up the default user-role on registration; by adding the role="role_name" argument (e.g. [wppb-register role="editor"]) the role is automaticly set to all new users.
|
111 |
-
Added translations:
|
112 |
-
*norvegian (thanks to Havard Ulvin, haavard@ulvin.no)
|
113 |
-
*dutch (thanks to Pascal Frencken, pascal.frencken@dedeelgaard.nl)
|
114 |
-
*german (thanks to Simon Stich, simon@1000ff.de)
|
115 |
-
*spanish (thanks to redywebs, www.redywebs.com)
|
116 |
-
|
117 |
-
|
118 |
-
= 1.1.3 =
|
119 |
-
Minor bugfix.
|
120 |
-
|
121 |
-
= 1.1.2 =
|
122 |
-
Added translations to:
|
123 |
-
*hungarian(thanks to Peter VIOLA, info@violapeter.hu)
|
124 |
-
*french(thanks to Sebastien CEZARD, sebastiencezard@orange.fr)
|
125 |
-
|
126 |
-
Bugfixes/enhancements:
|
127 |
-
*login page now automaticly refreshes itself after 1 second, a little less annoying than clicking the refresh button manually
|
128 |
-
*fixed bug where translation didn't load like it should
|
129 |
-
*added new user notification: the admin will now know about every new subscriber
|
130 |
-
*fixed issue where adding one or more spaces in the checkbox options list, the user can't save values.
|
131 |
-
|
132 |
-
|
133 |
-
= 1.1 =
|
134 |
-
Added a new user-interface (borrowed from the awesome plugin OptionTree created by Derek Herman), and bugfixes.
|
135 |
-
|
136 |
-
= 1.0.10 =
|
137 |
-
Bugfix - The wp_update_user attempts to clear and reset cookies if it's updating the password.
|
138 |
-
Because of that we get "headers already sent". Fixed by hooking into the init.
|
139 |
-
|
140 |
-
= 1.0.9 =
|
141 |
-
Bugfix - On the edit profile page the website field added a new http:// everytime you updated your profile.
|
142 |
-
Bugfix/ExtraFeature - Add support for shortcodes to be run in a text widget area.
|
143 |
-
|
144 |
-
= 1.0.6 =
|
145 |
-
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."
|
146 |
-
|
147 |
-
= 1.0.5 =
|
148 |
-
You can now actualy install the plugin. All because of a silly line break.
|
149 |
-
|
150 |
-
= 1.0.4 =
|
151 |
-
Still no Change.
|
152 |
-
|
153 |
-
= 1.0.3 =
|
154 |
-
No Change.
|
155 |
-
|
156 |
-
= 1.0.2 =
|
157 |
-
Small changes.
|
158 |
-
|
159 |
-
= 1.0.1 =
|
160 |
-
Changes to the ReadMe File
|
161 |
-
|
162 |
-
= 1.0 =
|
163 |
-
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/screenshots/screenshot-1.jpg
DELETED
Binary file
|
tags/1.1.10/screenshots/screenshot-2.jpg
DELETED
Binary file
|
tags/1.1.10/screenshots/screenshot-3.jpg
DELETED
Binary file
|
tags/1.1.10/screenshots/screenshot6.jpg
DELETED
Binary file
|
tags/1.1.10/screenshots/screenshot7.jpg
DELETED
Binary file
|
tags/1.1.10/translation/en_EN.mo
DELETED
Binary file
|
tags/1.1.10/translation/en_EN.po
DELETED
@@ -1,499 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Profile Builder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-07-06 14:23+0200\n"
|
6 |
-
"PO-Revision-Date: 2011-07-06 14:23+0200\n"
|
7 |
-
"Last-Translator: Cristian Antohe <cristian@cozmoslabs.com>\n"
|
8 |
-
"Language-Team: ReflectionMedia\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: C:\\Users\\Cristi\\Desktop\\free\n"
|
14 |
-
"X-Poedit-Language: English\n"
|
15 |
-
"X-Poedit-SearchPath-0: C:\\Users\\Cristi\\Desktop\\free\n"
|
16 |
-
|
17 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:5
|
18 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
19 |
-
msgid "Profile Builder"
|
20 |
-
msgstr ""
|
21 |
-
|
22 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:6
|
23 |
-
msgid "Welcome to Profile Builder!"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
27 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:9
|
31 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
32 |
-
msgstr ""
|
33 |
-
|
34 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:10
|
35 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
36 |
-
msgstr ""
|
37 |
-
|
38 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:11
|
39 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:12
|
43 |
-
msgid "Publish your page and you are ready to go!"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:13
|
47 |
-
msgid "You can use the following shortcodes:"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:14
|
51 |
-
msgid "for a log-in form."
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:15
|
55 |
-
msgid "to add a registration form."
|
56 |
-
msgstr ""
|
57 |
-
|
58 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:16
|
59 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
60 |
-
msgstr ""
|
61 |
-
|
62 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:18
|
63 |
-
msgid "Users with administrator rights have access to the following features:"
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:19
|
67 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
68 |
-
msgstr ""
|
69 |
-
|
70 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:20
|
71 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
72 |
-
msgstr ""
|
73 |
-
|
74 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:21
|
75 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
76 |
-
msgstr ""
|
77 |
-
|
78 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:22
|
79 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
80 |
-
msgstr ""
|
81 |
-
|
82 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:23
|
83 |
-
msgid "add an avatar field."
|
84 |
-
msgstr ""
|
85 |
-
|
86 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:26
|
87 |
-
msgid "NOTE:"
|
88 |
-
msgstr ""
|
89 |
-
|
90 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:27
|
91 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
92 |
-
msgstr ""
|
93 |
-
|
94 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:28
|
95 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
96 |
-
msgstr ""
|
97 |
-
|
98 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:29
|
99 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
100 |
-
msgstr ""
|
101 |
-
|
102 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:43
|
103 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:44
|
104 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:58
|
105 |
-
msgid "Plugin Layout"
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:50
|
109 |
-
msgid "Stylesheet used:"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:53
|
113 |
-
msgid "Default"
|
114 |
-
msgstr ""
|
115 |
-
|
116 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:58
|
117 |
-
msgid "White"
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:59
|
121 |
-
msgid "Black"
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:63
|
125 |
-
msgid "None"
|
126 |
-
msgstr ""
|
127 |
-
|
128 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:72
|
129 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:119
|
130 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:287
|
131 |
-
msgid "Save Changes"
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:90
|
135 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:91
|
136 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
137 |
-
msgstr ""
|
138 |
-
|
139 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:95
|
140 |
-
msgid "User-group"
|
141 |
-
msgstr ""
|
142 |
-
|
143 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:96
|
144 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:143
|
145 |
-
msgid "Visibility"
|
146 |
-
msgstr ""
|
147 |
-
|
148 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:108
|
149 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:159
|
150 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:168
|
151 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:177
|
152 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:186
|
153 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:195
|
154 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:212
|
155 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:221
|
156 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:233
|
157 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:242
|
158 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:251
|
159 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:268
|
160 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:278
|
161 |
-
msgid "Show"
|
162 |
-
msgstr ""
|
163 |
-
|
164 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:109
|
165 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:160
|
166 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:169
|
167 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:178
|
168 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:187
|
169 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:196
|
170 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:213
|
171 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:222
|
172 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:234
|
173 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:243
|
174 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:252
|
175 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:269
|
176 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:279
|
177 |
-
msgid "Hide"
|
178 |
-
msgstr ""
|
179 |
-
|
180 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:137
|
181 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:138
|
182 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:60
|
183 |
-
msgid "Default Profile Fields"
|
184 |
-
msgstr ""
|
185 |
-
|
186 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:142
|
187 |
-
msgid "Input Field Name"
|
188 |
-
msgstr ""
|
189 |
-
|
190 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:149
|
191 |
-
msgid "Name:"
|
192 |
-
msgstr ""
|
193 |
-
|
194 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:156
|
195 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:385
|
196 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:76
|
197 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:244
|
198 |
-
msgid "Username"
|
199 |
-
msgstr ""
|
200 |
-
|
201 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:165
|
202 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:394
|
203 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:259
|
204 |
-
msgid "First Name"
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:174
|
208 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:403
|
209 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:273
|
210 |
-
msgid "Last Name"
|
211 |
-
msgstr ""
|
212 |
-
|
213 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:183
|
214 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:412
|
215 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:287
|
216 |
-
msgid "Nickname"
|
217 |
-
msgstr ""
|
218 |
-
|
219 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:192
|
220 |
-
msgid "Display name publicly as..."
|
221 |
-
msgstr ""
|
222 |
-
|
223 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:202
|
224 |
-
msgid "Contact Info:"
|
225 |
-
msgstr ""
|
226 |
-
|
227 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:209
|
228 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:457
|
229 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:305
|
230 |
-
msgid "E-mail"
|
231 |
-
msgstr ""
|
232 |
-
|
233 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:218
|
234 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:467
|
235 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:320
|
236 |
-
msgid "Website"
|
237 |
-
msgstr ""
|
238 |
-
|
239 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:230
|
240 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:476
|
241 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:334
|
242 |
-
msgid "AIM"
|
243 |
-
msgstr ""
|
244 |
-
|
245 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:239
|
246 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:485
|
247 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:348
|
248 |
-
msgid "Yahoo IM"
|
249 |
-
msgstr ""
|
250 |
-
|
251 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:248
|
252 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:494
|
253 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:362
|
254 |
-
msgid "Jabber / Google Talk"
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:258
|
258 |
-
msgid "About Yourself:"
|
259 |
-
msgstr ""
|
260 |
-
|
261 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:265
|
262 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:507
|
263 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:380
|
264 |
-
msgid "Biographical Info"
|
265 |
-
msgstr ""
|
266 |
-
|
267 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:275
|
268 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:516
|
269 |
-
msgid "New Password"
|
270 |
-
msgstr ""
|
271 |
-
|
272 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:57
|
273 |
-
msgid "Basic Information"
|
274 |
-
msgstr ""
|
275 |
-
|
276 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:59
|
277 |
-
msgid "Show/Hide the Admin Bar on Front-end"
|
278 |
-
msgstr ""
|
279 |
-
|
280 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:63
|
281 |
-
msgid "Extra Profile Fields"
|
282 |
-
msgstr ""
|
283 |
-
|
284 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:64
|
285 |
-
msgid "Register Your Version"
|
286 |
-
msgstr ""
|
287 |
-
|
288 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:269
|
289 |
-
msgid "You must be logged in to edit your profile."
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:278
|
293 |
-
msgid "The avatar was successfully deleted."
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:283
|
297 |
-
msgid "The attachment \""
|
298 |
-
msgstr ""
|
299 |
-
|
300 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:285
|
301 |
-
msgid "\" was successfully deleted."
|
302 |
-
msgstr ""
|
303 |
-
|
304 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:298
|
305 |
-
msgid "The changes have been successfully saved."
|
306 |
-
msgstr ""
|
307 |
-
|
308 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:303
|
309 |
-
msgid "The email address you entered is already registered to a different user.<br/>The email address was "
|
310 |
-
msgstr ""
|
311 |
-
|
312 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:304
|
313 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:314
|
314 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:324
|
315 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:333
|
316 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:355
|
317 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:363
|
318 |
-
msgid "NOT"
|
319 |
-
msgstr ""
|
320 |
-
|
321 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:305
|
322 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:315
|
323 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:325
|
324 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:334
|
325 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:356
|
326 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:364
|
327 |
-
msgid " updated along with the rest of the information."
|
328 |
-
msgstr ""
|
329 |
-
|
330 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:313
|
331 |
-
msgid "The email address you entered is invalid. <br/> The email address was "
|
332 |
-
msgstr ""
|
333 |
-
|
334 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:323
|
335 |
-
msgid "The passwords you entered do not match. <br/> The password was "
|
336 |
-
msgstr ""
|
337 |
-
|
338 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:332
|
339 |
-
msgid "You didn't complete both password fields. <br/> The password was "
|
340 |
-
msgstr ""
|
341 |
-
|
342 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:344
|
343 |
-
msgid "There was an error while trying to upload the following attachments:<br/>"
|
344 |
-
msgstr ""
|
345 |
-
|
346 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:352
|
347 |
-
msgid "<br/>Possible cause: the size was bigger than "
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:354
|
351 |
-
msgid "b.<br/>The listed attachements were "
|
352 |
-
msgstr ""
|
353 |
-
|
354 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:362
|
355 |
-
msgid "There was an error while trying to upload your avatar picture.<br/>Possible cause: size/incorrect file-type.<br/>The avatar was "
|
356 |
-
msgstr ""
|
357 |
-
|
358 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:380
|
359 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:233
|
360 |
-
msgid "Name"
|
361 |
-
msgstr ""
|
362 |
-
|
363 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:386
|
364 |
-
msgid " Usernames cannot be changed."
|
365 |
-
msgstr ""
|
366 |
-
|
367 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:414
|
368 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:459
|
369 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:246
|
370 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:307
|
371 |
-
msgid "(required)"
|
372 |
-
msgstr ""
|
373 |
-
|
374 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:422
|
375 |
-
msgid "Display name publicly as"
|
376 |
-
msgstr ""
|
377 |
-
|
378 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:451
|
379 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:294
|
380 |
-
msgid "Contact Info"
|
381 |
-
msgstr ""
|
382 |
-
|
383 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:501
|
384 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:369
|
385 |
-
msgid "About Yourself"
|
386 |
-
msgstr ""
|
387 |
-
|
388 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:521
|
389 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:403
|
390 |
-
msgid "Repeat Password"
|
391 |
-
msgstr ""
|
392 |
-
|
393 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:537
|
394 |
-
msgid "Update"
|
395 |
-
msgstr ""
|
396 |
-
|
397 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
398 |
-
#, php-format
|
399 |
-
msgid "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
400 |
-
msgstr ""
|
401 |
-
|
402 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
403 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
404 |
-
msgid "Log out of this account"
|
405 |
-
msgstr ""
|
406 |
-
|
407 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
408 |
-
msgid "Log out »"
|
409 |
-
msgstr ""
|
410 |
-
|
411 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:60
|
412 |
-
#, php-format
|
413 |
-
msgid "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
414 |
-
msgstr ""
|
415 |
-
|
416 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:86
|
417 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:398
|
418 |
-
msgid "Password"
|
419 |
-
msgstr ""
|
420 |
-
|
421 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:90
|
422 |
-
msgid "Log in"
|
423 |
-
msgstr ""
|
424 |
-
|
425 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:92
|
426 |
-
msgid "Remember me"
|
427 |
-
msgstr ""
|
428 |
-
|
429 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:96
|
430 |
-
msgid "Lost password?"
|
431 |
-
msgstr ""
|
432 |
-
|
433 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:39
|
434 |
-
msgid "A username is required for registration."
|
435 |
-
msgstr ""
|
436 |
-
|
437 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:41
|
438 |
-
msgid "Sorry, that username already exists!"
|
439 |
-
msgstr ""
|
440 |
-
|
441 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:44
|
442 |
-
msgid "You must enter a valid email address."
|
443 |
-
msgstr ""
|
444 |
-
|
445 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:46
|
446 |
-
msgid "Sorry, that email address is already used!"
|
447 |
-
msgstr ""
|
448 |
-
|
449 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:49
|
450 |
-
msgid "You didn't complete one of the password-fields!"
|
451 |
-
msgstr ""
|
452 |
-
|
453 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:51
|
454 |
-
msgid "The entered passwords don't match!"
|
455 |
-
msgstr ""
|
456 |
-
|
457 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
458 |
-
#, php-format
|
459 |
-
msgid "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't need another account."
|
460 |
-
msgstr ""
|
461 |
-
|
462 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
463 |
-
msgid "Logout »"
|
464 |
-
msgstr ""
|
465 |
-
|
466 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:181
|
467 |
-
#, php-format
|
468 |
-
msgid "A user account for %1$s has been created."
|
469 |
-
msgstr ""
|
470 |
-
|
471 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:183
|
472 |
-
#, php-format
|
473 |
-
msgid "Thank you for registering, %1$s."
|
474 |
-
msgstr ""
|
475 |
-
|
476 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:211
|
477 |
-
msgid "Users can register themselves or you can manually create users here."
|
478 |
-
msgstr ""
|
479 |
-
|
480 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:215
|
481 |
-
msgid "Users cannot currently register themselves, but you can manually create users here."
|
482 |
-
msgstr ""
|
483 |
-
|
484 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:219
|
485 |
-
msgid "Only an administrator can add new users."
|
486 |
-
msgstr ""
|
487 |
-
|
488 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:422
|
489 |
-
msgid " Send these credentials via email."
|
490 |
-
msgstr ""
|
491 |
-
|
492 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
493 |
-
msgid "Add User"
|
494 |
-
msgstr ""
|
495 |
-
|
496 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
497 |
-
msgid "Register"
|
498 |
-
msgstr ""
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/translation/profilebuilder-cs_CZ.po
DELETED
@@ -1,841 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Profile Builder Pro v1.1\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: 2011-08-18 13:04+0100\n"
|
7 |
-
"Last-Translator: Martin Jurica <martin@jurica.info>\n"
|
8 |
-
"Language-Team: Martin Jurica <martin@jurica.info>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Czech\n"
|
14 |
-
"X-Poedit-Country: CZECH REPUBLIC\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: ../\n"
|
18 |
-
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#@ profilebuilder
|
22 |
-
#: front-end/menu.file.php:5
|
23 |
-
#: front-end/menu.file.php:8
|
24 |
-
msgid "Profile Builder"
|
25 |
-
msgstr "Profile Builder"
|
26 |
-
|
27 |
-
#@ profilebuilder
|
28 |
-
#: front-end/menu.file.php:6
|
29 |
-
msgid "Welcome to Profile Builder!"
|
30 |
-
msgstr "Vítá vás Profile Builder!"
|
31 |
-
|
32 |
-
#@ profilebuilder
|
33 |
-
#: front-end/menu.file.php:8
|
34 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
35 |
-
msgstr " umožňuje přidat front-end menu pro všechny uživatele vašeho webu. To usnadňuje úpravu profilu a zjednodušuje registraci nových uživatelů."
|
36 |
-
|
37 |
-
#@ profilebuilder
|
38 |
-
#: front-end/menu.file.php:9
|
39 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
40 |
-
msgstr "Uživatelé s administrátorskými právy mohou upravovat stávající pole v profilu a vytvářet nová."
|
41 |
-
|
42 |
-
#@ profilebuilder
|
43 |
-
#: front-end/menu.file.php:10
|
44 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
45 |
-
msgstr "Pro úpravu profilu přímo na webu (ne v administraci) stačí vytvořit novu Stránku (a pojmenovat ji například Upravit profil)."
|
46 |
-
|
47 |
-
#@ profilebuilder
|
48 |
-
#: front-end/menu.file.php:11
|
49 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
50 |
-
msgstr "Do vytvořené stránky (nebo widgetu) pak stačí umístit následující kód: "
|
51 |
-
|
52 |
-
#@ profilebuilder
|
53 |
-
#: front-end/menu.file.php:12
|
54 |
-
msgid "Publish your page and you are ready to go!"
|
55 |
-
msgstr "Nyní vytvořenou stránku publikujte a jste hotovi."
|
56 |
-
|
57 |
-
#@ profilebuilder
|
58 |
-
#: front-end/menu.file.php:13
|
59 |
-
msgid "You can use the following shortcodes:"
|
60 |
-
msgstr "K dispozici jsou následující kódy:"
|
61 |
-
|
62 |
-
#@ profilebuilder
|
63 |
-
#: front-end/menu.file.php:14
|
64 |
-
msgid "for a log-in form."
|
65 |
-
msgstr " pro přihlašovací formulář."
|
66 |
-
|
67 |
-
#@ profilebuilder
|
68 |
-
#: front-end/menu.file.php:15
|
69 |
-
msgid "to add a registration form."
|
70 |
-
msgstr " pro registrační formulář."
|
71 |
-
|
72 |
-
#@ profilebuilder
|
73 |
-
#: front-end/menu.file.php:16
|
74 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
75 |
-
msgstr "pro poskytnutí přístupu k vlastnímu profilu (pouze pro přihlášené uživatele)."
|
76 |
-
|
77 |
-
#@ profilebuilder
|
78 |
-
#: front-end/menu.file.php:18
|
79 |
-
msgid "Users with administrator rights have access to the following features:"
|
80 |
-
msgstr "Uživatelé s administrátorskými právy mohou také:"
|
81 |
-
|
82 |
-
#@ profilebuilder
|
83 |
-
#: front-end/menu.file.php:19
|
84 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
85 |
-
msgstr "přidat/zahrnout vlastní CSS styl z aktuální šablony nebo použít některý ze stylů Profile Builder (výchozí, bílý, černý)."
|
86 |
-
|
87 |
-
#@ profilebuilder
|
88 |
-
#: front-end/menu.file.php:20
|
89 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
90 |
-
msgstr "zvolit, zda zobrazovat administrační menu ve front-endu - v závislosti na uživatelské skupině."
|
91 |
-
|
92 |
-
#@ profilebuilder
|
93 |
-
#: front-end/menu.file.php:21
|
94 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
95 |
-
msgstr "určit, která pole mohou uživatelé vidět/upravovat. Obsah skrytých polí zůstane beze změny."
|
96 |
-
|
97 |
-
#@ profilebuilder
|
98 |
-
#: front-end/menu.file.php:22
|
99 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
100 |
-
msgstr "přidat další uživatelská pole k již existujícím polím profilu. K dispozici jsou typy polí: nadpis, text, textarea, select, check-box, radio a upload."
|
101 |
-
|
102 |
-
#@ profilebuilder
|
103 |
-
#: front-end/menu.file.php:23
|
104 |
-
msgid "add an avatar field."
|
105 |
-
msgstr "přidat pole pro avatar."
|
106 |
-
|
107 |
-
#@ profilebuilder
|
108 |
-
#: front-end/menu.file.php:26
|
109 |
-
msgid "NOTE:"
|
110 |
-
msgstr "POZNÁMKA:"
|
111 |
-
|
112 |
-
#@ profilebuilder
|
113 |
-
#: front-end/menu.file.php:27
|
114 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
115 |
-
msgstr "tento plugin pouze přidává/odstraňuje pole ve front-endu."
|
116 |
-
|
117 |
-
#@ profilebuilder
|
118 |
-
#: front-end/menu.file.php:28
|
119 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
120 |
-
msgstr "Výchozí pole budou i nadále dostupná (včetně možnosti úprav)"
|
121 |
-
|
122 |
-
#@ profilebuilder
|
123 |
-
#: front-end/menu.file.php:29
|
124 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
125 |
-
msgstr "v administraci. Vlastní pole budou přístupná ve front-endu (na webu)."
|
126 |
-
|
127 |
-
#@ profilebuilder
|
128 |
-
#: front-end/menu.file.php:43
|
129 |
-
#: front-end/menu.file.php:44
|
130 |
-
#: front-end/options.php:58
|
131 |
-
msgid "Plugin Layout"
|
132 |
-
msgstr "Nastavení vzhledu"
|
133 |
-
|
134 |
-
#@ profilebuilder
|
135 |
-
#: front-end/menu.file.php:50
|
136 |
-
msgid "Stylesheet used:"
|
137 |
-
msgstr "CSS styl:"
|
138 |
-
|
139 |
-
#@ profilebuilder
|
140 |
-
#: front-end/menu.file.php:53
|
141 |
-
msgid "Default"
|
142 |
-
msgstr "Výchozí"
|
143 |
-
|
144 |
-
#@ profilebuilder
|
145 |
-
#: front-end/menu.file.php:58
|
146 |
-
msgid "White"
|
147 |
-
msgstr "Bílý"
|
148 |
-
|
149 |
-
#@ profilebuilder
|
150 |
-
#: front-end/menu.file.php:59
|
151 |
-
msgid "Black"
|
152 |
-
msgstr "Černý"
|
153 |
-
|
154 |
-
#@ profilebuilder
|
155 |
-
#: front-end/menu.file.php:63
|
156 |
-
msgid "None"
|
157 |
-
msgstr "Žádný"
|
158 |
-
|
159 |
-
#@ default
|
160 |
-
#: front-end/menu.file.php:72
|
161 |
-
#: front-end/menu.file.php:119
|
162 |
-
#: front-end/menu.file.php:287
|
163 |
-
#: premium/premium.php:177
|
164 |
-
msgid "Save Changes"
|
165 |
-
msgstr "Uložit změny"
|
166 |
-
|
167 |
-
#@ profilebuilder
|
168 |
-
#: front-end/menu.file.php:90
|
169 |
-
#: front-end/menu.file.php:91
|
170 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
171 |
-
msgstr "Administrační lišta ve front-endu"
|
172 |
-
|
173 |
-
#@ profilebuilder
|
174 |
-
#: front-end/menu.file.php:95
|
175 |
-
msgid "User-group"
|
176 |
-
msgstr "Skupina"
|
177 |
-
|
178 |
-
#@ profilebuilder
|
179 |
-
#: front-end/menu.file.php:96
|
180 |
-
#: front-end/menu.file.php:143
|
181 |
-
msgid "Visibility"
|
182 |
-
msgstr "Viditelnost"
|
183 |
-
|
184 |
-
#@ profilebuilder
|
185 |
-
#: front-end/menu.file.php:108
|
186 |
-
#: front-end/menu.file.php:159
|
187 |
-
#: front-end/menu.file.php:168
|
188 |
-
#: front-end/menu.file.php:177
|
189 |
-
#: front-end/menu.file.php:186
|
190 |
-
#: front-end/menu.file.php:195
|
191 |
-
#: front-end/menu.file.php:212
|
192 |
-
#: front-end/menu.file.php:221
|
193 |
-
#: front-end/menu.file.php:233
|
194 |
-
#: front-end/menu.file.php:242
|
195 |
-
#: front-end/menu.file.php:251
|
196 |
-
#: front-end/menu.file.php:268
|
197 |
-
#: front-end/menu.file.php:278
|
198 |
-
msgid "Show"
|
199 |
-
msgstr "Zobrazit"
|
200 |
-
|
201 |
-
#@ profilebuilder
|
202 |
-
#: front-end/menu.file.php:109
|
203 |
-
#: front-end/menu.file.php:160
|
204 |
-
#: front-end/menu.file.php:169
|
205 |
-
#: front-end/menu.file.php:178
|
206 |
-
#: front-end/menu.file.php:187
|
207 |
-
#: front-end/menu.file.php:196
|
208 |
-
#: front-end/menu.file.php:213
|
209 |
-
#: front-end/menu.file.php:222
|
210 |
-
#: front-end/menu.file.php:234
|
211 |
-
#: front-end/menu.file.php:243
|
212 |
-
#: front-end/menu.file.php:252
|
213 |
-
#: front-end/menu.file.php:269
|
214 |
-
#: front-end/menu.file.php:279
|
215 |
-
msgid "Hide"
|
216 |
-
msgstr "Skrýt"
|
217 |
-
|
218 |
-
#@ profilebuilder
|
219 |
-
#: front-end/menu.file.php:137
|
220 |
-
#: front-end/menu.file.php:138
|
221 |
-
#: front-end/options.php:60
|
222 |
-
msgid "Default Profile Fields"
|
223 |
-
msgstr "Výchozí pole profilu"
|
224 |
-
|
225 |
-
#@ profilebuilder
|
226 |
-
#: front-end/menu.file.php:142
|
227 |
-
msgid "Input Field Name"
|
228 |
-
msgstr "Název pole"
|
229 |
-
|
230 |
-
#@ profilebuilder
|
231 |
-
#: front-end/menu.file.php:149
|
232 |
-
msgid "Name:"
|
233 |
-
msgstr "Jméno:"
|
234 |
-
|
235 |
-
#@ profilebuilder
|
236 |
-
#: front-end/menu.file.php:156
|
237 |
-
#: front-end/wppb.edit.profile.php:385
|
238 |
-
#: front-end/wppb.login.php:76
|
239 |
-
#: front-end/wppb.register.php:244
|
240 |
-
msgid "Username"
|
241 |
-
msgstr "Uživatelské jméno"
|
242 |
-
|
243 |
-
#@ profilebuilder
|
244 |
-
#: front-end/menu.file.php:165
|
245 |
-
#: front-end/wppb.edit.profile.php:394
|
246 |
-
#: front-end/wppb.register.php:259
|
247 |
-
msgid "First Name"
|
248 |
-
msgstr "Křestní jméno"
|
249 |
-
|
250 |
-
#@ profilebuilder
|
251 |
-
#: front-end/menu.file.php:174
|
252 |
-
#: front-end/wppb.edit.profile.php:403
|
253 |
-
#: front-end/wppb.register.php:273
|
254 |
-
msgid "Last Name"
|
255 |
-
msgstr "Příjmení"
|
256 |
-
|
257 |
-
#@ profilebuilder
|
258 |
-
#: front-end/menu.file.php:183
|
259 |
-
#: front-end/wppb.edit.profile.php:412
|
260 |
-
#: front-end/wppb.register.php:287
|
261 |
-
msgid "Nickname"
|
262 |
-
msgstr "Přezdívka"
|
263 |
-
|
264 |
-
#@ profilebuilder
|
265 |
-
#: front-end/menu.file.php:192
|
266 |
-
msgid "Display name publicly as..."
|
267 |
-
msgstr "Veřejně zobrazovat jako..."
|
268 |
-
|
269 |
-
#@ profilebuilder
|
270 |
-
#: front-end/menu.file.php:202
|
271 |
-
msgid "Contact Info:"
|
272 |
-
msgstr "Kontaktní informace:"
|
273 |
-
|
274 |
-
#@ profilebuilder
|
275 |
-
#: front-end/menu.file.php:209
|
276 |
-
#: front-end/wppb.edit.profile.php:457
|
277 |
-
#: front-end/wppb.register.php:305
|
278 |
-
msgid "E-mail"
|
279 |
-
msgstr "E-mail"
|
280 |
-
|
281 |
-
#@ profilebuilder
|
282 |
-
#: front-end/menu.file.php:218
|
283 |
-
#: front-end/wppb.edit.profile.php:467
|
284 |
-
#: front-end/wppb.register.php:320
|
285 |
-
msgid "Website"
|
286 |
-
msgstr "Web"
|
287 |
-
|
288 |
-
#@ profilebuilder
|
289 |
-
#: front-end/menu.file.php:230
|
290 |
-
#: front-end/wppb.edit.profile.php:476
|
291 |
-
#: front-end/wppb.register.php:334
|
292 |
-
msgid "AIM"
|
293 |
-
msgstr "AIM (AOL Instant Messenger)"
|
294 |
-
|
295 |
-
#@ profilebuilder
|
296 |
-
#: front-end/menu.file.php:239
|
297 |
-
#: front-end/wppb.edit.profile.php:485
|
298 |
-
#: front-end/wppb.register.php:348
|
299 |
-
msgid "Yahoo IM"
|
300 |
-
msgstr "Yahoo IM"
|
301 |
-
|
302 |
-
#@ profilebuilder
|
303 |
-
#: front-end/menu.file.php:248
|
304 |
-
#: front-end/wppb.edit.profile.php:494
|
305 |
-
#: front-end/wppb.register.php:362
|
306 |
-
msgid "Jabber / Google Talk"
|
307 |
-
msgstr "Jabber / Google Talk"
|
308 |
-
|
309 |
-
#@ profilebuilder
|
310 |
-
#: front-end/menu.file.php:258
|
311 |
-
msgid "About Yourself:"
|
312 |
-
msgstr "O vás:"
|
313 |
-
|
314 |
-
#@ profilebuilder
|
315 |
-
#: front-end/menu.file.php:265
|
316 |
-
#: front-end/wppb.edit.profile.php:507
|
317 |
-
#: front-end/wppb.register.php:380
|
318 |
-
msgid "Biographical Info"
|
319 |
-
msgstr "Osobní informace"
|
320 |
-
|
321 |
-
#@ profilebuilder
|
322 |
-
#: front-end/menu.file.php:275
|
323 |
-
#: front-end/wppb.edit.profile.php:516
|
324 |
-
msgid "New Password"
|
325 |
-
msgstr "Nové heslo"
|
326 |
-
|
327 |
-
#@ profilebuilder
|
328 |
-
#: front-end/options.php:57
|
329 |
-
msgid "Basic Information"
|
330 |
-
msgstr "Základní informace"
|
331 |
-
|
332 |
-
#@ profilebuilder
|
333 |
-
#: front-end/options.php:59
|
334 |
-
msgid "Show/Hide the Admin Bar on Front-end"
|
335 |
-
msgstr "Zobrazit/skrýt administrační lištu ve front-endu"
|
336 |
-
|
337 |
-
#@ profilebuilder
|
338 |
-
#: front-end/options.php:63
|
339 |
-
#: premium/premium.php:5
|
340 |
-
#: premium/premium.php:6
|
341 |
-
msgid "Extra Profile Fields"
|
342 |
-
msgstr "Vlastní pole profilu"
|
343 |
-
|
344 |
-
#@ profilebuilder
|
345 |
-
#: front-end/options.php:64
|
346 |
-
msgid "Register Your Version"
|
347 |
-
msgstr "Registrace"
|
348 |
-
|
349 |
-
#@ profilebuilder
|
350 |
-
#: front-end/wppb.edit.profile.php:269
|
351 |
-
msgid "You must be logged in to edit your profile."
|
352 |
-
msgstr "Pro úpravu profilu je nutné se přihlásit."
|
353 |
-
|
354 |
-
#@ profilebuilder
|
355 |
-
#: front-end/wppb.edit.profile.php:278
|
356 |
-
msgid "The avatar was successfully deleted."
|
357 |
-
msgstr "Avatar byl úspěšně odstraněn."
|
358 |
-
|
359 |
-
#@ profilebuilder
|
360 |
-
#: front-end/wppb.edit.profile.php:283
|
361 |
-
msgid "The attachment \""
|
362 |
-
msgstr "Příloha \""
|
363 |
-
|
364 |
-
#@ profilebuilder
|
365 |
-
#: front-end/wppb.edit.profile.php:285
|
366 |
-
msgid "\" was successfully deleted."
|
367 |
-
msgstr "\" byla úspěšně odstraněna."
|
368 |
-
|
369 |
-
#@ profilebuilder
|
370 |
-
#: front-end/wppb.edit.profile.php:298
|
371 |
-
msgid "The changes have been successfully saved."
|
372 |
-
msgstr "Změny byly úspěšně uloženy."
|
373 |
-
|
374 |
-
#@ profilebuilder
|
375 |
-
#: front-end/wppb.edit.profile.php:303
|
376 |
-
msgid "The email address you entered is already registered to a different user.<br/>The email address was "
|
377 |
-
msgstr "Zadaný e-mail má již zaregistrován jiný uživatel. <br/> E-mailová adresa"
|
378 |
-
|
379 |
-
#@ profilebuilder
|
380 |
-
#: front-end/wppb.edit.profile.php:304
|
381 |
-
#: front-end/wppb.edit.profile.php:314
|
382 |
-
#: front-end/wppb.edit.profile.php:324
|
383 |
-
#: front-end/wppb.edit.profile.php:333
|
384 |
-
#: front-end/wppb.edit.profile.php:355
|
385 |
-
#: front-end/wppb.edit.profile.php:363
|
386 |
-
msgid "NOT"
|
387 |
-
msgstr "NEBYLA"
|
388 |
-
|
389 |
-
#@ profilebuilder
|
390 |
-
#: front-end/wppb.edit.profile.php:305
|
391 |
-
#: front-end/wppb.edit.profile.php:315
|
392 |
-
#: front-end/wppb.edit.profile.php:325
|
393 |
-
#: front-end/wppb.edit.profile.php:334
|
394 |
-
#: front-end/wppb.edit.profile.php:356
|
395 |
-
#: front-end/wppb.edit.profile.php:364
|
396 |
-
msgid " updated along with the rest of the information."
|
397 |
-
msgstr " aktualizována spolu s ostatními informacemi."
|
398 |
-
|
399 |
-
#@ profilebuilder
|
400 |
-
#: front-end/wppb.edit.profile.php:313
|
401 |
-
msgid "The email address you entered is invalid. <br/> The email address was "
|
402 |
-
msgstr "Zadaný e-mail není platný. <br/> Adresa "
|
403 |
-
|
404 |
-
#@ profilebuilder
|
405 |
-
#: front-end/wppb.edit.profile.php:323
|
406 |
-
msgid "The passwords you entered do not match. <br/> The password was "
|
407 |
-
msgstr "Zadaná hesla se neshodují. <br/> Zadané heslo "
|
408 |
-
|
409 |
-
#@ profilebuilder
|
410 |
-
#: front-end/wppb.edit.profile.php:332
|
411 |
-
msgid "You didn't complete both password fields. <br/> The password was "
|
412 |
-
msgstr "Nevyplnili jste obě pole pro heslo. <br/> Zadané heslo "
|
413 |
-
|
414 |
-
#@ profilebuilder
|
415 |
-
#: front-end/wppb.edit.profile.php:344
|
416 |
-
msgid "There was an error while trying to upload the following attachments:<br/>"
|
417 |
-
msgstr "Došlo k chybě při pokusu nahrát tyto přílohy: <br/>"
|
418 |
-
|
419 |
-
#@ profilebuilder
|
420 |
-
#: front-end/wppb.edit.profile.php:352
|
421 |
-
msgid "<br/>Possible cause: the size was bigger than "
|
422 |
-
msgstr "<br/> Možná příčina: velikost byla větší než "
|
423 |
-
|
424 |
-
#@ profilebuilder
|
425 |
-
#: front-end/wppb.edit.profile.php:354
|
426 |
-
msgid "b.<br/>The listed attachements were "
|
427 |
-
msgstr "B. <br/> Příloha (přílohy) "
|
428 |
-
|
429 |
-
#@ profilebuilder
|
430 |
-
#: front-end/wppb.edit.profile.php:362
|
431 |
-
msgid "There was an error while trying to upload your avatar picture.<br/>Possible cause: size/incorrect file-type.<br/>The avatar was "
|
432 |
-
msgstr "Došlo k chybě při pokusu nahrát avatar. <br/> Možná příčina: Velikost/nesprávný typu souboru. <br/> Ikona avataru "
|
433 |
-
|
434 |
-
#@ profilebuilder
|
435 |
-
#: front-end/wppb.edit.profile.php:380
|
436 |
-
#: front-end/wppb.register.php:233
|
437 |
-
msgid "Name"
|
438 |
-
msgstr "Jméno"
|
439 |
-
|
440 |
-
#@ default
|
441 |
-
#: front-end/wppb.edit.profile.php:386
|
442 |
-
msgid " Usernames cannot be changed."
|
443 |
-
msgstr "Uživatelská jména nelze měnit."
|
444 |
-
|
445 |
-
#@ profilebuilder
|
446 |
-
#: front-end/wppb.edit.profile.php:414
|
447 |
-
#: front-end/wppb.edit.profile.php:459
|
448 |
-
#: front-end/wppb.register.php:246
|
449 |
-
#: front-end/wppb.register.php:307
|
450 |
-
msgid "(required)"
|
451 |
-
msgstr "(vyžadováno)"
|
452 |
-
|
453 |
-
#@ profilebuilder
|
454 |
-
#: front-end/wppb.edit.profile.php:422
|
455 |
-
msgid "Display name publicly as"
|
456 |
-
msgstr "Veřejně zobrazovat jako"
|
457 |
-
|
458 |
-
#@ profilebuilder
|
459 |
-
#: front-end/wppb.edit.profile.php:451
|
460 |
-
#: front-end/wppb.register.php:294
|
461 |
-
msgid "Contact Info"
|
462 |
-
msgstr "Kontaktní informace"
|
463 |
-
|
464 |
-
#@ profilebuilder
|
465 |
-
#: front-end/wppb.edit.profile.php:501
|
466 |
-
#: front-end/wppb.register.php:369
|
467 |
-
msgid "About Yourself"
|
468 |
-
msgstr "O vás"
|
469 |
-
|
470 |
-
#@ profilebuilder
|
471 |
-
#: front-end/wppb.edit.profile.php:521
|
472 |
-
#: front-end/wppb.register.php:403
|
473 |
-
msgid "Repeat Password"
|
474 |
-
msgstr "Heslo ještě jednou"
|
475 |
-
|
476 |
-
#@ profilebuilder
|
477 |
-
#: front-end/wppb.edit.profile.php:537
|
478 |
-
msgid "Update"
|
479 |
-
msgstr "Aktualizovat"
|
480 |
-
|
481 |
-
#@ profilebuilder
|
482 |
-
#: front-end/wppb.login.php:47
|
483 |
-
#, php-format
|
484 |
-
msgid "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
485 |
-
msgstr "Jste přihlášeni jako <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
486 |
-
|
487 |
-
#@ profilebuilder
|
488 |
-
#: front-end/wppb.login.php:47
|
489 |
-
#: front-end/wppb.register.php:171
|
490 |
-
msgid "Log out of this account"
|
491 |
-
msgstr "Odhlásit se"
|
492 |
-
|
493 |
-
#@ profilebuilder
|
494 |
-
#: front-end/wppb.login.php:47
|
495 |
-
msgid "Log out »"
|
496 |
-
msgstr "Odhlásit se »"
|
497 |
-
|
498 |
-
#@ profilebuilder
|
499 |
-
#: front-end/wppb.login.php:60
|
500 |
-
#, php-format
|
501 |
-
msgid "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
502 |
-
msgstr "Úspěšné přihlášení jako <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
503 |
-
|
504 |
-
#@ profilebuilder
|
505 |
-
#: front-end/wppb.login.php:86
|
506 |
-
#: front-end/wppb.register.php:398
|
507 |
-
msgid "Password"
|
508 |
-
msgstr "Heslo"
|
509 |
-
|
510 |
-
#@ profilebuilder
|
511 |
-
#: front-end/wppb.login.php:90
|
512 |
-
msgid "Log in"
|
513 |
-
msgstr "Přihlásit se"
|
514 |
-
|
515 |
-
#@ profilebuilder
|
516 |
-
#: front-end/wppb.login.php:92
|
517 |
-
msgid "Remember me"
|
518 |
-
msgstr "Pamatovat si mě"
|
519 |
-
|
520 |
-
#@ profilebuilder
|
521 |
-
#: front-end/wppb.login.php:96
|
522 |
-
msgid "Lost password?"
|
523 |
-
msgstr "Zapomněli jste heslo?"
|
524 |
-
|
525 |
-
#@ profilebuilder
|
526 |
-
#: front-end/wppb.register.php:39
|
527 |
-
msgid "A username is required for registration."
|
528 |
-
msgstr "Uživatelské jméno je nutné pro registraci."
|
529 |
-
|
530 |
-
#@ profilebuilder
|
531 |
-
#: front-end/wppb.register.php:41
|
532 |
-
msgid "Sorry, that username already exists!"
|
533 |
-
msgstr "Omlouváme se, ale toto uživatelské jméno již existuje."
|
534 |
-
|
535 |
-
#@ profilebuilder
|
536 |
-
#: front-end/wppb.register.php:44
|
537 |
-
msgid "You must enter a valid email address."
|
538 |
-
msgstr "Musíte zadat platnou e-mailovou adresu."
|
539 |
-
|
540 |
-
#@ profilebuilder
|
541 |
-
#: front-end/wppb.register.php:46
|
542 |
-
msgid "Sorry, that email address is already used!"
|
543 |
-
msgstr "Omlouváme se, ale tato e-mailová adresa je již zaregistrována."
|
544 |
-
|
545 |
-
#@ profilebuilder
|
546 |
-
#: front-end/wppb.register.php:49
|
547 |
-
msgid "You didn't complete one of the password-fields!"
|
548 |
-
msgstr "Nebyla vyplněna obě pole hesla."
|
549 |
-
|
550 |
-
#@ profilebuilder
|
551 |
-
#: front-end/wppb.register.php:51
|
552 |
-
msgid "The entered passwords don't match!"
|
553 |
-
msgstr "Zadaná hesla se neshodují."
|
554 |
-
|
555 |
-
#@ profilebuilder
|
556 |
-
#: front-end/wppb.register.php:171
|
557 |
-
#, php-format
|
558 |
-
msgid "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't need another account."
|
559 |
-
msgstr "Jste přihlášeni jako <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Není třeba zakládat další účet..."
|
560 |
-
|
561 |
-
#@ profilebuilder
|
562 |
-
#: front-end/wppb.register.php:171
|
563 |
-
msgid "Logout »"
|
564 |
-
msgstr "Odhlásit se »"
|
565 |
-
|
566 |
-
#@ profilebuilder
|
567 |
-
#: front-end/wppb.register.php:181
|
568 |
-
#, php-format
|
569 |
-
msgid "A user account for %1$s has been created."
|
570 |
-
msgstr "Uživatelský účet pro %1$s byl vytvořen."
|
571 |
-
|
572 |
-
#@ profilebuilder
|
573 |
-
#: front-end/wppb.register.php:183
|
574 |
-
#, php-format
|
575 |
-
msgid "Thank you for registering, %1$s."
|
576 |
-
msgstr "Děkujeme za registraci, %1$s."
|
577 |
-
|
578 |
-
#@ profilebuilder
|
579 |
-
#: front-end/wppb.register.php:211
|
580 |
-
msgid "Users can register themselves or you can manually create users here."
|
581 |
-
msgstr "Uživatelé se mohou zaregistrovat sami, případně můžete manuálně vytvářet uživatele zde."
|
582 |
-
|
583 |
-
#@ profilebuilder
|
584 |
-
#: front-end/wppb.register.php:215
|
585 |
-
msgid "Users cannot currently register themselves, but you can manually create users here."
|
586 |
-
msgstr "Uživatelé se nemohou sami zaregistrovat, ale můžete je ručně vytvářet zde."
|
587 |
-
|
588 |
-
#@ profilebuilder
|
589 |
-
#: front-end/wppb.register.php:219
|
590 |
-
msgid "Only an administrator can add new users."
|
591 |
-
msgstr "Pouze administrátor může přidávat nové uživatele."
|
592 |
-
|
593 |
-
#@ profilebuilder
|
594 |
-
#: front-end/wppb.register.php:422
|
595 |
-
msgid " Send these credentials via email."
|
596 |
-
msgstr "Odeslat tyto přihlašovací údaje e-mailem."
|
597 |
-
|
598 |
-
#@ profilebuilder
|
599 |
-
#: front-end/wppb.register.php:428
|
600 |
-
msgid "Add User"
|
601 |
-
msgstr "Přidat uživatele"
|
602 |
-
|
603 |
-
#@ profilebuilder
|
604 |
-
#: front-end/wppb.register.php:428
|
605 |
-
msgid "Register"
|
606 |
-
msgstr "Registrovat"
|
607 |
-
|
608 |
-
#@ profilebuilder
|
609 |
-
#: premium/functions/extra.fields.php:25
|
610 |
-
#: premium/functions/extra.fields.php:31
|
611 |
-
#: premium/functions/extra.fields.php:46
|
612 |
-
#: premium/functions/extra.fields.php:62
|
613 |
-
#: premium/functions/extra.fields.php:78
|
614 |
-
#: premium/functions/extra.fields.php:93
|
615 |
-
#: premium/functions/extra.fields.php:109
|
616 |
-
#: premium/functions/extra.fields.php:133
|
617 |
-
#: premium/functions/extra.fields.php:167
|
618 |
-
#: premium/functions/extra.fields.php:177
|
619 |
-
#: premium/functions/extra.fields.php:188
|
620 |
-
#: premium/functions/extra.fields.php:203
|
621 |
-
#: premium/functions/extra.fields.php:217
|
622 |
-
#: premium/functions/extra.fields.php:237
|
623 |
-
#: premium/functions/extra.fields.php:248
|
624 |
-
#: premium/functions/extra.fields.php:258
|
625 |
-
#: premium/functions/extra.fields.php:302
|
626 |
-
#: premium/functions/extra.fields.php:310
|
627 |
-
#: premium/functions/extra.fields.php:326
|
628 |
-
#: premium/functions/extra.fields.php:347
|
629 |
-
#: premium/functions/extra.fields.php:368
|
630 |
-
#: premium/functions/extra.fields.php:387
|
631 |
-
#: premium/functions/extra.fields.php:407
|
632 |
-
#: premium/functions/extra.fields.php:432
|
633 |
-
msgid "item_title"
|
634 |
-
msgstr "item_title"
|
635 |
-
|
636 |
-
#@ profilebuilder
|
637 |
-
#: premium/functions/extra.fields.php:36
|
638 |
-
#: premium/functions/extra.fields.php:53
|
639 |
-
#: premium/functions/extra.fields.php:69
|
640 |
-
#: premium/functions/extra.fields.php:86
|
641 |
-
#: premium/functions/extra.fields.php:97
|
642 |
-
#: premium/functions/extra.fields.php:112
|
643 |
-
#: premium/functions/extra.fields.php:136
|
644 |
-
#: premium/functions/extra.fields.php:180
|
645 |
-
#: premium/functions/extra.fields.php:195
|
646 |
-
#: premium/functions/extra.fields.php:210
|
647 |
-
#: premium/functions/extra.fields.php:226
|
648 |
-
#: premium/functions/extra.fields.php:241
|
649 |
-
#: premium/functions/extra.fields.php:251
|
650 |
-
#: premium/functions/extra.fields.php:261
|
651 |
-
#: premium/functions/extra.fields.php:313
|
652 |
-
#: premium/functions/extra.fields.php:335
|
653 |
-
#: premium/functions/extra.fields.php:356
|
654 |
-
#: premium/functions/extra.fields.php:377
|
655 |
-
#: premium/functions/extra.fields.php:391
|
656 |
-
#: premium/functions/extra.fields.php:410
|
657 |
-
#: premium/functions/extra.fields.php:435
|
658 |
-
msgid "item_desc"
|
659 |
-
msgstr "item_desc"
|
660 |
-
|
661 |
-
#@ profilebuilder
|
662 |
-
#: premium/functions/extra.fields.php:114
|
663 |
-
#: premium/functions/extra.fields.php:117
|
664 |
-
#: premium/functions/extra.fields.php:412
|
665 |
-
#: premium/functions/extra.fields.php:415
|
666 |
-
msgid "Current file"
|
667 |
-
msgstr "Aktuální soubor"
|
668 |
-
|
669 |
-
#@ profilebuilder
|
670 |
-
#: premium/functions/extra.fields.php:138
|
671 |
-
#: premium/functions/extra.fields.php:437
|
672 |
-
msgid "Current avatar"
|
673 |
-
msgstr "Aktuální avatar"
|
674 |
-
|
675 |
-
#@ profilebuilder
|
676 |
-
#: premium/premium.php:7
|
677 |
-
msgid "You can create as many extra fields as your project requires. To break your custom fields into sections (on the front-end), add a \""
|
678 |
-
msgstr "Můžete vytvořit libovolné množství vlastních polí. K jejich rozdělení do tématických celků (ve front-endu) použijte pole \""
|
679 |
-
|
680 |
-
#@ profilebuilder
|
681 |
-
#: premium/premium.php:7
|
682 |
-
msgid "heading"
|
683 |
-
msgstr "záhlaví"
|
684 |
-
|
685 |
-
#@ profilebuilder
|
686 |
-
#: premium/premium.php:7
|
687 |
-
msgid "\" custom field."
|
688 |
-
msgstr "\"."
|
689 |
-
|
690 |
-
#@ profilebuilder
|
691 |
-
#: premium/premium.php:8
|
692 |
-
msgid "All of the fields can be sorted and rearranged to your liking with "
|
693 |
-
msgstr "Všechna pole lze třídit pomocí "
|
694 |
-
|
695 |
-
#@ profilebuilder
|
696 |
-
#: premium/premium.php:8
|
697 |
-
msgid "Drag"
|
698 |
-
msgstr "Drag"
|
699 |
-
|
700 |
-
#@ profilebuilder
|
701 |
-
#: premium/premium.php:8
|
702 |
-
msgid "Drop"
|
703 |
-
msgstr "Drop"
|
704 |
-
|
705 |
-
#@ profilebuilder
|
706 |
-
#: premium/premium.php:8
|
707 |
-
msgid ". Don't worry about the order in which you create your custom fields, you can always reorder them."
|
708 |
-
msgstr ". Není proto třeba se starat o pořadí, ve kterém vytvoříte vlastní pole, můžete jej kdykoli změnit."
|
709 |
-
|
710 |
-
#@ profilebuilder
|
711 |
-
#: premium/premium.php:12
|
712 |
-
#: premium/premium.php:20
|
713 |
-
msgid "Title"
|
714 |
-
msgstr "Název"
|
715 |
-
|
716 |
-
#@ profilebuilder
|
717 |
-
#: premium/premium.php:13
|
718 |
-
#: premium/premium.php:21
|
719 |
-
msgid "Key"
|
720 |
-
msgstr "Klíč"
|
721 |
-
|
722 |
-
#@ profilebuilder
|
723 |
-
#: premium/premium.php:14
|
724 |
-
#: premium/premium.php:22
|
725 |
-
msgid "Type"
|
726 |
-
msgstr "Typ"
|
727 |
-
|
728 |
-
#@ profilebuilder
|
729 |
-
#: premium/premium.php:15
|
730 |
-
#: premium/premium.php:23
|
731 |
-
msgid "Add Option"
|
732 |
-
msgstr "Přidat volbu"
|
733 |
-
|
734 |
-
#@ profilebuilder
|
735 |
-
#: premium/premium.php:37
|
736 |
-
#: premium/premium.php:137
|
737 |
-
msgid "Edit"
|
738 |
-
msgstr "Upravit"
|
739 |
-
|
740 |
-
#@ profilebuilder
|
741 |
-
#: premium/premium.php:38
|
742 |
-
#: premium/premium.php:138
|
743 |
-
msgid "Delete"
|
744 |
-
msgstr "Odstranit"
|
745 |
-
|
746 |
-
#@ profilebuilder
|
747 |
-
#: premium/premium.php:61
|
748 |
-
msgid "Title:"
|
749 |
-
msgstr "Název:"
|
750 |
-
|
751 |
-
#@ profilebuilder
|
752 |
-
#: premium/premium.php:61
|
753 |
-
msgid "The title of the item."
|
754 |
-
msgstr "Název vlastního pole."
|
755 |
-
|
756 |
-
#@ profilebuilder
|
757 |
-
#: premium/premium.php:71
|
758 |
-
msgid "Option Key:"
|
759 |
-
msgstr "Klíč vlastního pole:"
|
760 |
-
|
761 |
-
#@ profilebuilder
|
762 |
-
#: premium/premium.php:71
|
763 |
-
msgid "Unique alphanumeric key, underscores are acceptable."
|
764 |
-
msgstr "Unikátní alfanumerický klíč, můžete použít i podtržítka."
|
765 |
-
|
766 |
-
#@ profilebuilder
|
767 |
-
#: premium/premium.php:99
|
768 |
-
msgid "Option Type:"
|
769 |
-
msgstr "Typ vlastního pole:"
|
770 |
-
|
771 |
-
#@ profilebuilder
|
772 |
-
#: premium/premium.php:99
|
773 |
-
msgid "Choose one of the supported option types."
|
774 |
-
msgstr "Vyberte jednu z nabízených možností."
|
775 |
-
|
776 |
-
#@ profilebuilder
|
777 |
-
#: premium/premium.php:109
|
778 |
-
msgid "Description:"
|
779 |
-
msgstr "Popis:"
|
780 |
-
|
781 |
-
#@ profilebuilder
|
782 |
-
#: premium/premium.php:109
|
783 |
-
msgid "Enter a detailed description of the option for end users to read(optional)."
|
784 |
-
msgstr "Zadejte podrobný popis vlastního pole pro uživatele (volitelné)."
|
785 |
-
|
786 |
-
#@ profilebuilder
|
787 |
-
#: premium/premium.php:119
|
788 |
-
msgid "Options:"
|
789 |
-
msgstr "Možnosti:"
|
790 |
-
|
791 |
-
#@ profilebuilder
|
792 |
-
#: premium/premium.php:119
|
793 |
-
msgid "Enter a comma separated list of options. For example, you could have \"One,Two,Three\" or just a single value like \"Yes\" for a checkbox."
|
794 |
-
msgstr "Zadejte čárkami oddělený seznam možností. Například \"Jedna, dva, tři\" nebo jen jednu hodnotu (např. \"Ano\" u check-boxu)."
|
795 |
-
|
796 |
-
#@ profilebuilder
|
797 |
-
#: premium/premium.php:127
|
798 |
-
msgid "Cancel"
|
799 |
-
msgstr "Zrušit"
|
800 |
-
|
801 |
-
#@ profilebuilder
|
802 |
-
#: premium/premium.php:128
|
803 |
-
msgid "Save"
|
804 |
-
msgstr "Uložit"
|
805 |
-
|
806 |
-
#@ profilebuilder
|
807 |
-
#: premium/premium.php:158
|
808 |
-
#: premium/premium.php:159
|
809 |
-
msgid "Register your version of Profile Builder Pro"
|
810 |
-
msgstr "Zaregistrujte si svou verzi Profile Builder Pro"
|
811 |
-
|
812 |
-
#@ profilebuilder
|
813 |
-
#: premium/premium.php:160
|
814 |
-
msgid "Now that you acquired a copy of Profile Builder Pro, you should take the time and register it with the serial number you received in the e-mail."
|
815 |
-
msgstr "Nyní, když jste získali svou kopii Profile Builder Pro, zvažte výhody registrace této kopie zadáním sériového čísla, které jste obdrželi v e-mailu."
|
816 |
-
|
817 |
-
#@ profilebuilder
|
818 |
-
#: premium/premium.php:161
|
819 |
-
msgid "If you register this version of Profile Builder, you'll receive information regarding eventual upgrades, patches, and - if needed - technical support."
|
820 |
-
msgstr "Pokud si zaregistrujete tuto verzi Profile Builder, budete dostávat informace o aktualizacích, nových verzích a získáte přístup k technické podpoře."
|
821 |
-
|
822 |
-
#@ profilebuilder
|
823 |
-
#: premium/premium.php:162
|
824 |
-
msgid "Serial Number:"
|
825 |
-
msgstr "Sériové číslo:"
|
826 |
-
|
827 |
-
#@ profilebuilder
|
828 |
-
#: premium/premium.php:167
|
829 |
-
msgid "The serial number couldn't be validated or isn't valid!"
|
830 |
-
msgstr "Sériové číslo nemůže být ověřeno nebo není platné!"
|
831 |
-
|
832 |
-
#@ profilebuilder
|
833 |
-
#: premium/premium.php:169
|
834 |
-
msgid "The serial number was successfully validated!"
|
835 |
-
msgstr "Sériové číslo bylo úspěšně ověřeno! Děkujeme."
|
836 |
-
|
837 |
-
#@ profilebuilder
|
838 |
-
#: premium/premium.php:172
|
839 |
-
msgid "(e.g. RMPB-15-SN-253a55baa4fbe7bf595b2aabb8d72985)"
|
840 |
-
msgstr "(například RMPB-15-SN-253a55baa4fbe7bf595b2aabb8d72985)"
|
841 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/translation/profilebuilder-de_DE.po
DELETED
@@ -1,499 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Profile Builder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-07-06 14:23+0200\n"
|
6 |
-
"PO-Revision-Date: 2011-08-16 18:29+0100\n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: ReflectionMedia\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: C:\\Users\\Cristi\\Desktop\\free\n"
|
14 |
-
"X-Poedit-Language: English\n"
|
15 |
-
"X-Poedit-SearchPath-0: C:\\Users\\Cristi\\Desktop\\free\n"
|
16 |
-
|
17 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:5
|
18 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
19 |
-
msgid "Profile Builder"
|
20 |
-
msgstr ""
|
21 |
-
|
22 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:6
|
23 |
-
msgid "Welcome to Profile Builder!"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
27 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:9
|
31 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
32 |
-
msgstr ""
|
33 |
-
|
34 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:10
|
35 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
36 |
-
msgstr ""
|
37 |
-
|
38 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:11
|
39 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:12
|
43 |
-
msgid "Publish your page and you are ready to go!"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:13
|
47 |
-
msgid "You can use the following shortcodes:"
|
48 |
-
msgstr ""
|
49 |
-
|
50 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:14
|
51 |
-
msgid "for a log-in form."
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:15
|
55 |
-
msgid "to add a registration form."
|
56 |
-
msgstr ""
|
57 |
-
|
58 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:16
|
59 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
60 |
-
msgstr ""
|
61 |
-
|
62 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:18
|
63 |
-
msgid "Users with administrator rights have access to the following features:"
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:19
|
67 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
68 |
-
msgstr ""
|
69 |
-
|
70 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:20
|
71 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
72 |
-
msgstr ""
|
73 |
-
|
74 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:21
|
75 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
76 |
-
msgstr ""
|
77 |
-
|
78 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:22
|
79 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
80 |
-
msgstr ""
|
81 |
-
|
82 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:23
|
83 |
-
msgid "add an avatar field."
|
84 |
-
msgstr ""
|
85 |
-
|
86 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:26
|
87 |
-
msgid "NOTE:"
|
88 |
-
msgstr ""
|
89 |
-
|
90 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:27
|
91 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
92 |
-
msgstr ""
|
93 |
-
|
94 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:28
|
95 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
96 |
-
msgstr ""
|
97 |
-
|
98 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:29
|
99 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
100 |
-
msgstr ""
|
101 |
-
|
102 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:43
|
103 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:44
|
104 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:58
|
105 |
-
msgid "Plugin Layout"
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:50
|
109 |
-
msgid "Stylesheet used:"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:53
|
113 |
-
msgid "Default"
|
114 |
-
msgstr ""
|
115 |
-
|
116 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:58
|
117 |
-
msgid "White"
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:59
|
121 |
-
msgid "Black"
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:63
|
125 |
-
msgid "None"
|
126 |
-
msgstr ""
|
127 |
-
|
128 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:72
|
129 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:119
|
130 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:287
|
131 |
-
msgid "Save Changes"
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:90
|
135 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:91
|
136 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
137 |
-
msgstr ""
|
138 |
-
|
139 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:95
|
140 |
-
msgid "User-group"
|
141 |
-
msgstr ""
|
142 |
-
|
143 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:96
|
144 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:143
|
145 |
-
msgid "Visibility"
|
146 |
-
msgstr ""
|
147 |
-
|
148 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:108
|
149 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:159
|
150 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:168
|
151 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:177
|
152 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:186
|
153 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:195
|
154 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:212
|
155 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:221
|
156 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:233
|
157 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:242
|
158 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:251
|
159 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:268
|
160 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:278
|
161 |
-
msgid "Show"
|
162 |
-
msgstr ""
|
163 |
-
|
164 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:109
|
165 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:160
|
166 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:169
|
167 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:178
|
168 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:187
|
169 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:196
|
170 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:213
|
171 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:222
|
172 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:234
|
173 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:243
|
174 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:252
|
175 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:269
|
176 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:279
|
177 |
-
msgid "Hide"
|
178 |
-
msgstr ""
|
179 |
-
|
180 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:137
|
181 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:138
|
182 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:60
|
183 |
-
msgid "Default Profile Fields"
|
184 |
-
msgstr ""
|
185 |
-
|
186 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:142
|
187 |
-
msgid "Input Field Name"
|
188 |
-
msgstr ""
|
189 |
-
|
190 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:149
|
191 |
-
msgid "Name:"
|
192 |
-
msgstr ""
|
193 |
-
|
194 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:156
|
195 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:385
|
196 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:76
|
197 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:244
|
198 |
-
msgid "Username"
|
199 |
-
msgstr "Benutzername"
|
200 |
-
|
201 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:165
|
202 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:394
|
203 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:259
|
204 |
-
msgid "First Name"
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:174
|
208 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:403
|
209 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:273
|
210 |
-
msgid "Last Name"
|
211 |
-
msgstr ""
|
212 |
-
|
213 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:183
|
214 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:412
|
215 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:287
|
216 |
-
msgid "Nickname"
|
217 |
-
msgstr ""
|
218 |
-
|
219 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:192
|
220 |
-
msgid "Display name publicly as..."
|
221 |
-
msgstr ""
|
222 |
-
|
223 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:202
|
224 |
-
msgid "Contact Info:"
|
225 |
-
msgstr "Kontakt:"
|
226 |
-
|
227 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:209
|
228 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:457
|
229 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:305
|
230 |
-
msgid "E-mail"
|
231 |
-
msgstr ""
|
232 |
-
|
233 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:218
|
234 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:467
|
235 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:320
|
236 |
-
msgid "Website"
|
237 |
-
msgstr ""
|
238 |
-
|
239 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:230
|
240 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:476
|
241 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:334
|
242 |
-
msgid "AIM"
|
243 |
-
msgstr ""
|
244 |
-
|
245 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:239
|
246 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:485
|
247 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:348
|
248 |
-
msgid "Yahoo IM"
|
249 |
-
msgstr ""
|
250 |
-
|
251 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:248
|
252 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:494
|
253 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:362
|
254 |
-
msgid "Jabber / Google Talk"
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:258
|
258 |
-
msgid "About Yourself:"
|
259 |
-
msgstr ""
|
260 |
-
|
261 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:265
|
262 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:507
|
263 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:380
|
264 |
-
msgid "Biographical Info"
|
265 |
-
msgstr ""
|
266 |
-
|
267 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:275
|
268 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:516
|
269 |
-
msgid "New Password"
|
270 |
-
msgstr ""
|
271 |
-
|
272 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:57
|
273 |
-
msgid "Basic Information"
|
274 |
-
msgstr ""
|
275 |
-
|
276 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:59
|
277 |
-
msgid "Show/Hide the Admin Bar on Front-end"
|
278 |
-
msgstr ""
|
279 |
-
|
280 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:63
|
281 |
-
msgid "Extra Profile Fields"
|
282 |
-
msgstr ""
|
283 |
-
|
284 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:64
|
285 |
-
msgid "Register Your Version"
|
286 |
-
msgstr ""
|
287 |
-
|
288 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:269
|
289 |
-
msgid "You must be logged in to edit your profile."
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:278
|
293 |
-
msgid "The avatar was successfully deleted."
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:283
|
297 |
-
msgid "The attachment \""
|
298 |
-
msgstr ""
|
299 |
-
|
300 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:285
|
301 |
-
msgid "\" was successfully deleted."
|
302 |
-
msgstr ""
|
303 |
-
|
304 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:298
|
305 |
-
msgid "The changes have been successfully saved."
|
306 |
-
msgstr ""
|
307 |
-
|
308 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:303
|
309 |
-
msgid "The email address you entered is already registered to a different user.<br/>The email address was "
|
310 |
-
msgstr ""
|
311 |
-
|
312 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:304
|
313 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:314
|
314 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:324
|
315 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:333
|
316 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:355
|
317 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:363
|
318 |
-
msgid "NOT"
|
319 |
-
msgstr ""
|
320 |
-
|
321 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:305
|
322 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:315
|
323 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:325
|
324 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:334
|
325 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:356
|
326 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:364
|
327 |
-
msgid " updated along with the rest of the information."
|
328 |
-
msgstr ""
|
329 |
-
|
330 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:313
|
331 |
-
msgid "The email address you entered is invalid. <br/> The email address was "
|
332 |
-
msgstr ""
|
333 |
-
|
334 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:323
|
335 |
-
msgid "The passwords you entered do not match. <br/> The password was "
|
336 |
-
msgstr ""
|
337 |
-
|
338 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:332
|
339 |
-
msgid "You didn't complete both password fields. <br/> The password was "
|
340 |
-
msgstr ""
|
341 |
-
|
342 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:344
|
343 |
-
msgid "There was an error while trying to upload the following attachments:<br/>"
|
344 |
-
msgstr ""
|
345 |
-
|
346 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:352
|
347 |
-
msgid "<br/>Possible cause: the size was bigger than "
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:354
|
351 |
-
msgid "b.<br/>The listed attachements were "
|
352 |
-
msgstr ""
|
353 |
-
|
354 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:362
|
355 |
-
msgid "There was an error while trying to upload your avatar picture.<br/>Possible cause: size/incorrect file-type.<br/>The avatar was "
|
356 |
-
msgstr ""
|
357 |
-
|
358 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:380
|
359 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:233
|
360 |
-
msgid "Name"
|
361 |
-
msgstr ""
|
362 |
-
|
363 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:386
|
364 |
-
msgid " Usernames cannot be changed."
|
365 |
-
msgstr ""
|
366 |
-
|
367 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:414
|
368 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:459
|
369 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:246
|
370 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:307
|
371 |
-
msgid "(required)"
|
372 |
-
msgstr ""
|
373 |
-
|
374 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:422
|
375 |
-
msgid "Display name publicly as"
|
376 |
-
msgstr ""
|
377 |
-
|
378 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:451
|
379 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:294
|
380 |
-
msgid "Contact Info"
|
381 |
-
msgstr ""
|
382 |
-
|
383 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:501
|
384 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:369
|
385 |
-
msgid "About Yourself"
|
386 |
-
msgstr ""
|
387 |
-
|
388 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:521
|
389 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:403
|
390 |
-
msgid "Repeat Password"
|
391 |
-
msgstr ""
|
392 |
-
|
393 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:537
|
394 |
-
msgid "Update"
|
395 |
-
msgstr ""
|
396 |
-
|
397 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
398 |
-
#, php-format
|
399 |
-
msgid "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
400 |
-
msgstr ""
|
401 |
-
|
402 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
403 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
404 |
-
msgid "Log out of this account"
|
405 |
-
msgstr ""
|
406 |
-
|
407 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
408 |
-
msgid "Log out »"
|
409 |
-
msgstr ""
|
410 |
-
|
411 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:60
|
412 |
-
#, php-format
|
413 |
-
msgid "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
414 |
-
msgstr ""
|
415 |
-
|
416 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:86
|
417 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:398
|
418 |
-
msgid "Password"
|
419 |
-
msgstr ""
|
420 |
-
|
421 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:90
|
422 |
-
msgid "Log in"
|
423 |
-
msgstr ""
|
424 |
-
|
425 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:92
|
426 |
-
msgid "Remember me"
|
427 |
-
msgstr ""
|
428 |
-
|
429 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:96
|
430 |
-
msgid "Lost password?"
|
431 |
-
msgstr ""
|
432 |
-
|
433 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:39
|
434 |
-
msgid "A username is required for registration."
|
435 |
-
msgstr ""
|
436 |
-
|
437 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:41
|
438 |
-
msgid "Sorry, that username already exists!"
|
439 |
-
msgstr ""
|
440 |
-
|
441 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:44
|
442 |
-
msgid "You must enter a valid email address."
|
443 |
-
msgstr ""
|
444 |
-
|
445 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:46
|
446 |
-
msgid "Sorry, that email address is already used!"
|
447 |
-
msgstr ""
|
448 |
-
|
449 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:49
|
450 |
-
msgid "You didn't complete one of the password-fields!"
|
451 |
-
msgstr ""
|
452 |
-
|
453 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:51
|
454 |
-
msgid "The entered passwords don't match!"
|
455 |
-
msgstr ""
|
456 |
-
|
457 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
458 |
-
#, php-format
|
459 |
-
msgid "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't need another account."
|
460 |
-
msgstr ""
|
461 |
-
|
462 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
463 |
-
msgid "Logout »"
|
464 |
-
msgstr ""
|
465 |
-
|
466 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:181
|
467 |
-
#, php-format
|
468 |
-
msgid "A user account for %1$s has been created."
|
469 |
-
msgstr ""
|
470 |
-
|
471 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:183
|
472 |
-
#, php-format
|
473 |
-
msgid "Thank you for registering, %1$s."
|
474 |
-
msgstr ""
|
475 |
-
|
476 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:211
|
477 |
-
msgid "Users can register themselves or you can manually create users here."
|
478 |
-
msgstr ""
|
479 |
-
|
480 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:215
|
481 |
-
msgid "Users cannot currently register themselves, but you can manually create users here."
|
482 |
-
msgstr ""
|
483 |
-
|
484 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:219
|
485 |
-
msgid "Only an administrator can add new users."
|
486 |
-
msgstr ""
|
487 |
-
|
488 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:422
|
489 |
-
msgid " Send these credentials via email."
|
490 |
-
msgstr ""
|
491 |
-
|
492 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
493 |
-
msgid "Add User"
|
494 |
-
msgstr ""
|
495 |
-
|
496 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
497 |
-
msgid "Register"
|
498 |
-
msgstr ""
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/translation/profilebuilder-en_US.mo
DELETED
Binary file
|
tags/1.1.10/translation/profilebuilder-en_US.po
DELETED
@@ -1,1051 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: ProfileBuilder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-09-21 16:32+0200\n"
|
6 |
-
"PO-Revision-Date: 2011-09-21 16:33+0200\n"
|
7 |
-
"Last-Translator: Gabriel Barina <barinagabriel2007@yahoo.com>\n"
|
8 |
-
"Language-Team: Reflection Media, Barina Gabriel\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: .\n"
|
14 |
-
"X-Poedit-SearchPath-0: C:\\Users\\Gabi\\Desktop\\test\\profile-builder-pro\n"
|
15 |
-
|
16 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:5
|
17 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:8
|
18 |
-
msgid "Profile Builder"
|
19 |
-
msgstr ""
|
20 |
-
|
21 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:6
|
22 |
-
msgid "Welcome to Profile Builder!"
|
23 |
-
msgstr ""
|
24 |
-
|
25 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:8
|
26 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
27 |
-
msgstr ""
|
28 |
-
|
29 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:9
|
30 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
31 |
-
msgstr ""
|
32 |
-
|
33 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:10
|
34 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
35 |
-
msgstr ""
|
36 |
-
|
37 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:11
|
38 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
39 |
-
msgstr ""
|
40 |
-
|
41 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:12
|
42 |
-
msgid "Publish your page and you are ready to go!"
|
43 |
-
msgstr ""
|
44 |
-
|
45 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:13
|
46 |
-
msgid "You can use the following shortcodes:"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:14
|
50 |
-
msgid "for a log-in form."
|
51 |
-
msgstr ""
|
52 |
-
|
53 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:15
|
54 |
-
msgid "to add a registration form."
|
55 |
-
msgstr ""
|
56 |
-
|
57 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:16
|
58 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
59 |
-
msgstr ""
|
60 |
-
|
61 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:17
|
62 |
-
msgid "to add a password recovery form."
|
63 |
-
msgstr ""
|
64 |
-
|
65 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:19
|
66 |
-
msgid "Users with administrator rights have access to the following features:"
|
67 |
-
msgstr ""
|
68 |
-
|
69 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:20
|
70 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
71 |
-
msgstr ""
|
72 |
-
|
73 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:21
|
74 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
75 |
-
msgstr ""
|
76 |
-
|
77 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:22
|
78 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
79 |
-
msgstr ""
|
80 |
-
|
81 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:23
|
82 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
83 |
-
msgstr ""
|
84 |
-
|
85 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:24
|
86 |
-
msgid "add an avatar field."
|
87 |
-
msgstr ""
|
88 |
-
|
89 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:27
|
90 |
-
msgid "NOTE:"
|
91 |
-
msgstr ""
|
92 |
-
|
93 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:28
|
94 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
95 |
-
msgstr ""
|
96 |
-
|
97 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:29
|
98 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
99 |
-
msgstr ""
|
100 |
-
|
101 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:30
|
102 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:44
|
106 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:45
|
107 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/options.php:58
|
108 |
-
msgid "Plugin Layout"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:46
|
112 |
-
msgid "Stylesheet used:"
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:48
|
116 |
-
msgid "Default"
|
117 |
-
msgstr ""
|
118 |
-
|
119 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:53
|
120 |
-
msgid "White"
|
121 |
-
msgstr ""
|
122 |
-
|
123 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:54
|
124 |
-
msgid "Black"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:58
|
128 |
-
msgid "None"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:63
|
132 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:109
|
133 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:320
|
134 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:224
|
135 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:42
|
136 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:118
|
137 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:256
|
138 |
-
msgid "Save Changes"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:81
|
142 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:82
|
143 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:86
|
147 |
-
msgid "User-group"
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:87
|
151 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:133
|
152 |
-
msgid "Visibility"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:98
|
156 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:148
|
157 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:161
|
158 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:174
|
159 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:187
|
160 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:200
|
161 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:219
|
162 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:232
|
163 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:248
|
164 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:261
|
165 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:274
|
166 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:293
|
167 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:307
|
168 |
-
msgid "Show"
|
169 |
-
msgstr ""
|
170 |
-
|
171 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:99
|
172 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:149
|
173 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:162
|
174 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:175
|
175 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:188
|
176 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:201
|
177 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:220
|
178 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:233
|
179 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:249
|
180 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:262
|
181 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:275
|
182 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:294
|
183 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:308
|
184 |
-
msgid "Hide"
|
185 |
-
msgstr ""
|
186 |
-
|
187 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:127
|
188 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:128
|
189 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/options.php:60
|
190 |
-
msgid "Default Profile Fields"
|
191 |
-
msgstr ""
|
192 |
-
|
193 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:132
|
194 |
-
msgid "Input Field Name"
|
195 |
-
msgstr ""
|
196 |
-
|
197 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:134
|
198 |
-
msgid "Required"
|
199 |
-
msgstr ""
|
200 |
-
|
201 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:139
|
202 |
-
msgid "Name:"
|
203 |
-
msgstr ""
|
204 |
-
|
205 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:145
|
206 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:660
|
207 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:118
|
208 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:422
|
209 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:583
|
210 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:110
|
211 |
-
msgid "Username"
|
212 |
-
msgstr ""
|
213 |
-
|
214 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:152
|
215 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:165
|
216 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:178
|
217 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:191
|
218 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:204
|
219 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:223
|
220 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:236
|
221 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:252
|
222 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:265
|
223 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:278
|
224 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:297
|
225 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:311
|
226 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:172
|
227 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:180
|
228 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:190
|
229 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:219
|
230 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:231
|
231 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:243
|
232 |
-
msgid "Yes"
|
233 |
-
msgstr ""
|
234 |
-
|
235 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:153
|
236 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:166
|
237 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:179
|
238 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:192
|
239 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:205
|
240 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:224
|
241 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:237
|
242 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:253
|
243 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:266
|
244 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:279
|
245 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:298
|
246 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:312
|
247 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:173
|
248 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:181
|
249 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:191
|
250 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:220
|
251 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:232
|
252 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:244
|
253 |
-
msgid "No"
|
254 |
-
msgstr ""
|
255 |
-
|
256 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:158
|
257 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:679
|
258 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:604
|
259 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:125
|
260 |
-
msgid "First Name"
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:171
|
264 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:698
|
265 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:624
|
266 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:141
|
267 |
-
msgid "Last Name"
|
268 |
-
msgstr ""
|
269 |
-
|
270 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:184
|
271 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:717
|
272 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:644
|
273 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:157
|
274 |
-
msgid "Nickname"
|
275 |
-
msgstr ""
|
276 |
-
|
277 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:197
|
278 |
-
msgid "Display name publicly as..."
|
279 |
-
msgstr ""
|
280 |
-
|
281 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:210
|
282 |
-
msgid "Contact Info:"
|
283 |
-
msgstr ""
|
284 |
-
|
285 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:216
|
286 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:780
|
287 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:423
|
288 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:666
|
289 |
-
msgid "E-mail"
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:229
|
293 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:800
|
294 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:687
|
295 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:200
|
296 |
-
msgid "Website"
|
297 |
-
msgstr ""
|
298 |
-
|
299 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:245
|
300 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:819
|
301 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:707
|
302 |
-
msgid "AIM"
|
303 |
-
msgstr ""
|
304 |
-
|
305 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:258
|
306 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:838
|
307 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:727
|
308 |
-
msgid "Yahoo IM"
|
309 |
-
msgstr ""
|
310 |
-
|
311 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:271
|
312 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:857
|
313 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:747
|
314 |
-
msgid "Jabber / Google Talk"
|
315 |
-
msgstr ""
|
316 |
-
|
317 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:284
|
318 |
-
msgid "About Yourself:"
|
319 |
-
msgstr ""
|
320 |
-
|
321 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:290
|
322 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:880
|
323 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:771
|
324 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:229
|
325 |
-
msgid "Biographical Info"
|
326 |
-
msgstr ""
|
327 |
-
|
328 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/menu.file.php:304
|
329 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:891
|
330 |
-
msgid "New Password"
|
331 |
-
msgstr ""
|
332 |
-
|
333 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/options.php:57
|
334 |
-
msgid "Basic Information"
|
335 |
-
msgstr ""
|
336 |
-
|
337 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/options.php:59
|
338 |
-
msgid "Show/Hide the Admin Bar on Front-end"
|
339 |
-
msgstr ""
|
340 |
-
|
341 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/options.php:66
|
342 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:6
|
343 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:7
|
344 |
-
msgid "Extra Profile Fields"
|
345 |
-
msgstr ""
|
346 |
-
|
347 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/options.php:69
|
348 |
-
msgid "Addons"
|
349 |
-
msgstr ""
|
350 |
-
|
351 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/options.php:72
|
352 |
-
msgid "Register Your Version"
|
353 |
-
msgstr ""
|
354 |
-
|
355 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:81
|
356 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:39
|
357 |
-
msgid "The information size you were trying to submit was larger than"
|
358 |
-
msgstr ""
|
359 |
-
|
360 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:82
|
361 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:40
|
362 |
-
msgid "This is usually caused by a large file(s) trying to be uploaded."
|
363 |
-
msgstr ""
|
364 |
-
|
365 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:83
|
366 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:41
|
367 |
-
msgid "Since it was also larger than"
|
368 |
-
msgstr ""
|
369 |
-
|
370 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:83
|
371 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:41
|
372 |
-
msgid "no additional information is available."
|
373 |
-
msgstr ""
|
374 |
-
|
375 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:534
|
376 |
-
msgid "You must be logged in to edit your profile."
|
377 |
-
msgstr ""
|
378 |
-
|
379 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:544
|
380 |
-
msgid "The avatar was successfully deleted."
|
381 |
-
msgstr ""
|
382 |
-
|
383 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:551
|
384 |
-
msgid "The attachment"
|
385 |
-
msgstr ""
|
386 |
-
|
387 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:551
|
388 |
-
msgid "was successfully deleted."
|
389 |
-
msgstr ""
|
390 |
-
|
391 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:566
|
392 |
-
msgid "The changes have been successfully saved."
|
393 |
-
msgstr ""
|
394 |
-
|
395 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:573
|
396 |
-
msgid "The email address you entered is already registered to a different user."
|
397 |
-
msgstr ""
|
398 |
-
|
399 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:573
|
400 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:583
|
401 |
-
msgid "The email address was"
|
402 |
-
msgstr ""
|
403 |
-
|
404 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:573
|
405 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:583
|
406 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:593
|
407 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:602
|
408 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:628
|
409 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:636
|
410 |
-
msgid "NOT"
|
411 |
-
msgstr ""
|
412 |
-
|
413 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:573
|
414 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:583
|
415 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:593
|
416 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:602
|
417 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:628
|
418 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:636
|
419 |
-
msgid "updated along with the rest of the information."
|
420 |
-
msgstr ""
|
421 |
-
|
422 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:583
|
423 |
-
msgid "The email address you entered is invalid."
|
424 |
-
msgstr ""
|
425 |
-
|
426 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:593
|
427 |
-
msgid "The passwords you entered do not match."
|
428 |
-
msgstr ""
|
429 |
-
|
430 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:593
|
431 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:602
|
432 |
-
msgid "The password was"
|
433 |
-
msgstr ""
|
434 |
-
|
435 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:602
|
436 |
-
msgid "You didn't complete both password fields."
|
437 |
-
msgstr ""
|
438 |
-
|
439 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:609
|
440 |
-
msgid "Your profile was NOT updated!"
|
441 |
-
msgstr ""
|
442 |
-
|
443 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:618
|
444 |
-
msgid "There was an error while trying to upload the following attachments:"
|
445 |
-
msgstr ""
|
446 |
-
|
447 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:628
|
448 |
-
msgid "Possible cause: the size was bigger than"
|
449 |
-
msgstr ""
|
450 |
-
|
451 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:628
|
452 |
-
msgid "The listed attachements were"
|
453 |
-
msgstr ""
|
454 |
-
|
455 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:636
|
456 |
-
msgid "There was an error while trying to upload your avatar picture."
|
457 |
-
msgstr ""
|
458 |
-
|
459 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:636
|
460 |
-
msgid "Possible cause: size/incorrect file-type."
|
461 |
-
msgstr ""
|
462 |
-
|
463 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:636
|
464 |
-
msgid "The avatar was"
|
465 |
-
msgstr ""
|
466 |
-
|
467 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:653
|
468 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:571
|
469 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:98
|
470 |
-
msgid "Name"
|
471 |
-
msgstr ""
|
472 |
-
|
473 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:661
|
474 |
-
msgid "Usernames cannot be changed."
|
475 |
-
msgstr ""
|
476 |
-
|
477 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:719
|
478 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:782
|
479 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:585
|
480 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:668
|
481 |
-
msgid "(required)"
|
482 |
-
msgstr ""
|
483 |
-
|
484 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:737
|
485 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:173
|
486 |
-
msgid "Display name publicly as"
|
487 |
-
msgstr ""
|
488 |
-
|
489 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:764
|
490 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:651
|
491 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:188
|
492 |
-
msgid "Contact Info"
|
493 |
-
msgstr ""
|
494 |
-
|
495 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:864
|
496 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:754
|
497 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:216
|
498 |
-
msgid "About Yourself"
|
499 |
-
msgstr ""
|
500 |
-
|
501 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:896
|
502 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:281
|
503 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:312
|
504 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:791
|
505 |
-
msgid "Repeat Password"
|
506 |
-
msgstr ""
|
507 |
-
|
508 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.edit.profile.php:913
|
509 |
-
msgid "Update"
|
510 |
-
msgstr ""
|
511 |
-
|
512 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:53
|
513 |
-
msgid "You are currently logged in as"
|
514 |
-
msgstr ""
|
515 |
-
|
516 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:54
|
517 |
-
msgid "Log out of this account"
|
518 |
-
msgstr ""
|
519 |
-
|
520 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:54
|
521 |
-
msgid "Log out"
|
522 |
-
msgstr ""
|
523 |
-
|
524 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:73
|
525 |
-
msgid "You have successfully logged in as"
|
526 |
-
msgstr ""
|
527 |
-
|
528 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:100
|
529 |
-
msgid "You will soon be redirected automatically. If you see this page for more than 1 second, please click"
|
530 |
-
msgstr ""
|
531 |
-
|
532 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:100
|
533 |
-
msgid "here"
|
534 |
-
msgstr ""
|
535 |
-
|
536 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:108
|
537 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:327
|
538 |
-
msgid "ERROR:"
|
539 |
-
msgstr ""
|
540 |
-
|
541 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:108
|
542 |
-
msgid "The username field is empty"
|
543 |
-
msgstr ""
|
544 |
-
|
545 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:128
|
546 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:276
|
547 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:307
|
548 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:786
|
549 |
-
msgid "Password"
|
550 |
-
msgstr ""
|
551 |
-
|
552 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:132
|
553 |
-
msgid "Log in"
|
554 |
-
msgstr ""
|
555 |
-
|
556 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:136
|
557 |
-
msgid "Remember me"
|
558 |
-
msgstr ""
|
559 |
-
|
560 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.login.php:146
|
561 |
-
msgid "Lost password?"
|
562 |
-
msgstr ""
|
563 |
-
|
564 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:108
|
565 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:153
|
566 |
-
msgid "A password reset email has been sent to "
|
567 |
-
msgstr ""
|
568 |
-
|
569 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:108
|
570 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:153
|
571 |
-
msgid "Following the link sent in the email address will reset the password."
|
572 |
-
msgstr ""
|
573 |
-
|
574 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:120
|
575 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:165
|
576 |
-
msgid "Someone requested that the password be reset for the following account: "
|
577 |
-
msgstr ""
|
578 |
-
|
579 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:122
|
580 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:167
|
581 |
-
msgid "If this was a mistake, just ignore this email and nothing will happen."
|
582 |
-
msgstr ""
|
583 |
-
|
584 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:123
|
585 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:168
|
586 |
-
msgid "To reset your password, visit the following link:"
|
587 |
-
msgstr ""
|
588 |
-
|
589 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:127
|
590 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:172
|
591 |
-
msgid "Password Reset Feature from"
|
592 |
-
msgstr ""
|
593 |
-
|
594 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:136
|
595 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:181
|
596 |
-
msgid "ERROR"
|
597 |
-
msgstr ""
|
598 |
-
|
599 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:136
|
600 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:181
|
601 |
-
msgid "There was an error while trying to send the activation link to "
|
602 |
-
msgstr ""
|
603 |
-
|
604 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:146
|
605 |
-
msgid "The email address entered wasn't found in the database!"
|
606 |
-
msgstr ""
|
607 |
-
|
608 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:146
|
609 |
-
msgid "Please check that you entered the correct email address."
|
610 |
-
msgstr ""
|
611 |
-
|
612 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:188
|
613 |
-
msgid "The username entered wasn't found in the database!"
|
614 |
-
msgstr ""
|
615 |
-
|
616 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:188
|
617 |
-
msgid "Please check that you entered the correct username."
|
618 |
-
msgstr ""
|
619 |
-
|
620 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:199
|
621 |
-
msgid "Your password has been successfully changed!"
|
622 |
-
msgstr ""
|
623 |
-
|
624 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:210
|
625 |
-
msgid "You have successfully reset your password,"
|
626 |
-
msgstr ""
|
627 |
-
|
628 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:214
|
629 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:228
|
630 |
-
msgid "Password Successfully Reset for"
|
631 |
-
msgstr ""
|
632 |
-
|
633 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:214
|
634 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:228
|
635 |
-
msgid "from"
|
636 |
-
msgstr ""
|
637 |
-
|
638 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:224
|
639 |
-
msgid "has requested a password change via the password reset feature."
|
640 |
-
msgstr ""
|
641 |
-
|
642 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:225
|
643 |
-
msgid "His/her new password is:"
|
644 |
-
msgstr ""
|
645 |
-
|
646 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:243
|
647 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:273
|
648 |
-
msgid "The entered passwords don't match!"
|
649 |
-
msgstr ""
|
650 |
-
|
651 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:288
|
652 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:319
|
653 |
-
msgid "Reset Password"
|
654 |
-
msgstr ""
|
655 |
-
|
656 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:327
|
657 |
-
msgid "Invalid key!"
|
658 |
-
msgstr ""
|
659 |
-
|
660 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:341
|
661 |
-
msgid "Please enter your username or email address."
|
662 |
-
msgstr ""
|
663 |
-
|
664 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:341
|
665 |
-
msgid "You will receive a link to create a new password via email."
|
666 |
-
msgstr ""
|
667 |
-
|
668 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:347
|
669 |
-
msgid "Username or E-mail"
|
670 |
-
msgstr ""
|
671 |
-
|
672 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.recover.password.php:356
|
673 |
-
msgid "Get New Password"
|
674 |
-
msgstr ""
|
675 |
-
|
676 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:42
|
677 |
-
msgid "The user was NOT created!"
|
678 |
-
msgstr ""
|
679 |
-
|
680 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:262
|
681 |
-
msgid "A username is required for registration."
|
682 |
-
msgstr ""
|
683 |
-
|
684 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:264
|
685 |
-
msgid "Sorry, that username already exists!"
|
686 |
-
msgstr ""
|
687 |
-
|
688 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:266
|
689 |
-
msgid "You must enter a valid email address."
|
690 |
-
msgstr ""
|
691 |
-
|
692 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:268
|
693 |
-
msgid "Sorry, that email address is already used!"
|
694 |
-
msgstr ""
|
695 |
-
|
696 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:271
|
697 |
-
msgid "You didn't complete one of the password-fields!"
|
698 |
-
msgstr ""
|
699 |
-
|
700 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:276
|
701 |
-
msgid "You must agree to the terms and conditions before registering!"
|
702 |
-
msgstr ""
|
703 |
-
|
704 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:278
|
705 |
-
msgid "The account was NOT created!"
|
706 |
-
msgstr ""
|
707 |
-
|
708 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:278
|
709 |
-
msgid "(Several required fields were left uncompleted)"
|
710 |
-
msgstr ""
|
711 |
-
|
712 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:421
|
713 |
-
msgid "New subscriber on"
|
714 |
-
msgstr ""
|
715 |
-
|
716 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:426
|
717 |
-
msgid "A new subscriber has (been) registered!"
|
718 |
-
msgstr ""
|
719 |
-
|
720 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:470
|
721 |
-
msgid "You are logged in as"
|
722 |
-
msgstr ""
|
723 |
-
|
724 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:470
|
725 |
-
msgid "You don't need another account."
|
726 |
-
msgstr ""
|
727 |
-
|
728 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:470
|
729 |
-
msgid "Log out of this account."
|
730 |
-
msgstr ""
|
731 |
-
|
732 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:470
|
733 |
-
msgid "Logout"
|
734 |
-
msgstr ""
|
735 |
-
|
736 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:477
|
737 |
-
msgid "A user account has been created for"
|
738 |
-
msgstr ""
|
739 |
-
|
740 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:502
|
741 |
-
msgid "Thank you for registering"
|
742 |
-
msgstr ""
|
743 |
-
|
744 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:529
|
745 |
-
msgid "An error occured while trying to send the notification email."
|
746 |
-
msgstr ""
|
747 |
-
|
748 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:533
|
749 |
-
msgid "An email containing the username and password was successfully sent."
|
750 |
-
msgstr ""
|
751 |
-
|
752 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:548
|
753 |
-
msgid "Users can register themselves or you can manually create users here."
|
754 |
-
msgstr ""
|
755 |
-
|
756 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:553
|
757 |
-
msgid "Users cannot currently register themselves, but you can manually create users here."
|
758 |
-
msgstr ""
|
759 |
-
|
760 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:558
|
761 |
-
msgid "Only an administrator can add new users."
|
762 |
-
msgstr ""
|
763 |
-
|
764 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:811
|
765 |
-
msgid "Send these credentials via email."
|
766 |
-
msgstr ""
|
767 |
-
|
768 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:819
|
769 |
-
msgid "Add User"
|
770 |
-
msgstr ""
|
771 |
-
|
772 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/front-end/wppb.register.php:819
|
773 |
-
msgid "Register"
|
774 |
-
msgstr ""
|
775 |
-
|
776 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:8
|
777 |
-
msgid "You can create as many extra fields as your project requires. To break your custom fields into sections (on the front-end), add a \""
|
778 |
-
msgstr ""
|
779 |
-
|
780 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:8
|
781 |
-
msgid "heading"
|
782 |
-
msgstr ""
|
783 |
-
|
784 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:8
|
785 |
-
msgid "\" custom field."
|
786 |
-
msgstr ""
|
787 |
-
|
788 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:9
|
789 |
-
msgid "All of the fields can be sorted and rearranged to your liking with "
|
790 |
-
msgstr ""
|
791 |
-
|
792 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:9
|
793 |
-
msgid "Drag"
|
794 |
-
msgstr ""
|
795 |
-
|
796 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:9
|
797 |
-
msgid "Drop"
|
798 |
-
msgstr ""
|
799 |
-
|
800 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:9
|
801 |
-
msgid ". Don't worry about the order in which you create your custom fields, you can always reorder them."
|
802 |
-
msgstr ""
|
803 |
-
|
804 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:13
|
805 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:23
|
806 |
-
msgid "Title"
|
807 |
-
msgstr ""
|
808 |
-
|
809 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:14
|
810 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:24
|
811 |
-
msgid "Key"
|
812 |
-
msgstr ""
|
813 |
-
|
814 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:15
|
815 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:25
|
816 |
-
msgid "Type"
|
817 |
-
msgstr ""
|
818 |
-
|
819 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:16
|
820 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:26
|
821 |
-
msgid "Meta-Key"
|
822 |
-
msgstr ""
|
823 |
-
|
824 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:17
|
825 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:27
|
826 |
-
msgid "Req'd"
|
827 |
-
msgstr ""
|
828 |
-
|
829 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:18
|
830 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:28
|
831 |
-
msgid "Add Option"
|
832 |
-
msgstr ""
|
833 |
-
|
834 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:51
|
835 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:182
|
836 |
-
msgid "Edit"
|
837 |
-
msgstr ""
|
838 |
-
|
839 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:52
|
840 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:183
|
841 |
-
msgid "Delete"
|
842 |
-
msgstr ""
|
843 |
-
|
844 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:79
|
845 |
-
msgid "Title:"
|
846 |
-
msgstr ""
|
847 |
-
|
848 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:79
|
849 |
-
msgid "The title of the item."
|
850 |
-
msgstr ""
|
851 |
-
|
852 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:89
|
853 |
-
msgid "Meta-Key:"
|
854 |
-
msgstr ""
|
855 |
-
|
856 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:89
|
857 |
-
msgid "Use this in conjuction with WordPress functions to display the value in the page of your choosing. Auto-completed."
|
858 |
-
msgstr ""
|
859 |
-
|
860 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:99
|
861 |
-
msgid "Option Key:"
|
862 |
-
msgstr ""
|
863 |
-
|
864 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:99
|
865 |
-
msgid "Unique alphanumeric key, underscores are acceptable."
|
866 |
-
msgstr ""
|
867 |
-
|
868 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:132
|
869 |
-
msgid "Option Type:"
|
870 |
-
msgstr ""
|
871 |
-
|
872 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:132
|
873 |
-
msgid "Choose one of the supported option types."
|
874 |
-
msgstr ""
|
875 |
-
|
876 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:142
|
877 |
-
msgid "Description:"
|
878 |
-
msgstr ""
|
879 |
-
|
880 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:142
|
881 |
-
msgid "Enter a detailed description of the option for end users to read(optional)."
|
882 |
-
msgstr ""
|
883 |
-
|
884 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:152
|
885 |
-
msgid "Options:"
|
886 |
-
msgstr ""
|
887 |
-
|
888 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:152
|
889 |
-
msgid "Enter a comma separated list of options. For example, you could have \"One,Two,Three\" or just a single value like \"Yes\" for a checkbox."
|
890 |
-
msgstr ""
|
891 |
-
|
892 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:163
|
893 |
-
msgid "Required:"
|
894 |
-
msgstr ""
|
895 |
-
|
896 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:163
|
897 |
-
msgid "Check this box to make this field required."
|
898 |
-
msgstr ""
|
899 |
-
|
900 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:170
|
901 |
-
msgid "Cancel"
|
902 |
-
msgstr ""
|
903 |
-
|
904 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:171
|
905 |
-
msgid "Save"
|
906 |
-
msgstr ""
|
907 |
-
|
908 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:205
|
909 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:206
|
910 |
-
msgid "Register your version of Profile Builder Pro"
|
911 |
-
msgstr ""
|
912 |
-
|
913 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:207
|
914 |
-
msgid "Now that you acquired a copy of Profile Builder Pro, you should take the time and register it with the serial number you received in the e-mail."
|
915 |
-
msgstr ""
|
916 |
-
|
917 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:208
|
918 |
-
msgid "If you register this version of Profile Builder, you'll receive information regarding eventual upgrades, patches, and - if needed - technical support."
|
919 |
-
msgstr ""
|
920 |
-
|
921 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:209
|
922 |
-
msgid "Serial Number:"
|
923 |
-
msgstr ""
|
924 |
-
|
925 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:214
|
926 |
-
msgid "The serial number couldn't be validated or isn't valid!"
|
927 |
-
msgstr ""
|
928 |
-
|
929 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:216
|
930 |
-
msgid "The serial number was successfully validated!"
|
931 |
-
msgstr ""
|
932 |
-
|
933 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/premium.php:219
|
934 |
-
msgid "(e.g. RMPB-15-SN-253a55baa4fbe7bf595b2aabb8d72985)"
|
935 |
-
msgstr ""
|
936 |
-
|
937 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:606
|
938 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:609
|
939 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/functions/extra.fields.php:545
|
940 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/functions/extra.fields.php:549
|
941 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/functions/extra.fields.php:551
|
942 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/functions/extra.fields.php:1665
|
943 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/functions/extra.fields.php:1668
|
944 |
-
msgid "Current file"
|
945 |
-
msgstr ""
|
946 |
-
|
947 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:701
|
948 |
-
msgid "Users listed by:"
|
949 |
-
msgstr ""
|
950 |
-
|
951 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.functions.php:732
|
952 |
-
msgid "Reorder"
|
953 |
-
msgstr ""
|
954 |
-
|
955 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:9
|
956 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:10
|
957 |
-
msgid "Activate/Deactivate Addons"
|
958 |
-
msgstr ""
|
959 |
-
|
960 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:14
|
961 |
-
msgid "Name/Description"
|
962 |
-
msgstr ""
|
963 |
-
|
964 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:15
|
965 |
-
msgid "Status"
|
966 |
-
msgstr ""
|
967 |
-
|
968 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:21
|
969 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:66
|
970 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:67
|
971 |
-
msgid "User-Listing"
|
972 |
-
msgstr ""
|
973 |
-
|
974 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:24
|
975 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:33
|
976 |
-
msgid "Active"
|
977 |
-
msgstr ""
|
978 |
-
|
979 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:25
|
980 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:34
|
981 |
-
msgid "Inactive"
|
982 |
-
msgstr ""
|
983 |
-
|
984 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:30
|
985 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:153
|
986 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:154
|
987 |
-
msgid "Custom Redirects"
|
988 |
-
msgstr ""
|
989 |
-
|
990 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:69
|
991 |
-
msgid "To create a page containing the users registered to this current site/blog, insert the following shortcode in a (blank) page: "
|
992 |
-
msgstr ""
|
993 |
-
|
994 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:71
|
995 |
-
msgid "Please select the default user-listing (can be temporarily overwritten in the front-end):"
|
996 |
-
msgstr ""
|
997 |
-
|
998 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:76
|
999 |
-
msgid "Sorting Criteria: "
|
1000 |
-
msgstr ""
|
1001 |
-
|
1002 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:88
|
1003 |
-
msgid "Sorting Order: "
|
1004 |
-
msgstr ""
|
1005 |
-
|
1006 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:97
|
1007 |
-
msgid "Users/Page: "
|
1008 |
-
msgstr ""
|
1009 |
-
|
1010 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:164
|
1011 |
-
msgid "Action"
|
1012 |
-
msgstr ""
|
1013 |
-
|
1014 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:165
|
1015 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:210
|
1016 |
-
msgid "Redirect"
|
1017 |
-
msgstr ""
|
1018 |
-
|
1019 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:166
|
1020 |
-
msgid "URL"
|
1021 |
-
msgstr ""
|
1022 |
-
|
1023 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:170
|
1024 |
-
msgid "After Registration:"
|
1025 |
-
msgstr ""
|
1026 |
-
|
1027 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:178
|
1028 |
-
msgid "After Login:"
|
1029 |
-
msgstr ""
|
1030 |
-
|
1031 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:198
|
1032 |
-
msgid "When activated this feature will redirect the user on both the default Wordpress password recovery page and the \"Lost password?\" link used by Profile Builder on the front-end login page."
|
1033 |
-
msgstr ""
|
1034 |
-
|
1035 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:209
|
1036 |
-
msgid "Requested WP Page"
|
1037 |
-
msgstr ""
|
1038 |
-
|
1039 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:211
|
1040 |
-
msgid "Target Page"
|
1041 |
-
msgstr ""
|
1042 |
-
|
1043 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/addon/addon.php:251
|
1044 |
-
msgid "Redirects every user-role EXCEPT the ones with administrator privilages (can manage options)."
|
1045 |
-
msgstr ""
|
1046 |
-
|
1047 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/functions/extra.fields.php:580
|
1048 |
-
#: C:\Users\Gabi\Desktop\test\profile-builder-pro/premium/functions/extra.fields.php:1690
|
1049 |
-
msgid "Current avatar"
|
1050 |
-
msgstr ""
|
1051 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/translation/profilebuilder-fr_FR.po
DELETED
@@ -1,499 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Profile Builder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-07-06 14:23+0200\n"
|
6 |
-
"PO-Revision-Date: 2011-08-22 11:52+0100\n"
|
7 |
-
"Last-Translator: Sébastien CEZARD <foxyflying@gmail.com>\n"
|
8 |
-
"Language-Team: ReflectionMedia\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: C:\\Users\\Cristi\\Desktop\\free\n"
|
14 |
-
"X-Poedit-Language: English\n"
|
15 |
-
"X-Poedit-SearchPath-0: C:\\Users\\Cristi\\Desktop\\free\n"
|
16 |
-
|
17 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:5
|
18 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
19 |
-
msgid "Profile Builder"
|
20 |
-
msgstr "Profile Builder"
|
21 |
-
|
22 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:6
|
23 |
-
msgid "Welcome to Profile Builder!"
|
24 |
-
msgstr "Bienvenue dans Profile Builder !"
|
25 |
-
|
26 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
27 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
28 |
-
msgstr " vous permet de personnaliser votre site en y ajoutant un menu visible par les utilisateurs, leur permettant de modifier de manière plus flexible les informations les concernant ou encore, de permettre l'enregistrement de nouveaux utilisateurs."
|
29 |
-
|
30 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:9
|
31 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
32 |
-
msgstr "Il permet également aux utilisateurs dotés de droits d'administrateurs de personnaliser les champs de base ou d'en ajouter d'autre à leur guise."
|
33 |
-
|
34 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:10
|
35 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
36 |
-
msgstr "Pour mettre en place le dispositif, créez simplement une nouvelle page et donnez-lui un nom évocateur (par exemple, \"Modifier le Profil\")."
|
37 |
-
|
38 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:11
|
39 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
40 |
-
msgstr "Tout ce qu'il vous reste à faire ensuite est d'ajouter le shortcode suivant (pour l'exemple précédent): [wppb-edit-profile]."
|
41 |
-
|
42 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:12
|
43 |
-
msgid "Publish your page and you are ready to go!"
|
44 |
-
msgstr "Publiez votre page et le tour est joué !"
|
45 |
-
|
46 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:13
|
47 |
-
msgid "You can use the following shortcodes:"
|
48 |
-
msgstr "Vous pouvez utiliser les shortcodes suivant:"
|
49 |
-
|
50 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:14
|
51 |
-
msgid "for a log-in form."
|
52 |
-
msgstr "pour un formulaire de connexion."
|
53 |
-
|
54 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:15
|
55 |
-
msgid "to add a registration form."
|
56 |
-
msgstr "pour ajouter un formulaire d'enregistrement."
|
57 |
-
|
58 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:16
|
59 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
60 |
-
msgstr "pour permettre aux utilisateurs d'accéder à leurs données personnelles (l'utilisateur doit être connecté)."
|
61 |
-
|
62 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:18
|
63 |
-
msgid "Users with administrator rights have access to the following features:"
|
64 |
-
msgstr "Les utilisateurs possédant des droits d'administrateurs ont accés aux fonctions suivantes:"
|
65 |
-
|
66 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:19
|
67 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
68 |
-
msgstr "ajout de feuilles de styles personnalisées/héritées du thème courant ou incluses par défaut dans le plugin: défaut, blanc ou noir."
|
69 |
-
|
70 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:20
|
71 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
72 |
-
msgstr "possibilité d'afficher ou non la Barre d'Administration sur le Front-End pour un groupe d'utilisateurs spécifique enregistré sur le site."
|
73 |
-
|
74 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:21
|
75 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
76 |
-
msgstr "choix du type de champ pouvant être affiché ou modifié. Les valeurs entrées dans les champs masqués demeurent non modifiées."
|
77 |
-
|
78 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:22
|
79 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
80 |
-
msgstr "ajout de champs personnalisés, avec le choix entre différents types: titre, texte, zone de texte, sélection, case à cocher, bouton, et/ou téléversement."
|
81 |
-
|
82 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:23
|
83 |
-
msgid "add an avatar field."
|
84 |
-
msgstr "ajout d'un champ d'avatar"
|
85 |
-
|
86 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:26
|
87 |
-
msgid "NOTE:"
|
88 |
-
msgstr "NOTE:"
|
89 |
-
|
90 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:27
|
91 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
92 |
-
msgstr "ce plugin ajoute/retire des champs uniquement sur le Front-End."
|
93 |
-
|
94 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:28
|
95 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
96 |
-
msgstr "Les champs d'informations par défaut seront encore visibles (donc modifiables)"
|
97 |
-
|
98 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:29
|
99 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
100 |
-
msgstr "depuis le Back-End, alors que les champs personnalisés ne seront visibles que sur le Front-End. "
|
101 |
-
|
102 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:43
|
103 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:44
|
104 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:58
|
105 |
-
msgid "Plugin Layout"
|
106 |
-
msgstr "Apparence du Plugin"
|
107 |
-
|
108 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:50
|
109 |
-
msgid "Stylesheet used:"
|
110 |
-
msgstr "Feuille de style utilisée"
|
111 |
-
|
112 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:53
|
113 |
-
msgid "Default"
|
114 |
-
msgstr "Défaut"
|
115 |
-
|
116 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:58
|
117 |
-
msgid "White"
|
118 |
-
msgstr "Blanc"
|
119 |
-
|
120 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:59
|
121 |
-
msgid "Black"
|
122 |
-
msgstr "Noir"
|
123 |
-
|
124 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:63
|
125 |
-
msgid "None"
|
126 |
-
msgstr "Aucune"
|
127 |
-
|
128 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:72
|
129 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:119
|
130 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:287
|
131 |
-
msgid "Save Changes"
|
132 |
-
msgstr "Sauvegarder les modifications"
|
133 |
-
|
134 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:90
|
135 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:91
|
136 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
137 |
-
msgstr "Afficher/Masquer la Barre d'Administration sur le Front-End"
|
138 |
-
|
139 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:95
|
140 |
-
msgid "User-group"
|
141 |
-
msgstr "Groupe d'Utilisateurs"
|
142 |
-
|
143 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:96
|
144 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:143
|
145 |
-
msgid "Visibility"
|
146 |
-
msgstr "Visibilité"
|
147 |
-
|
148 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:108
|
149 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:159
|
150 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:168
|
151 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:177
|
152 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:186
|
153 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:195
|
154 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:212
|
155 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:221
|
156 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:233
|
157 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:242
|
158 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:251
|
159 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:268
|
160 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:278
|
161 |
-
msgid "Show"
|
162 |
-
msgstr "Afficher"
|
163 |
-
|
164 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:109
|
165 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:160
|
166 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:169
|
167 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:178
|
168 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:187
|
169 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:196
|
170 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:213
|
171 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:222
|
172 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:234
|
173 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:243
|
174 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:252
|
175 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:269
|
176 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:279
|
177 |
-
msgid "Hide"
|
178 |
-
msgstr "Masquer"
|
179 |
-
|
180 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:137
|
181 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:138
|
182 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:60
|
183 |
-
msgid "Default Profile Fields"
|
184 |
-
msgstr "Champs de Profil par Défaut"
|
185 |
-
|
186 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:142
|
187 |
-
msgid "Input Field Name"
|
188 |
-
msgstr "Nom du Champ de Saisie"
|
189 |
-
|
190 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:149
|
191 |
-
msgid "Name:"
|
192 |
-
msgstr "Nom:"
|
193 |
-
|
194 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:156
|
195 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:385
|
196 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:76
|
197 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:244
|
198 |
-
msgid "Username"
|
199 |
-
msgstr "Nom d'Utilisateur"
|
200 |
-
|
201 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:165
|
202 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:394
|
203 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:259
|
204 |
-
msgid "First Name"
|
205 |
-
msgstr "Prénom"
|
206 |
-
|
207 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:174
|
208 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:403
|
209 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:273
|
210 |
-
msgid "Last Name"
|
211 |
-
msgstr "Nom"
|
212 |
-
|
213 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:183
|
214 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:412
|
215 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:287
|
216 |
-
msgid "Nickname"
|
217 |
-
msgstr "Pseudo"
|
218 |
-
|
219 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:192
|
220 |
-
msgid "Display name publicly as..."
|
221 |
-
msgstr "Apparaître publiquement en tant que..."
|
222 |
-
|
223 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:202
|
224 |
-
msgid "Contact Info:"
|
225 |
-
msgstr "Infos de Contact"
|
226 |
-
|
227 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:209
|
228 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:457
|
229 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:305
|
230 |
-
msgid "E-mail"
|
231 |
-
msgstr "Courriel"
|
232 |
-
|
233 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:218
|
234 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:467
|
235 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:320
|
236 |
-
msgid "Website"
|
237 |
-
msgstr "Site Web"
|
238 |
-
|
239 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:230
|
240 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:476
|
241 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:334
|
242 |
-
msgid "AIM"
|
243 |
-
msgstr "AIM"
|
244 |
-
|
245 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:239
|
246 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:485
|
247 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:348
|
248 |
-
msgid "Yahoo IM"
|
249 |
-
msgstr "Yahoo IM"
|
250 |
-
|
251 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:248
|
252 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:494
|
253 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:362
|
254 |
-
msgid "Jabber / Google Talk"
|
255 |
-
msgstr "Jabber / Google Talk"
|
256 |
-
|
257 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:258
|
258 |
-
msgid "About Yourself:"
|
259 |
-
msgstr "À propos de vous:"
|
260 |
-
|
261 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:265
|
262 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:507
|
263 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:380
|
264 |
-
msgid "Biographical Info"
|
265 |
-
msgstr "Infos Biographiques"
|
266 |
-
|
267 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:275
|
268 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:516
|
269 |
-
msgid "New Password"
|
270 |
-
msgstr "Nouveau Mot de Passe"
|
271 |
-
|
272 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:57
|
273 |
-
msgid "Basic Information"
|
274 |
-
msgstr "Informations de Base"
|
275 |
-
|
276 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:59
|
277 |
-
msgid "Show/Hide the Admin Bar on Front-end"
|
278 |
-
msgstr "Afficher/Masquer la Barre d'Administration sur le Front-End"
|
279 |
-
|
280 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:63
|
281 |
-
msgid "Extra Profile Fields"
|
282 |
-
msgstr "Champs de Profile Supplémentaires"
|
283 |
-
|
284 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:64
|
285 |
-
msgid "Register Your Version"
|
286 |
-
msgstr "Enregistrer Votre Version"
|
287 |
-
|
288 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:269
|
289 |
-
msgid "You must be logged in to edit your profile."
|
290 |
-
msgstr "Vous devez être connecté(e) pour modifier votre profil."
|
291 |
-
|
292 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:278
|
293 |
-
msgid "The avatar was successfully deleted."
|
294 |
-
msgstr "L'avatar a bien été supprimé."
|
295 |
-
|
296 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:283
|
297 |
-
msgid "The attachment \""
|
298 |
-
msgstr "La pièce jointe \""
|
299 |
-
|
300 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:285
|
301 |
-
msgid "\" was successfully deleted."
|
302 |
-
msgstr "\" a bien été supprimée."
|
303 |
-
|
304 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:298
|
305 |
-
msgid "The changes have been successfully saved."
|
306 |
-
msgstr "Les modifications ont bien été sauvegardées."
|
307 |
-
|
308 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:303
|
309 |
-
msgid "The email address you entered is already registered to a different user.<br/>The email address was "
|
310 |
-
msgstr "L'adresse de courriel indiquée appartient déjà à un autre utilisateur.<br/>L'adresse de courriel était "
|
311 |
-
|
312 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:304
|
313 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:314
|
314 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:324
|
315 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:333
|
316 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:355
|
317 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:363
|
318 |
-
msgid "NOT"
|
319 |
-
msgstr "PAS"
|
320 |
-
|
321 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:305
|
322 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:315
|
323 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:325
|
324 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:334
|
325 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:356
|
326 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:364
|
327 |
-
msgid " updated along with the rest of the information."
|
328 |
-
msgstr " mis à jour avec le reste des informations."
|
329 |
-
|
330 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:313
|
331 |
-
msgid "The email address you entered is invalid. <br/> The email address was "
|
332 |
-
msgstr "L'adresse de courriel n'est pas valide. <br/> L'adresse de courriel était "
|
333 |
-
|
334 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:323
|
335 |
-
msgid "The passwords you entered do not match. <br/> The password was "
|
336 |
-
msgstr "Les mots de passe ne correspondent pas. <br/> Les mots de passe étaient "
|
337 |
-
|
338 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:332
|
339 |
-
msgid "You didn't complete both password fields. <br/> The password was "
|
340 |
-
msgstr "Vous n'avez pas renseigné les champs de mots de passe. <br/> Les mots de passe étaient "
|
341 |
-
|
342 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:344
|
343 |
-
msgid "There was an error while trying to upload the following attachments:<br/>"
|
344 |
-
msgstr "Une erreur est survenue durant le téléversement des fichiers suivante:<br/>"
|
345 |
-
|
346 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:352
|
347 |
-
msgid "<br/>Possible cause: the size was bigger than "
|
348 |
-
msgstr "<br/>Cause possible: la taille est supérieur à "
|
349 |
-
|
350 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:354
|
351 |
-
msgid "b.<br/>The listed attachements were "
|
352 |
-
msgstr "b.<br/>les fichiers étaient "
|
353 |
-
|
354 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:362
|
355 |
-
msgid "There was an error while trying to upload your avatar picture.<br/>Possible cause: size/incorrect file-type.<br/>The avatar was "
|
356 |
-
msgstr "Une erreur est survenue durant le téléversement de l'image.<br/>Cause possible: taille/type de fichier incorrect.<br/>L'avatar était "
|
357 |
-
|
358 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:380
|
359 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:233
|
360 |
-
msgid "Name"
|
361 |
-
msgstr "Nom"
|
362 |
-
|
363 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:386
|
364 |
-
msgid " Usernames cannot be changed."
|
365 |
-
msgstr " Les noms d'utilisateurs ne peuvent être modifiés."
|
366 |
-
|
367 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:414
|
368 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:459
|
369 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:246
|
370 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:307
|
371 |
-
msgid "(required)"
|
372 |
-
msgstr "(requis)"
|
373 |
-
|
374 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:422
|
375 |
-
msgid "Display name publicly as"
|
376 |
-
msgstr "Apparaître publiquement en tant que"
|
377 |
-
|
378 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:451
|
379 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:294
|
380 |
-
msgid "Contact Info"
|
381 |
-
msgstr "Infos de Contact"
|
382 |
-
|
383 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:501
|
384 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:369
|
385 |
-
msgid "About Yourself"
|
386 |
-
msgstr "À Propos de Vous"
|
387 |
-
|
388 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:521
|
389 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:403
|
390 |
-
msgid "Repeat Password"
|
391 |
-
msgstr "Répéter le Mot de Passe"
|
392 |
-
|
393 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:537
|
394 |
-
msgid "Update"
|
395 |
-
msgstr "Mettre à Jour"
|
396 |
-
|
397 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
398 |
-
#, php-format
|
399 |
-
msgid "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
400 |
-
msgstr "Vous êtes actuellement connecté(e) en tant que <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
401 |
-
|
402 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
403 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
404 |
-
msgid "Log out of this account"
|
405 |
-
msgstr "Se déconnecter de ce compte"
|
406 |
-
|
407 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
408 |
-
msgid "Log out »"
|
409 |
-
msgstr "Déconnexion »"
|
410 |
-
|
411 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:60
|
412 |
-
#, php-format
|
413 |
-
msgid "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
414 |
-
msgstr "Vous vous êtes connecté en tant que <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
415 |
-
|
416 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:86
|
417 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:398
|
418 |
-
msgid "Password"
|
419 |
-
msgstr "Mot de Passe"
|
420 |
-
|
421 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:90
|
422 |
-
msgid "Log in"
|
423 |
-
msgstr "Connexion"
|
424 |
-
|
425 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:92
|
426 |
-
msgid "Remember me"
|
427 |
-
msgstr "Se souvenir de moi"
|
428 |
-
|
429 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:96
|
430 |
-
msgid "Lost password?"
|
431 |
-
msgstr "Mot de passe oublié ?"
|
432 |
-
|
433 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:39
|
434 |
-
msgid "A username is required for registration."
|
435 |
-
msgstr "Un nom d'utilisateur est requis pour l'enregistrement."
|
436 |
-
|
437 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:41
|
438 |
-
msgid "Sorry, that username already exists!"
|
439 |
-
msgstr "Désolé, ce nom d'utilisateur existe déjà !"
|
440 |
-
|
441 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:44
|
442 |
-
msgid "You must enter a valid email address."
|
443 |
-
msgstr "Vous devez entrer une adresse de courriel valide."
|
444 |
-
|
445 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:46
|
446 |
-
msgid "Sorry, that email address is already used!"
|
447 |
-
msgstr "Désolé, cette adresse de courriel est déjà utilisée !"
|
448 |
-
|
449 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:49
|
450 |
-
msgid "You didn't complete one of the password-fields!"
|
451 |
-
msgstr "Vous n'avez pas renseigné un des champs de mot de passe !"
|
452 |
-
|
453 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:51
|
454 |
-
msgid "The entered passwords don't match!"
|
455 |
-
msgstr "Les mots de passe ne correspondent pas !"
|
456 |
-
|
457 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
458 |
-
#, php-format
|
459 |
-
msgid "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't need another account."
|
460 |
-
msgstr "Vous êtes connecté(e) en tant que <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Vous n'avez pas besoin de créer un autre compte."
|
461 |
-
|
462 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
463 |
-
msgid "Logout »"
|
464 |
-
msgstr "Déconnexion »"
|
465 |
-
|
466 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:181
|
467 |
-
#, php-format
|
468 |
-
msgid "A user account for %1$s has been created."
|
469 |
-
msgstr "Un compte utilisateur pour %1$s a été créé."
|
470 |
-
|
471 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:183
|
472 |
-
#, php-format
|
473 |
-
msgid "Thank you for registering, %1$s."
|
474 |
-
msgstr "Merci de vous être enregistré, %1$s."
|
475 |
-
|
476 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:211
|
477 |
-
msgid "Users can register themselves or you can manually create users here."
|
478 |
-
msgstr "Les utilisateurs peuvent s'enregistrer ou bien vous pouvez les créer manuellement ici."
|
479 |
-
|
480 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:215
|
481 |
-
msgid "Users cannot currently register themselves, but you can manually create users here."
|
482 |
-
msgstr "Les utilisateurs ne peuvent actuellement pas s'enregistrer eux-même, mais vous pouvez les créer manuellement ici."
|
483 |
-
|
484 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:219
|
485 |
-
msgid "Only an administrator can add new users."
|
486 |
-
msgstr "Seul un administrateur peut ajouter de nouveaux utilisateurs."
|
487 |
-
|
488 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:422
|
489 |
-
msgid " Send these credentials via email."
|
490 |
-
msgstr " Envoyer ces données par courriel."
|
491 |
-
|
492 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
493 |
-
msgid "Add User"
|
494 |
-
msgstr "Ajouter un Utilisateur"
|
495 |
-
|
496 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
497 |
-
msgid "Register"
|
498 |
-
msgstr "Enregistrement"
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/translation/profilebuilder-hu_HU.po
DELETED
@@ -1,499 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Profile Builder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-07-06 14:23+0200\n"
|
6 |
-
"PO-Revision-Date: 2011-07-07 16:12+0200\n"
|
7 |
-
"Last-Translator: Gabriel Barina <barinagabriel2007@yahoo.com>\n"
|
8 |
-
"Language-Team: ReflectionMedia\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: C:\\Users\\Cristi\\Desktop\\free\n"
|
14 |
-
"X-Poedit-Language: English\n"
|
15 |
-
"X-Poedit-SearchPath-0: C:\\Users\\Cristi\\Desktop\\free\n"
|
16 |
-
|
17 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:5
|
18 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
19 |
-
msgid "Profile Builder"
|
20 |
-
msgstr "Profile Builder"
|
21 |
-
|
22 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:6
|
23 |
-
msgid "Welcome to Profile Builder!"
|
24 |
-
msgstr "Üdv.a Profile Buliderben!"
|
25 |
-
|
26 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
27 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
28 |
-
msgstr "testreszabhatod a weboldaladat egy új menü létrehozásával, amely minden felhasználónak biztosítja az adatai rugalmasabb szerkesztését."
|
29 |
-
|
30 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:9
|
31 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
32 |
-
msgstr "Az adminisztrátor jogú felhasználók testreszabhatják az alap mezőket, vagy újakat adhatnak hozzá"
|
33 |
-
|
34 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:10
|
35 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
36 |
-
msgstr "Ennek elérése érdekében hozz létre egy új oldalt, és adj neki egy nevet (pl. Profil szerkesztése)"
|
37 |
-
|
38 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:11
|
39 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
40 |
-
msgstr "Most mindössze annyit kell tennie, hogy a következő rövidkódot beilleszti (az előző példában):"
|
41 |
-
|
42 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:12
|
43 |
-
msgid "Publish your page and you are ready to go!"
|
44 |
-
msgstr "Az oldal közzététele és már mehet is!"
|
45 |
-
|
46 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:13
|
47 |
-
msgid "You can use the following shortcodes:"
|
48 |
-
msgstr "A következő rövidkódokat használhatod:"
|
49 |
-
|
50 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:14
|
51 |
-
msgid "for a log-in form."
|
52 |
-
msgstr "bejelentkezési űrlaphoz."
|
53 |
-
|
54 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:15
|
55 |
-
msgid "to add a registration form."
|
56 |
-
msgstr "regisztrációs űrlap hozzáadásához."
|
57 |
-
|
58 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:16
|
59 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
60 |
-
msgstr "a felhasználóknak lehetőséget biztosít a személyes adataik eléréséhez (bejelentkezés szükséges)."
|
61 |
-
|
62 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:18
|
63 |
-
msgid "Users with administrator rights have access to the following features:"
|
64 |
-
msgstr "Az adminisztrátor jogú felhasználók ezeket a funkciókat is elérhetik:"
|
65 |
-
|
66 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:19
|
67 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
68 |
-
msgstr "Saját stíluslap használata a jelenlegi témából, vagy a következő bővítménybe épített stíluslapok: szokásos, fehér, vagy fekete."
|
69 |
-
|
70 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:20
|
71 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
72 |
-
msgstr "Válaszd ki, hogy az admin sáv megjelenjen-e egy adott felhasználói csoportnak amely regisztrált az oldalra. "
|
73 |
-
|
74 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:21
|
75 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
76 |
-
msgstr "Válaszd ki, mely információs mezőket láthat/módosíthat a felhasználó. A rejtett mezők értéke változatlan marad."
|
77 |
-
|
78 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:22
|
79 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
80 |
-
msgstr "Egyéni mezők hozzáadása a meglévőkhöz, amit a következők közül lehet kiválasztani: heading, text, textarea, select, checkbox, radio, and/or upload."
|
81 |
-
|
82 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:23
|
83 |
-
msgid "add an avatar field."
|
84 |
-
msgstr "Avatar mező hozzáadása."
|
85 |
-
|
86 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:26
|
87 |
-
msgid "NOTE:"
|
88 |
-
msgstr "MEGJEGYZÉS:"
|
89 |
-
|
90 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:27
|
91 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
92 |
-
msgstr "Ez a bővítmény csak hozzáad/eltávolít mezőket a felhasználó elől. "
|
93 |
-
|
94 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:28
|
95 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
96 |
-
msgstr "Az alap információs mezők továbbra is láthatóak (és módosíthatóak)"
|
97 |
-
|
98 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:29
|
99 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
100 |
-
msgstr "Az egyedi mezők csak a felhasználók számára lesznek láthatók. "
|
101 |
-
|
102 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:43
|
103 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:44
|
104 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:58
|
105 |
-
msgid "Plugin Layout"
|
106 |
-
msgstr "Bővítény megjelenítés"
|
107 |
-
|
108 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:50
|
109 |
-
msgid "Stylesheet used:"
|
110 |
-
msgstr "Stíluslap használata:"
|
111 |
-
|
112 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:53
|
113 |
-
msgid "Default"
|
114 |
-
msgstr "Szokásos"
|
115 |
-
|
116 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:58
|
117 |
-
msgid "White"
|
118 |
-
msgstr "Fehér"
|
119 |
-
|
120 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:59
|
121 |
-
msgid "Black"
|
122 |
-
msgstr "Fekete"
|
123 |
-
|
124 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:63
|
125 |
-
msgid "None"
|
126 |
-
msgstr "Nincs"
|
127 |
-
|
128 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:72
|
129 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:119
|
130 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:287
|
131 |
-
msgid "Save Changes"
|
132 |
-
msgstr "Módosítások mentése"
|
133 |
-
|
134 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:90
|
135 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:91
|
136 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
137 |
-
msgstr "Admin sáv elrejt/mutat a felhasználó előtt"
|
138 |
-
|
139 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:95
|
140 |
-
msgid "User-group"
|
141 |
-
msgstr "Felhasználói csoport"
|
142 |
-
|
143 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:96
|
144 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:143
|
145 |
-
msgid "Visibility"
|
146 |
-
msgstr "Láthatóság"
|
147 |
-
|
148 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:108
|
149 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:159
|
150 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:168
|
151 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:177
|
152 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:186
|
153 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:195
|
154 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:212
|
155 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:221
|
156 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:233
|
157 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:242
|
158 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:251
|
159 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:268
|
160 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:278
|
161 |
-
msgid "Show"
|
162 |
-
msgstr "Mutat"
|
163 |
-
|
164 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:109
|
165 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:160
|
166 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:169
|
167 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:178
|
168 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:187
|
169 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:196
|
170 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:213
|
171 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:222
|
172 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:234
|
173 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:243
|
174 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:252
|
175 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:269
|
176 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:279
|
177 |
-
msgid "Hide"
|
178 |
-
msgstr "Elrejt"
|
179 |
-
|
180 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:137
|
181 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:138
|
182 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:60
|
183 |
-
msgid "Default Profile Fields"
|
184 |
-
msgstr "Alap profil mezők"
|
185 |
-
|
186 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:142
|
187 |
-
msgid "Input Field Name"
|
188 |
-
msgstr "Beviteli mező neve"
|
189 |
-
|
190 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:149
|
191 |
-
msgid "Name:"
|
192 |
-
msgstr "Név:"
|
193 |
-
|
194 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:156
|
195 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:385
|
196 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:76
|
197 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:244
|
198 |
-
msgid "Username"
|
199 |
-
msgstr "Felhasználónév"
|
200 |
-
|
201 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:165
|
202 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:394
|
203 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:259
|
204 |
-
msgid "First Name"
|
205 |
-
msgstr "Keresztnév"
|
206 |
-
|
207 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:174
|
208 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:403
|
209 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:273
|
210 |
-
msgid "Last Name"
|
211 |
-
msgstr "Vezetéknév"
|
212 |
-
|
213 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:183
|
214 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:412
|
215 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:287
|
216 |
-
msgid "Nickname"
|
217 |
-
msgstr "Loginnév"
|
218 |
-
|
219 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:192
|
220 |
-
msgid "Display name publicly as..."
|
221 |
-
msgstr "A nevem publikus megjelenítése, mint"
|
222 |
-
|
223 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:202
|
224 |
-
msgid "Contact Info:"
|
225 |
-
msgstr "Kapcsolati adatok"
|
226 |
-
|
227 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:209
|
228 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:457
|
229 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:305
|
230 |
-
msgid "E-mail"
|
231 |
-
msgstr "E-mail"
|
232 |
-
|
233 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:218
|
234 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:467
|
235 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:320
|
236 |
-
msgid "Website"
|
237 |
-
msgstr "Weboldal"
|
238 |
-
|
239 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:230
|
240 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:476
|
241 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:334
|
242 |
-
msgid "AIM"
|
243 |
-
msgstr "AIM"
|
244 |
-
|
245 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:239
|
246 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:485
|
247 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:348
|
248 |
-
msgid "Yahoo IM"
|
249 |
-
msgstr "Yahoo IM"
|
250 |
-
|
251 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:248
|
252 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:494
|
253 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:362
|
254 |
-
msgid "Jabber / Google Talk"
|
255 |
-
msgstr "Jabber / Google Talk"
|
256 |
-
|
257 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:258
|
258 |
-
msgid "About Yourself:"
|
259 |
-
msgstr "Magadról:"
|
260 |
-
|
261 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:265
|
262 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:507
|
263 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:380
|
264 |
-
msgid "Biographical Info"
|
265 |
-
msgstr "Életrajzi információk"
|
266 |
-
|
267 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:275
|
268 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:516
|
269 |
-
msgid "New Password"
|
270 |
-
msgstr "Új jelszó"
|
271 |
-
|
272 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:57
|
273 |
-
msgid "Basic Information"
|
274 |
-
msgstr "Alapadatok"
|
275 |
-
|
276 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:59
|
277 |
-
msgid "Show/Hide the Admin Bar on Front-end"
|
278 |
-
msgstr "Admin sáv elrejt/mutat a felhasználó előtt"
|
279 |
-
|
280 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:63
|
281 |
-
msgid "Extra Profile Fields"
|
282 |
-
msgstr "Extra profil mezők"
|
283 |
-
|
284 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:64
|
285 |
-
msgid "Register Your Version"
|
286 |
-
msgstr "Regisztráld a verziódat!"
|
287 |
-
|
288 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:269
|
289 |
-
msgid "You must be logged in to edit your profile."
|
290 |
-
msgstr "Be kell jelentkezned a profilod szerkesztéséhez!"
|
291 |
-
|
292 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:278
|
293 |
-
msgid "The avatar was successfully deleted."
|
294 |
-
msgstr "Az avatar sikeresen törölve."
|
295 |
-
|
296 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:283
|
297 |
-
msgid "The attachment \""
|
298 |
-
msgstr "A csatolmány \""
|
299 |
-
|
300 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:285
|
301 |
-
msgid "\" was successfully deleted."
|
302 |
-
msgstr "\" sikeresen törölve."
|
303 |
-
|
304 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:298
|
305 |
-
msgid "The changes have been successfully saved."
|
306 |
-
msgstr "A változások sikeresen mentve."
|
307 |
-
|
308 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:303
|
309 |
-
msgid "The email address you entered is already registered to a different user.<br/>The email address was "
|
310 |
-
msgstr "Az email címmel, amit megadtál már egy másik felhasználó regisztrált. <br/> Az email cím"
|
311 |
-
|
312 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:304
|
313 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:314
|
314 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:324
|
315 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:333
|
316 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:355
|
317 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:363
|
318 |
-
msgid "NOT"
|
319 |
-
msgstr "NEM"
|
320 |
-
|
321 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:305
|
322 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:315
|
323 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:325
|
324 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:334
|
325 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:356
|
326 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:364
|
327 |
-
msgid " updated along with the rest of the information."
|
328 |
-
msgstr "lett a többi információval együtt frissítve."
|
329 |
-
|
330 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:313
|
331 |
-
msgid "The email address you entered is invalid. <br/> The email address was "
|
332 |
-
msgstr "Az email cím, amit megadtál érvénytelen. <br/> Ez az email cím"
|
333 |
-
|
334 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:323
|
335 |
-
msgid "The passwords you entered do not match. <br/> The password was "
|
336 |
-
msgstr "Az általad megadott jelszavak nem egyeznek <br/> A jelszó"
|
337 |
-
|
338 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:332
|
339 |
-
msgid "You didn't complete both password fields. <br/> The password was "
|
340 |
-
msgstr "Nem töltötted ki mindkét jelszó mezőt. <br/> A jelszó"
|
341 |
-
|
342 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:344
|
343 |
-
msgid "There was an error while trying to upload the following attachments:<br/>"
|
344 |
-
msgstr "Hiba történt a következő csatolmányok feltöltésekor: <br/>"
|
345 |
-
|
346 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:352
|
347 |
-
msgid "<br/>Possible cause: the size was bigger than "
|
348 |
-
msgstr "<br/>Lehetséges okok: A mérete nagyobb volt, mint"
|
349 |
-
|
350 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:354
|
351 |
-
msgid "b.<br/>The listed attachements were "
|
352 |
-
msgstr "b.<br/>A felsorolt csatolmányok"
|
353 |
-
|
354 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:362
|
355 |
-
msgid "There was an error while trying to upload your avatar picture.<br/>Possible cause: size/incorrect file-type.<br/>The avatar was "
|
356 |
-
msgstr "Hiba történt az avatar kép feltöltésekor: <br/>Lehetséges okok: méret/helytelen fájltípus <br/> Az avatar"
|
357 |
-
|
358 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:380
|
359 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:233
|
360 |
-
msgid "Name"
|
361 |
-
msgstr "Név"
|
362 |
-
|
363 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:386
|
364 |
-
msgid " Usernames cannot be changed."
|
365 |
-
msgstr "A Felhasználónév nem változtatható."
|
366 |
-
|
367 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:414
|
368 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:459
|
369 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:246
|
370 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:307
|
371 |
-
msgid "(required)"
|
372 |
-
msgstr "(kötelező)"
|
373 |
-
|
374 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:422
|
375 |
-
msgid "Display name publicly as"
|
376 |
-
msgstr "Név megjelenítése publikusan, mint"
|
377 |
-
|
378 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:451
|
379 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:294
|
380 |
-
msgid "Contact Info"
|
381 |
-
msgstr "Kapcsolati információ"
|
382 |
-
|
383 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:501
|
384 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:369
|
385 |
-
msgid "About Yourself"
|
386 |
-
msgstr "Magadról"
|
387 |
-
|
388 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:521
|
389 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:403
|
390 |
-
msgid "Repeat Password"
|
391 |
-
msgstr "Jelszó, mégegyszer"
|
392 |
-
|
393 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:537
|
394 |
-
msgid "Update"
|
395 |
-
msgstr "Frissítés"
|
396 |
-
|
397 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
398 |
-
#, php-format
|
399 |
-
msgid "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
400 |
-
msgstr "Jelenleg be vagy jelentkezve, mint <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
401 |
-
|
402 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
403 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
404 |
-
msgid "Log out of this account"
|
405 |
-
msgstr "Kijelentkezés ebből a fiókból"
|
406 |
-
|
407 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
408 |
-
msgid "Log out »"
|
409 |
-
msgstr "Kijelentkezés »"
|
410 |
-
|
411 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:60
|
412 |
-
#, php-format
|
413 |
-
msgid "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
414 |
-
msgstr "Sikeresen bejelentkeztél, mint <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
415 |
-
|
416 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:86
|
417 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:398
|
418 |
-
msgid "Password"
|
419 |
-
msgstr "Jelszó"
|
420 |
-
|
421 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:90
|
422 |
-
msgid "Log in"
|
423 |
-
msgstr "Bejelentkezés"
|
424 |
-
|
425 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:92
|
426 |
-
msgid "Remember me"
|
427 |
-
msgstr "Emlékezz rám!"
|
428 |
-
|
429 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:96
|
430 |
-
msgid "Lost password?"
|
431 |
-
msgstr "Elvesztett jelszó?"
|
432 |
-
|
433 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:39
|
434 |
-
msgid "A username is required for registration."
|
435 |
-
msgstr "Felhasználónév megadása kötelező a regisztrációhoz."
|
436 |
-
|
437 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:41
|
438 |
-
msgid "Sorry, that username already exists!"
|
439 |
-
msgstr "Bocs, de ez a felhasználónév foglalt!"
|
440 |
-
|
441 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:44
|
442 |
-
msgid "You must enter a valid email address."
|
443 |
-
msgstr "Valós email címet kell beírnod!"
|
444 |
-
|
445 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:46
|
446 |
-
msgid "Sorry, that email address is already used!"
|
447 |
-
msgstr "Bocs, de ez az email cím már használatban van!"
|
448 |
-
|
449 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:49
|
450 |
-
msgid "You didn't complete one of the password-fields!"
|
451 |
-
msgstr "Nem töltötted ki az egyik jelszó mezőt!"
|
452 |
-
|
453 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:51
|
454 |
-
msgid "The entered passwords don't match!"
|
455 |
-
msgstr "A beírt jelszavak nem egyeznek!"
|
456 |
-
|
457 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
458 |
-
#, php-format
|
459 |
-
msgid "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't need another account."
|
460 |
-
msgstr "Be vagy jelentkezve, mint <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Nincs szükséged másik fiókra. "
|
461 |
-
|
462 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
463 |
-
msgid "Logout »"
|
464 |
-
msgstr "Kijelentkezés »"
|
465 |
-
|
466 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:181
|
467 |
-
#, php-format
|
468 |
-
msgid "A user account for %1$s has been created."
|
469 |
-
msgstr "Felhasználói fiók a következőnek: %1$s elkészült. "
|
470 |
-
|
471 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:183
|
472 |
-
#, php-format
|
473 |
-
msgid "Thank you for registering, %1$s."
|
474 |
-
msgstr "Kösz a regisztrációt, %1$s!"
|
475 |
-
|
476 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:211
|
477 |
-
msgid "Users can register themselves or you can manually create users here."
|
478 |
-
msgstr "A felhasználók önmagukat tudják regisztrálni, vagy sajátkezűleg készíthetsz felhasználókat itt."
|
479 |
-
|
480 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:215
|
481 |
-
msgid "Users cannot currently register themselves, but you can manually create users here."
|
482 |
-
msgstr "A felhasználók jelenleg nem tudják magukat regisztrálni, de te tudsz itt létrehozni új felhasználót."
|
483 |
-
|
484 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:219
|
485 |
-
msgid "Only an administrator can add new users."
|
486 |
-
msgstr "Csak egy adminisztrátor tud felhasználót hozzáadni."
|
487 |
-
|
488 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:422
|
489 |
-
msgid " Send these credentials via email."
|
490 |
-
msgstr "Hitelesítő adatok küldése emailben. "
|
491 |
-
|
492 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
493 |
-
msgid "Add User"
|
494 |
-
msgstr "Felhasználó hozzáadása"
|
495 |
-
|
496 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
497 |
-
msgid "Register"
|
498 |
-
msgstr "Regisztráció"
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/translation/profilebuilder-it_IT.po
DELETED
@@ -1,499 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Profile Builder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-07-06 14:23+0200\n"
|
6 |
-
"PO-Revision-Date: 2011-09-04 09:49+0100\n"
|
7 |
-
"Last-Translator: Gabriele <globalwebadvices@gmail.com>\n"
|
8 |
-
"Language-Team: ReflectionMedia\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: C:\\Users\\Cristi\\Desktop\\free\n"
|
14 |
-
"X-Poedit-Language: English\n"
|
15 |
-
"X-Poedit-SearchPath-0: C:\\Users\\Cristi\\Desktop\\free\n"
|
16 |
-
|
17 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:5
|
18 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
19 |
-
msgid "Profile Builder"
|
20 |
-
msgstr "Profile Builder"
|
21 |
-
|
22 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:6
|
23 |
-
msgid "Welcome to Profile Builder!"
|
24 |
-
msgstr "Benvenuto su Profile Builder!"
|
25 |
-
|
26 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
27 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
28 |
-
msgstr "Consente di personalizzare il vostro sito con l'aggiunta di un front-end menu per tutti gli utenti, permettendo di modificare le proprie informazioni-utente in maniera più flessibile o per far registrare nuovi utenti."
|
29 |
-
|
30 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:9
|
31 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
32 |
-
msgstr "Inoltre, concede agli utenti con diritti di amministratore di personalizzare i campi base o di aggiungerne di nuovi."
|
33 |
-
|
34 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:10
|
35 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
36 |
-
msgstr "Per ottenere ciò, basta creare una nuova pagina, e dare ad essa un nome intuitivo (ad esempio Modifica profilo)."
|
37 |
-
|
38 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:11
|
39 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
40 |
-
msgstr "Ora tutto quello che dovete fare è aggiungere il seguente shortcode (per l'esempio precedente):"
|
41 |
-
|
42 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:12
|
43 |
-
msgid "Publish your page and you are ready to go!"
|
44 |
-
msgstr "Pubblica la tua pagina e sei è pronto a partire!"
|
45 |
-
|
46 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:13
|
47 |
-
msgid "You can use the following shortcodes:"
|
48 |
-
msgstr "È possibile utilizzare i seguenti codici brevi:"
|
49 |
-
|
50 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:14
|
51 |
-
msgid "for a log-in form."
|
52 |
-
msgstr "per form del login."
|
53 |
-
|
54 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:15
|
55 |
-
msgid "to add a registration form."
|
56 |
-
msgstr "per inserire un form di registrazione."
|
57 |
-
|
58 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:16
|
59 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
60 |
-
msgstr "per concedere agli utenti un accesso front-end ai propri dati personali (l'utente deve essere loggato)."
|
61 |
-
|
62 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:18
|
63 |
-
msgid "Users with administrator rights have access to the following features:"
|
64 |
-
msgstr "Gli utenti con diritti di amministratore ha accesso alle seguenti funzionalità:"
|
65 |
-
|
66 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:19
|
67 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
68 |
-
msgstr "aggiungere un foglio di stile personalizzato / ereditano i valori dal tema corrente oppure utilizzare una delle seguenti opzioni incorporate in questo plugin: di default, bianco o nero."
|
69 |
-
|
70 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:20
|
71 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
72 |
-
msgstr "scegliere se visualizzare o meno la barra di amministrazione di front-end per uno specifico gruppo di utenti registrati al sito."
|
73 |
-
|
74 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:21
|
75 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
76 |
-
msgstr "selezionare le informazioni sul campo utenti che si possono vedere / modificare. I valori dei campi nascosti 'non vengono modificati."
|
77 |
-
|
78 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:22
|
79 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
80 |
-
msgstr "aggiungere campi personalizzati a quelli esistenti, con diversi tipi tra cui scegliere: voce, testo, textarea, select, checkbox, radio e / o upload."
|
81 |
-
|
82 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:23
|
83 |
-
msgid "add an avatar field."
|
84 |
-
msgstr "aggiungi un campo per l'avatar."
|
85 |
-
|
86 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:26
|
87 |
-
msgid "NOTE:"
|
88 |
-
msgstr "NOTA:"
|
89 |
-
|
90 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:27
|
91 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
92 |
-
msgstr "Questo plugin aggiunge / rimuove i campi del front-end."
|
93 |
-
|
94 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:28
|
95 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
96 |
-
msgstr "Il valore predefinito di campi di informazione saranno ancora visibili (e quindi modificabili)"
|
97 |
-
|
98 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:29
|
99 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
100 |
-
msgstr "dal back-end, mentre i campi personalizzati saranno visibili solo nel front-end."
|
101 |
-
|
102 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:43
|
103 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:44
|
104 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:58
|
105 |
-
msgid "Plugin Layout"
|
106 |
-
msgstr "Plugin Layout"
|
107 |
-
|
108 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:50
|
109 |
-
msgid "Stylesheet used:"
|
110 |
-
msgstr "Stylesheet usato:"
|
111 |
-
|
112 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:53
|
113 |
-
msgid "Default"
|
114 |
-
msgstr "Default"
|
115 |
-
|
116 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:58
|
117 |
-
msgid "White"
|
118 |
-
msgstr "Bianco"
|
119 |
-
|
120 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:59
|
121 |
-
msgid "Black"
|
122 |
-
msgstr "Nero"
|
123 |
-
|
124 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:63
|
125 |
-
msgid "None"
|
126 |
-
msgstr "Nessuno"
|
127 |
-
|
128 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:72
|
129 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:119
|
130 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:287
|
131 |
-
msgid "Save Changes"
|
132 |
-
msgstr "Salva modifiche"
|
133 |
-
|
134 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:90
|
135 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:91
|
136 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
137 |
-
msgstr "Mostra / Nascondi la barra di amministrazione di Front End"
|
138 |
-
|
139 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:95
|
140 |
-
msgid "User-group"
|
141 |
-
msgstr "Gruppi di utenti"
|
142 |
-
|
143 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:96
|
144 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:143
|
145 |
-
msgid "Visibility"
|
146 |
-
msgstr "Visibilità"
|
147 |
-
|
148 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:108
|
149 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:159
|
150 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:168
|
151 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:177
|
152 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:186
|
153 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:195
|
154 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:212
|
155 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:221
|
156 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:233
|
157 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:242
|
158 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:251
|
159 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:268
|
160 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:278
|
161 |
-
msgid "Show"
|
162 |
-
msgstr "Mostra"
|
163 |
-
|
164 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:109
|
165 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:160
|
166 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:169
|
167 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:178
|
168 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:187
|
169 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:196
|
170 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:213
|
171 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:222
|
172 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:234
|
173 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:243
|
174 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:252
|
175 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:269
|
176 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:279
|
177 |
-
msgid "Hide"
|
178 |
-
msgstr "Nascondi"
|
179 |
-
|
180 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:137
|
181 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:138
|
182 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:60
|
183 |
-
msgid "Default Profile Fields"
|
184 |
-
msgstr "Campi profilo di default"
|
185 |
-
|
186 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:142
|
187 |
-
msgid "Input Field Name"
|
188 |
-
msgstr "Inserisci campo nome"
|
189 |
-
|
190 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:149
|
191 |
-
msgid "Name:"
|
192 |
-
msgstr "Nome:"
|
193 |
-
|
194 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:156
|
195 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:385
|
196 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:76
|
197 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:244
|
198 |
-
msgid "Username"
|
199 |
-
msgstr "Username"
|
200 |
-
|
201 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:165
|
202 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:394
|
203 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:259
|
204 |
-
msgid "First Name"
|
205 |
-
msgstr "Nome"
|
206 |
-
|
207 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:174
|
208 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:403
|
209 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:273
|
210 |
-
msgid "Last Name"
|
211 |
-
msgstr "Cognome"
|
212 |
-
|
213 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:183
|
214 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:412
|
215 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:287
|
216 |
-
msgid "Nickname"
|
217 |
-
msgstr "Nickname"
|
218 |
-
|
219 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:192
|
220 |
-
msgid "Display name publicly as..."
|
221 |
-
msgstr "Nome visualizzato pubblicamente come ..."
|
222 |
-
|
223 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:202
|
224 |
-
msgid "Contact Info:"
|
225 |
-
msgstr "Informazioni di contatto:"
|
226 |
-
|
227 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:209
|
228 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:457
|
229 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:305
|
230 |
-
msgid "E-mail"
|
231 |
-
msgstr "E-mail:"
|
232 |
-
|
233 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:218
|
234 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:467
|
235 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:320
|
236 |
-
msgid "Website"
|
237 |
-
msgstr "Sito web:"
|
238 |
-
|
239 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:230
|
240 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:476
|
241 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:334
|
242 |
-
msgid "AIM"
|
243 |
-
msgstr "AIM"
|
244 |
-
|
245 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:239
|
246 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:485
|
247 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:348
|
248 |
-
msgid "Yahoo IM"
|
249 |
-
msgstr "Yahoo IM"
|
250 |
-
|
251 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:248
|
252 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:494
|
253 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:362
|
254 |
-
msgid "Jabber / Google Talk"
|
255 |
-
msgstr "Google Talk"
|
256 |
-
|
257 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:258
|
258 |
-
msgid "About Yourself:"
|
259 |
-
msgstr "Su di te:"
|
260 |
-
|
261 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:265
|
262 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:507
|
263 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:380
|
264 |
-
msgid "Biographical Info"
|
265 |
-
msgstr "Informazioni biografiche"
|
266 |
-
|
267 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:275
|
268 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:516
|
269 |
-
msgid "New Password"
|
270 |
-
msgstr "Nuova Password"
|
271 |
-
|
272 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:57
|
273 |
-
msgid "Basic Information"
|
274 |
-
msgstr "Informazioni di base"
|
275 |
-
|
276 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:59
|
277 |
-
msgid "Show/Hide the Admin Bar on Front-end"
|
278 |
-
msgstr "Mostra / Nascondi la barra di amministrazione di front-end"
|
279 |
-
|
280 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:63
|
281 |
-
msgid "Extra Profile Fields"
|
282 |
-
msgstr "Campi profilo extra"
|
283 |
-
|
284 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:64
|
285 |
-
msgid "Register Your Version"
|
286 |
-
msgstr "Registra la tua Versione"
|
287 |
-
|
288 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:269
|
289 |
-
msgid "You must be logged in to edit your profile."
|
290 |
-
msgstr "Devi essere registrato per modificare il tuo profilo."
|
291 |
-
|
292 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:278
|
293 |
-
msgid "The avatar was successfully deleted."
|
294 |
-
msgstr "L'avatar è stato cancellato con successo."
|
295 |
-
|
296 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:283
|
297 |
-
msgid "The attachment \""
|
298 |
-
msgstr "L'allegato \""
|
299 |
-
|
300 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:285
|
301 |
-
msgid "\" was successfully deleted."
|
302 |
-
msgstr "\" è stato cancellato con successo."
|
303 |
-
|
304 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:298
|
305 |
-
msgid "The changes have been successfully saved."
|
306 |
-
msgstr "Le modifiche sono state salvate con successo."
|
307 |
-
|
308 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:303
|
309 |
-
msgid "The email address you entered is already registered to a different user.<br/>The email address was "
|
310 |
-
msgstr "L'indirizzo e-mail che hai inserito è già registrato per un altro utente. <br/> L'indirizzo e-mail è stato"
|
311 |
-
|
312 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:304
|
313 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:314
|
314 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:324
|
315 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:333
|
316 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:355
|
317 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:363
|
318 |
-
msgid "NOT"
|
319 |
-
msgstr "NON"
|
320 |
-
|
321 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:305
|
322 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:315
|
323 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:325
|
324 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:334
|
325 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:356
|
326 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:364
|
327 |
-
msgid " updated along with the rest of the information."
|
328 |
-
msgstr "aggiornato insieme al resto delle informazioni."
|
329 |
-
|
330 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:313
|
331 |
-
msgid "The email address you entered is invalid. <br/> The email address was "
|
332 |
-
msgstr "L'indirizzo email inserito non è valido. <br/> L'indirizzo e-mail è stato"
|
333 |
-
|
334 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:323
|
335 |
-
msgid "The passwords you entered do not match. <br/> The password was "
|
336 |
-
msgstr "Le password che hai inserito non corrispondono. <br/> La password è stata"
|
337 |
-
|
338 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:332
|
339 |
-
msgid "You didn't complete both password fields. <br/> The password was "
|
340 |
-
msgstr "Non ha completato entrambi i campi password. <br/> La password è stata"
|
341 |
-
|
342 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:344
|
343 |
-
msgid "There was an error while trying to upload the following attachments:<br/>"
|
344 |
-
msgstr "Si è verificato un errore durante il tentativo di caricare i seguenti allegati: <br/>"
|
345 |
-
|
346 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:352
|
347 |
-
msgid "<br/>Possible cause: the size was bigger than "
|
348 |
-
msgstr "<br/> Possibile causa: la dimensione era troppo grande"
|
349 |
-
|
350 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:354
|
351 |
-
msgid "b.<br/>The listed attachements were "
|
352 |
-
msgstr "b.<br/> Gli allegati elencate sono stati"
|
353 |
-
|
354 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:362
|
355 |
-
msgid "There was an error while trying to upload your avatar picture.<br/>Possible cause: size/incorrect file-type.<br/>The avatar was "
|
356 |
-
msgstr "Si è verificato un errore durante il tentativo di caricare la tua foto avatar <br/> Possibile causa:.. Dimensione / tipo di file non corretto <br/> L'avatar è stato"
|
357 |
-
|
358 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:380
|
359 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:233
|
360 |
-
msgid "Name"
|
361 |
-
msgstr "Nome"
|
362 |
-
|
363 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:386
|
364 |
-
msgid " Usernames cannot be changed."
|
365 |
-
msgstr "I nomi utente non possono essere cambiati."
|
366 |
-
|
367 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:414
|
368 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:459
|
369 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:246
|
370 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:307
|
371 |
-
msgid "(required)"
|
372 |
-
msgstr "(richiesto)"
|
373 |
-
|
374 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:422
|
375 |
-
msgid "Display name publicly as"
|
376 |
-
msgstr "Nome visualizzato pubblicamente come"
|
377 |
-
|
378 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:451
|
379 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:294
|
380 |
-
msgid "Contact Info"
|
381 |
-
msgstr "Informazioni di contatto"
|
382 |
-
|
383 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:501
|
384 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:369
|
385 |
-
msgid "About Yourself"
|
386 |
-
msgstr "Su di te"
|
387 |
-
|
388 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:521
|
389 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:403
|
390 |
-
msgid "Repeat Password"
|
391 |
-
msgstr "Ripeti Password"
|
392 |
-
|
393 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:537
|
394 |
-
msgid "Update"
|
395 |
-
msgstr "Aggiorna"
|
396 |
-
|
397 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
398 |
-
#, php-format
|
399 |
-
msgid "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
400 |
-
msgstr "Sei attualmente connesso come <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
401 |
-
|
402 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
403 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
404 |
-
msgid "Log out of this account"
|
405 |
-
msgstr "Esci da questo account"
|
406 |
-
|
407 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
408 |
-
msgid "Log out »"
|
409 |
-
msgstr "Log out »"
|
410 |
-
|
411 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:60
|
412 |
-
#, php-format
|
413 |
-
msgid "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
414 |
-
msgstr "Hai effettuato il login correttamente come <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
415 |
-
|
416 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:86
|
417 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:398
|
418 |
-
msgid "Password"
|
419 |
-
msgstr "Password"
|
420 |
-
|
421 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:90
|
422 |
-
msgid "Log in"
|
423 |
-
msgstr "Log in"
|
424 |
-
|
425 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:92
|
426 |
-
msgid "Remember me"
|
427 |
-
msgstr "Ricordati di me"
|
428 |
-
|
429 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:96
|
430 |
-
msgid "Lost password?"
|
431 |
-
msgstr "Password persa?"
|
432 |
-
|
433 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:39
|
434 |
-
msgid "A username is required for registration."
|
435 |
-
msgstr "E' richiesto un nome utente per la registrazione."
|
436 |
-
|
437 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:41
|
438 |
-
msgid "Sorry, that username already exists!"
|
439 |
-
msgstr "Ci dispiace, questo nome utente esiste già!"
|
440 |
-
|
441 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:44
|
442 |
-
msgid "You must enter a valid email address."
|
443 |
-
msgstr "Devi inserire un indirizzo email valido."
|
444 |
-
|
445 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:46
|
446 |
-
msgid "Sorry, that email address is already used!"
|
447 |
-
msgstr "Spiacente, l'indirizzo e-mail è già stato utilizzato!"
|
448 |
-
|
449 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:49
|
450 |
-
msgid "You didn't complete one of the password-fields!"
|
451 |
-
msgstr "Non ha completato uno dei campi password!"
|
452 |
-
|
453 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:51
|
454 |
-
msgid "The entered passwords don't match!"
|
455 |
-
msgstr "Le password inserite non corrispondono!"
|
456 |
-
|
457 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
458 |
-
#, php-format
|
459 |
-
msgid "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't need another account."
|
460 |
-
msgstr "Sei stato registrato come <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Non hai bisogno di un altro account."
|
461 |
-
|
462 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
463 |
-
msgid "Logout »"
|
464 |
-
msgstr "Logout »"
|
465 |
-
|
466 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:181
|
467 |
-
#, php-format
|
468 |
-
msgid "A user account for %1$s has been created."
|
469 |
-
msgstr "Un account utente come %1$s è stato creato."
|
470 |
-
|
471 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:183
|
472 |
-
#, php-format
|
473 |
-
msgid "Thank you for registering, %1$s."
|
474 |
-
msgstr "Grazie per esserti registrato, %1$s."
|
475 |
-
|
476 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:211
|
477 |
-
msgid "Users can register themselves or you can manually create users here."
|
478 |
-
msgstr "Gli utenti possono registrarsi oppure è possibile creare manualmente gli utenti qui."
|
479 |
-
|
480 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:215
|
481 |
-
msgid "Users cannot currently register themselves, but you can manually create users here."
|
482 |
-
msgstr "Gli utenti non possono al momento registrarsi, ma è possibile creare manualmente gli utenti qui."
|
483 |
-
|
484 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:219
|
485 |
-
msgid "Only an administrator can add new users."
|
486 |
-
msgstr "Solo gli amministratori possono inserire nuovi utenti."
|
487 |
-
|
488 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:422
|
489 |
-
msgid " Send these credentials via email."
|
490 |
-
msgstr "Invia le mie credenziali via email."
|
491 |
-
|
492 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
493 |
-
msgid "Add User"
|
494 |
-
msgstr "Inserisci utente"
|
495 |
-
|
496 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
497 |
-
msgid "Register"
|
498 |
-
msgstr "Registrati"
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/translation/profilebuilder-nb_NO.po
DELETED
@@ -1,499 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Profile Builder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2011-07-06 14:23+0200\n"
|
6 |
-
"PO-Revision-Date: 2011-08-09 00:14+0100\n"
|
7 |
-
"Last-Translator: Håvard Ulvin <haavard@ulvin.no>\n"
|
8 |
-
"Language-Team: ReflectionMedia\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Basepath: C:\\Users\\Cristi\\Desktop\\free\n"
|
14 |
-
"X-Poedit-Language: English\n"
|
15 |
-
"X-Poedit-SearchPath-0: C:\\Users\\Cristi\\Desktop\\free\n"
|
16 |
-
|
17 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:5
|
18 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
19 |
-
msgid "Profile Builder"
|
20 |
-
msgstr "Profile Builder"
|
21 |
-
|
22 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:6
|
23 |
-
msgid "Welcome to Profile Builder!"
|
24 |
-
msgstr "Velkommen til Profile Builder"
|
25 |
-
|
26 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:8
|
27 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
28 |
-
msgstr "lar deg skreddersy dine nettsider ved å legge til en front-end meny for alle dine brukere, dette gir dem en mer fleksibel måte å endre sin brukerinformasjon eller for deg som administrator å registrere nye brukere."
|
29 |
-
|
30 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:9
|
31 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
32 |
-
msgstr "Lar også brukere med administratorrettigheter mulighet til å skreddersy grunnleggende felter eller legge til nye"
|
33 |
-
|
34 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:10
|
35 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
36 |
-
msgstr "For å legge til denne funksjonen, opprett en ny side og gi den et fornuftig nacn f.eks (Rediger min profil)"
|
37 |
-
|
38 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:11
|
39 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
40 |
-
msgstr "Alt du trenger å gjøre nå er å legge til følgende kode f.eks:"
|
41 |
-
|
42 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:12
|
43 |
-
msgid "Publish your page and you are ready to go!"
|
44 |
-
msgstr "Publiser din side og så er alt klart til bruk"
|
45 |
-
|
46 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:13
|
47 |
-
msgid "You can use the following shortcodes:"
|
48 |
-
msgstr "Du kan bruke følgende shortcodes:"
|
49 |
-
|
50 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:14
|
51 |
-
msgid "for a log-in form."
|
52 |
-
msgstr "for en innloggingsform."
|
53 |
-
|
54 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:15
|
55 |
-
msgid "to add a registration form."
|
56 |
-
msgstr "for å legge til en registreringsform"
|
57 |
-
|
58 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:16
|
59 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
60 |
-
msgstr "for å gi tilgang til front-end aksess til brukerens personlige informasjon (krever at bruker er logget inn)"
|
61 |
-
|
62 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:18
|
63 |
-
msgid "Users with administrator rights have access to the following features:"
|
64 |
-
msgstr "Brukere med administrator rettigheter har tilgang til følgende:"
|
65 |
-
|
66 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:19
|
67 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
68 |
-
msgstr "legg til en skreddersydd stylesheet fra din eksisterende theme eller bruk en av de allerede innebygde i denne pluginen: default, hvit, eller svart"
|
69 |
-
|
70 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:20
|
71 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
72 |
-
msgstr "velg om du ønsker å vise administratormenyen på front-endgrensesnittet for utvalgte brukergrupper registrert på siden."
|
73 |
-
|
74 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:21
|
75 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
76 |
-
msgstr "velg hvilke informasjonsfelter brukere kan se/endre. Skjulte felt forblir uendret"
|
77 |
-
|
78 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:22
|
79 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
80 |
-
msgstr "legg til skreddersydde felter til de eksisterende, med forskjellige typer å velge mellom: heading, tekst, tekstfelt, valg, checkbox, radio, og/eller opplasting."
|
81 |
-
|
82 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:23
|
83 |
-
msgid "add an avatar field."
|
84 |
-
msgstr "legg til et bildefelt (avatar)."
|
85 |
-
|
86 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:26
|
87 |
-
msgid "NOTE:"
|
88 |
-
msgstr "MERK:"
|
89 |
-
|
90 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:27
|
91 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
92 |
-
msgstr "denne pluginen legger kun til/fjerner felter på front-end"
|
93 |
-
|
94 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:28
|
95 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
96 |
-
msgstr "Standard informasjonsfelter vil fortsatt bli synlige "
|
97 |
-
|
98 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:29
|
99 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
100 |
-
msgstr "fra back-end, vil skreddersydde felter kun bli synlige på front-end"
|
101 |
-
|
102 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:43
|
103 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:44
|
104 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:58
|
105 |
-
msgid "Plugin Layout"
|
106 |
-
msgstr "Plugin layout"
|
107 |
-
|
108 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:50
|
109 |
-
msgid "Stylesheet used:"
|
110 |
-
msgstr "Styelsheet brukt:"
|
111 |
-
|
112 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:53
|
113 |
-
msgid "Default"
|
114 |
-
msgstr "Standard"
|
115 |
-
|
116 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:58
|
117 |
-
msgid "White"
|
118 |
-
msgstr "Hvit"
|
119 |
-
|
120 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:59
|
121 |
-
msgid "Black"
|
122 |
-
msgstr "Svart"
|
123 |
-
|
124 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:63
|
125 |
-
msgid "None"
|
126 |
-
msgstr "Ingen"
|
127 |
-
|
128 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:72
|
129 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:119
|
130 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:287
|
131 |
-
msgid "Save Changes"
|
132 |
-
msgstr "Lagre endringer"
|
133 |
-
|
134 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:90
|
135 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:91
|
136 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
137 |
-
msgstr "Vis/Skjul administratormeny på front-end"
|
138 |
-
|
139 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:95
|
140 |
-
msgid "User-group"
|
141 |
-
msgstr "Brukergruppe"
|
142 |
-
|
143 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:96
|
144 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:143
|
145 |
-
msgid "Visibility"
|
146 |
-
msgstr "Synlighet"
|
147 |
-
|
148 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:108
|
149 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:159
|
150 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:168
|
151 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:177
|
152 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:186
|
153 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:195
|
154 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:212
|
155 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:221
|
156 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:233
|
157 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:242
|
158 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:251
|
159 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:268
|
160 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:278
|
161 |
-
msgid "Show"
|
162 |
-
msgstr "Vis"
|
163 |
-
|
164 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:109
|
165 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:160
|
166 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:169
|
167 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:178
|
168 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:187
|
169 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:196
|
170 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:213
|
171 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:222
|
172 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:234
|
173 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:243
|
174 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:252
|
175 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:269
|
176 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:279
|
177 |
-
msgid "Hide"
|
178 |
-
msgstr "Skjul"
|
179 |
-
|
180 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:137
|
181 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:138
|
182 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:60
|
183 |
-
msgid "Default Profile Fields"
|
184 |
-
msgstr "Grunnleggende felter"
|
185 |
-
|
186 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:142
|
187 |
-
msgid "Input Field Name"
|
188 |
-
msgstr "Sett inn feltnavn"
|
189 |
-
|
190 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:149
|
191 |
-
msgid "Name:"
|
192 |
-
msgstr "Navn:"
|
193 |
-
|
194 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:156
|
195 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:385
|
196 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:76
|
197 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:244
|
198 |
-
msgid "Username"
|
199 |
-
msgstr "Brukernavn"
|
200 |
-
|
201 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:165
|
202 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:394
|
203 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:259
|
204 |
-
msgid "First Name"
|
205 |
-
msgstr "Fornavn"
|
206 |
-
|
207 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:174
|
208 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:403
|
209 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:273
|
210 |
-
msgid "Last Name"
|
211 |
-
msgstr "Etternavn"
|
212 |
-
|
213 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:183
|
214 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:412
|
215 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:287
|
216 |
-
msgid "Nickname"
|
217 |
-
msgstr "Kallenavn"
|
218 |
-
|
219 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:192
|
220 |
-
msgid "Display name publicly as..."
|
221 |
-
msgstr "Vis mitt navn offentlig som"
|
222 |
-
|
223 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:202
|
224 |
-
msgid "Contact Info:"
|
225 |
-
msgstr "Kontaktinformasjon"
|
226 |
-
|
227 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:209
|
228 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:457
|
229 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:305
|
230 |
-
msgid "E-mail"
|
231 |
-
msgstr "E-post"
|
232 |
-
|
233 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:218
|
234 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:467
|
235 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:320
|
236 |
-
msgid "Website"
|
237 |
-
msgstr "Nettside"
|
238 |
-
|
239 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:230
|
240 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:476
|
241 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:334
|
242 |
-
msgid "AIM"
|
243 |
-
msgstr "AIM"
|
244 |
-
|
245 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:239
|
246 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:485
|
247 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:348
|
248 |
-
msgid "Yahoo IM"
|
249 |
-
msgstr "Yahoo IM"
|
250 |
-
|
251 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:248
|
252 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:494
|
253 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:362
|
254 |
-
msgid "Jabber / Google Talk"
|
255 |
-
msgstr "Jabber / Google Talk"
|
256 |
-
|
257 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:258
|
258 |
-
msgid "About Yourself:"
|
259 |
-
msgstr "Om meg selv:"
|
260 |
-
|
261 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:265
|
262 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:507
|
263 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:380
|
264 |
-
msgid "Biographical Info"
|
265 |
-
msgstr "Litt om meg selv"
|
266 |
-
|
267 |
-
#: C:\Users\Cristi\Desktop\free/front-end/menu.file.php:275
|
268 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:516
|
269 |
-
msgid "New Password"
|
270 |
-
msgstr "Nytt passord"
|
271 |
-
|
272 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:57
|
273 |
-
msgid "Basic Information"
|
274 |
-
msgstr "Grunnleggende informasjon"
|
275 |
-
|
276 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:59
|
277 |
-
msgid "Show/Hide the Admin Bar on Front-end"
|
278 |
-
msgstr "Vis/skjul administratormenyen fra front-end"
|
279 |
-
|
280 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:63
|
281 |
-
msgid "Extra Profile Fields"
|
282 |
-
msgstr "Ekstra profilfelter"
|
283 |
-
|
284 |
-
#: C:\Users\Cristi\Desktop\free/front-end/options.php:64
|
285 |
-
msgid "Register Your Version"
|
286 |
-
msgstr "Registrer din versjon"
|
287 |
-
|
288 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:269
|
289 |
-
msgid "You must be logged in to edit your profile."
|
290 |
-
msgstr "Du må være innlogget for å redigere profilen din."
|
291 |
-
|
292 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:278
|
293 |
-
msgid "The avatar was successfully deleted."
|
294 |
-
msgstr "Bildet ditt er slettet."
|
295 |
-
|
296 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:283
|
297 |
-
msgid "The attachment \""
|
298 |
-
msgstr "Vedlegget \""
|
299 |
-
|
300 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:285
|
301 |
-
msgid "\" was successfully deleted."
|
302 |
-
msgstr "\" er slettet."
|
303 |
-
|
304 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:298
|
305 |
-
msgid "The changes have been successfully saved."
|
306 |
-
msgstr "Endringene er lagret"
|
307 |
-
|
308 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:303
|
309 |
-
msgid "The email address you entered is already registered to a different user.<br/>The email address was "
|
310 |
-
msgstr "E-postadressen du skrev inn er allerede registrert på en annen bruker.<br/> E-postadressen var"
|
311 |
-
|
312 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:304
|
313 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:314
|
314 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:324
|
315 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:333
|
316 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:355
|
317 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:363
|
318 |
-
msgid "NOT"
|
319 |
-
msgstr "IKKE"
|
320 |
-
|
321 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:305
|
322 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:315
|
323 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:325
|
324 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:334
|
325 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:356
|
326 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:364
|
327 |
-
msgid " updated along with the rest of the information."
|
328 |
-
msgstr "oppdatert sammen med resten av informasjonen."
|
329 |
-
|
330 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:313
|
331 |
-
msgid "The email address you entered is invalid. <br/> The email address was "
|
332 |
-
msgstr "E-postadressen du tastet inn er ikke gyldig. <br/> E-postadressen var"
|
333 |
-
|
334 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:323
|
335 |
-
msgid "The passwords you entered do not match. <br/> The password was "
|
336 |
-
msgstr "Passordene du tastet inn stemmer ikke overens. <br/> Passordet var"
|
337 |
-
|
338 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:332
|
339 |
-
msgid "You didn't complete both password fields. <br/> The password was "
|
340 |
-
msgstr "Du fylte ikke ut begge passordfeltene riktig. <br/> Passordet var "
|
341 |
-
|
342 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:344
|
343 |
-
msgid "There was an error while trying to upload the following attachments:<br/>"
|
344 |
-
msgstr "Det skjedde en feil når du prøvde å laste opp følgende vedlegg:<br/>"
|
345 |
-
|
346 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:352
|
347 |
-
msgid "<br/>Possible cause: the size was bigger than "
|
348 |
-
msgstr "<br/>Sannsynlig årsak: størrelsen var større enn "
|
349 |
-
|
350 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:354
|
351 |
-
msgid "b.<br/>The listed attachements were "
|
352 |
-
msgstr "b.<br/>Vedleggene ble"
|
353 |
-
|
354 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:362
|
355 |
-
msgid "There was an error while trying to upload your avatar picture.<br/>Possible cause: size/incorrect file-type.<br/>The avatar was "
|
356 |
-
msgstr "Det oppsto en feil når du forsøkte å laste opp bildet ditt. <br/>Sannsynligvis på grunn av feil størrelse eller feil filtype.<br/>Bildet ble "
|
357 |
-
|
358 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:380
|
359 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:233
|
360 |
-
msgid "Name"
|
361 |
-
msgstr "Navn"
|
362 |
-
|
363 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:386
|
364 |
-
msgid " Usernames cannot be changed."
|
365 |
-
msgstr "Brukernavn kan ikke endres."
|
366 |
-
|
367 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:414
|
368 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:459
|
369 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:246
|
370 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:307
|
371 |
-
msgid "(required)"
|
372 |
-
msgstr "(påkrevd)"
|
373 |
-
|
374 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:422
|
375 |
-
msgid "Display name publicly as"
|
376 |
-
msgstr "Vis mitt navn offentlig som"
|
377 |
-
|
378 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:451
|
379 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:294
|
380 |
-
msgid "Contact Info"
|
381 |
-
msgstr "Kontaktinformasjon"
|
382 |
-
|
383 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:501
|
384 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:369
|
385 |
-
msgid "About Yourself"
|
386 |
-
msgstr "Om deg selv"
|
387 |
-
|
388 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:521
|
389 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:403
|
390 |
-
msgid "Repeat Password"
|
391 |
-
msgstr "Gjenta passord"
|
392 |
-
|
393 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.edit.profile.php:537
|
394 |
-
msgid "Update"
|
395 |
-
msgstr "Oppdater"
|
396 |
-
|
397 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
398 |
-
#, php-format
|
399 |
-
msgid "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
400 |
-
msgstr "Du er logget inn som <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
401 |
-
|
402 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
403 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
404 |
-
msgid "Log out of this account"
|
405 |
-
msgstr "Logg ut av denne kontoen"
|
406 |
-
|
407 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:47
|
408 |
-
msgid "Log out »"
|
409 |
-
msgstr "Logg ut »"
|
410 |
-
|
411 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:60
|
412 |
-
#, php-format
|
413 |
-
msgid "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
414 |
-
msgstr "Du har logget inn som <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
|
415 |
-
|
416 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:86
|
417 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:398
|
418 |
-
msgid "Password"
|
419 |
-
msgstr "Passord"
|
420 |
-
|
421 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:90
|
422 |
-
msgid "Log in"
|
423 |
-
msgstr "Logg inn"
|
424 |
-
|
425 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:92
|
426 |
-
msgid "Remember me"
|
427 |
-
msgstr "Husk meg"
|
428 |
-
|
429 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.login.php:96
|
430 |
-
msgid "Lost password?"
|
431 |
-
msgstr "Mistet passordet?"
|
432 |
-
|
433 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:39
|
434 |
-
msgid "A username is required for registration."
|
435 |
-
msgstr "Et brukernavn kreves for registrering."
|
436 |
-
|
437 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:41
|
438 |
-
msgid "Sorry, that username already exists!"
|
439 |
-
msgstr "Brukernavnet er allerede i bruk!"
|
440 |
-
|
441 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:44
|
442 |
-
msgid "You must enter a valid email address."
|
443 |
-
msgstr "Du må skrive inn en gyldig e-postadresse"
|
444 |
-
|
445 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:46
|
446 |
-
msgid "Sorry, that email address is already used!"
|
447 |
-
msgstr "Denne e-posten er allerede i bruk!"
|
448 |
-
|
449 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:49
|
450 |
-
msgid "You didn't complete one of the password-fields!"
|
451 |
-
msgstr "Du fylte ut feil i et av passordfeltene!"
|
452 |
-
|
453 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:51
|
454 |
-
msgid "The entered passwords don't match!"
|
455 |
-
msgstr "Passordene er ikke like"
|
456 |
-
|
457 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
458 |
-
#, php-format
|
459 |
-
msgid "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't need another account."
|
460 |
-
msgstr "Du er allerede logget inn som<a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Du trenger vel ikke flere kontoer?"
|
461 |
-
|
462 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:171
|
463 |
-
msgid "Logout »"
|
464 |
-
msgstr "Logg ut »"
|
465 |
-
|
466 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:181
|
467 |
-
#, php-format
|
468 |
-
msgid "A user account for %1$s has been created."
|
469 |
-
msgstr "En bruker for %1$s har blitt lagt til."
|
470 |
-
|
471 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:183
|
472 |
-
#, php-format
|
473 |
-
msgid "Thank you for registering, %1$s."
|
474 |
-
msgstr "Takk for at du registrerte deg, %1$s."
|
475 |
-
|
476 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:211
|
477 |
-
msgid "Users can register themselves or you can manually create users here."
|
478 |
-
msgstr "Brukere kan registrere seg selv eller du kan gjøre det manuelt her."
|
479 |
-
|
480 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:215
|
481 |
-
msgid "Users cannot currently register themselves, but you can manually create users here."
|
482 |
-
msgstr "Brukere kan ikke registrere seg selv, men du som har administratorrettigheter kan manuelt legge til brukere her. "
|
483 |
-
|
484 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:219
|
485 |
-
msgid "Only an administrator can add new users."
|
486 |
-
msgstr "Kun en administrator kan legge til nye brukere."
|
487 |
-
|
488 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:422
|
489 |
-
msgid " Send these credentials via email."
|
490 |
-
msgstr "Send denne informasjon om brukernavn og passord på e-post"
|
491 |
-
|
492 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
493 |
-
msgid "Add User"
|
494 |
-
msgstr "Legg til bruker"
|
495 |
-
|
496 |
-
#: C:\Users\Cristi\Desktop\free/front-end/wppb.register.php:428
|
497 |
-
msgid "Register"
|
498 |
-
msgstr "Registrer"
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.10/translation/profilebuilder-nl_NL.mo
DELETED
Binary file
|
tags/1.1.10/translation/profilebuilder-nl_NL.po
DELETED
@@ -1,871 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Profile Builder v1.1\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: 2011-08-11 17:27+0000\n"
|
7 |
-
"Last-Translator: Pascal Frencken\n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Dutch\n"
|
14 |
-
"X-Poedit-Country: NETHERLANDS\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: ../\n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
22 |
-
#: front-end/menu.file.php:5
|
23 |
-
#: front-end/menu.file.php:8
|
24 |
-
#@ profilebuilder
|
25 |
-
msgid "Profile Builder"
|
26 |
-
msgstr "Profile Builder"
|
27 |
-
|
28 |
-
#: front-end/menu.file.php:6
|
29 |
-
#@ profilebuilder
|
30 |
-
msgid "Welcome to Profile Builder!"
|
31 |
-
msgstr "Welkom bij Profile Builder!"
|
32 |
-
|
33 |
-
#: front-end/menu.file.php:8
|
34 |
-
#@ profilebuilder
|
35 |
-
msgid " lets you customize your website by adding a front-end menu for all your users, giving them a more flexible way to modify their user-information or to register new users."
|
36 |
-
msgstr " stelt je in staat je website aan te passen door een front-end menu voor alle gebruikers toe te voegen, waarmee ze op een flexibele manier hun gebruikersinformatie kunnen wijzigen of zich als nieuwe gebruiker kunnen registreren."
|
37 |
-
|
38 |
-
#: front-end/menu.file.php:9
|
39 |
-
#@ profilebuilder
|
40 |
-
msgid "Also, grants users with administrator rights to customize basic fields or to add new ones."
|
41 |
-
msgstr "Ook geeft het beheerders de mogelijkheid om velden aan te passen of nieuwe toe te voegen."
|
42 |
-
|
43 |
-
#: front-end/menu.file.php:10
|
44 |
-
#@ profilebuilder
|
45 |
-
msgid "To achieve this, just create a new page, and give it an intuitive name(e.g. Edit Profile)."
|
46 |
-
msgstr "Hiervoor voeg je een nieuwe pagina toe, en geef je deze een duidelijke naam (bijv. Profiel Bewerken)."
|
47 |
-
|
48 |
-
#: front-end/menu.file.php:11
|
49 |
-
#@ profilebuilder
|
50 |
-
msgid "Now all you need to do is add the following shortcode(for the previous example): "
|
51 |
-
msgstr "Nu hoef je alleen de volgende shortcode toe te voegen: "
|
52 |
-
|
53 |
-
#: front-end/menu.file.php:12
|
54 |
-
#@ profilebuilder
|
55 |
-
msgid "Publish your page and you are ready to go!"
|
56 |
-
msgstr "Publiceer je pagina en je kunt aan de slag!"
|
57 |
-
|
58 |
-
#: front-end/menu.file.php:13
|
59 |
-
#@ profilebuilder
|
60 |
-
msgid "You can use the following shortcodes:"
|
61 |
-
msgstr "Je kunt de volgende shortcodes gebruiken:"
|
62 |
-
|
63 |
-
#: front-end/menu.file.php:14
|
64 |
-
#@ profilebuilder
|
65 |
-
msgid "for a log-in form."
|
66 |
-
msgstr "voor een login formulier."
|
67 |
-
|
68 |
-
#: front-end/menu.file.php:15
|
69 |
-
#@ profilebuilder
|
70 |
-
msgid "to add a registration form."
|
71 |
-
msgstr "voor het toevoegen van een inschrijfformulier."
|
72 |
-
|
73 |
-
#: front-end/menu.file.php:16
|
74 |
-
#@ profilebuilder
|
75 |
-
msgid "to grant users a front-end acces to their personal information(requires user to be logged in)."
|
76 |
-
msgstr "om gebruikers front-end toegang tot hun persoonlijke informatie te geven (de gebruiker moet ingelogd zijn)."
|
77 |
-
|
78 |
-
#: front-end/menu.file.php:18
|
79 |
-
#@ profilebuilder
|
80 |
-
msgid "Users with administrator rights have access to the following features:"
|
81 |
-
msgstr "Gebruikers met beheerdersrechten hebben toegang tot de volgende functies:"
|
82 |
-
|
83 |
-
#: front-end/menu.file.php:19
|
84 |
-
#@ profilebuilder
|
85 |
-
msgid "add a custom stylesheet/inherit values from the current theme or use one of the following built into this plugin: default, white or black."
|
86 |
-
msgstr "voeg een aangepaste stylesheet toe / neem de waarden van het huidige thema over of gebruik een van de volgende stijlen ingebouwd in deze plugin: standaard, wit of zwart."
|
87 |
-
|
88 |
-
#: front-end/menu.file.php:20
|
89 |
-
#@ profilebuilder
|
90 |
-
msgid "select whether to display or not the admin bar in the front end for a specific user-group registered to the site."
|
91 |
-
msgstr "geef aan of de admin balk in de front-end getoond moet worden voor een specifieke gebruikersgroep."
|
92 |
-
|
93 |
-
#: front-end/menu.file.php:21
|
94 |
-
#@ profilebuilder
|
95 |
-
msgid "select which information-field can users see/modify. The hidden fields' values remain unmodified."
|
96 |
-
msgstr "geef aan welke informatievelden de gebruikers kunnen zien / wijzigen. De waarden van verborgen velden blijven ongewijzigd."
|
97 |
-
|
98 |
-
#: front-end/menu.file.php:22
|
99 |
-
#@ profilebuilder
|
100 |
-
msgid "add custom fields to the existing ones, with several types to choose from: heading, text, textarea, select, checkbox, radio, and/or upload."
|
101 |
-
msgstr "voeg velden toe aan de bestaande, waarbij gekozen kan worden uit de volgende typen: koptekst, tekst, textgebied, selectieveld, meerkeuzeveld, enkel keuzeveld en / of uploadveld."
|
102 |
-
|
103 |
-
#: front-end/menu.file.php:23
|
104 |
-
#@ profilebuilder
|
105 |
-
msgid "add an avatar field."
|
106 |
-
msgstr "voeg een avatar veld toe."
|
107 |
-
|
108 |
-
#: front-end/menu.file.php:26
|
109 |
-
#@ profilebuilder
|
110 |
-
msgid "NOTE:"
|
111 |
-
msgstr "LET OP:"
|
112 |
-
|
113 |
-
#: front-end/menu.file.php:27
|
114 |
-
#@ profilebuilder
|
115 |
-
msgid "this plugin only adds/removes fields in the front-end."
|
116 |
-
msgstr "deze plugin voegt slechts velden toe aan / verwijdert velden uit de front-end."
|
117 |
-
|
118 |
-
#: front-end/menu.file.php:28
|
119 |
-
#@ profilebuilder
|
120 |
-
msgid "The default information-fields will still be visible(and thus modifiable)"
|
121 |
-
msgstr "De standaard informatievelden zullen nog steeds zichtbaar (en dus aanpasbaar) zijn"
|
122 |
-
|
123 |
-
#: front-end/menu.file.php:29
|
124 |
-
#@ profilebuilder
|
125 |
-
msgid "from the back-end, while custom fields will only be visible in the front-end."
|
126 |
-
msgstr "in de back-end, terwijl de toegevoegde velden alleen zichtbaar zijn in de front-end."
|
127 |
-
|
128 |
-
#: front-end/menu.file.php:43
|
129 |
-
#: front-end/menu.file.php:44
|
130 |
-
#: front-end/options.php:58
|
131 |
-
#@ profilebuilder
|
132 |
-
msgid "Plugin Layout"
|
133 |
-
msgstr "Plugin Opmaak"
|
134 |
-
|
135 |
-
#: front-end/menu.file.php:50
|
136 |
-
#@ profilebuilder
|
137 |
-
msgid "Stylesheet used:"
|
138 |
-
msgstr "Gebruikte stylesheet:"
|
139 |
-
|
140 |
-
#: front-end/menu.file.php:53
|
141 |
-
#@ profilebuilder
|
142 |
-
msgid "Default"
|
143 |
-
msgstr "Standaard"
|
144 |
-
|
145 |
-
#: front-end/menu.file.php:58
|
146 |
-
#@ profilebuilder
|
147 |
-
msgid "White"
|
148 |
-
msgstr "Wit"
|
149 |
-
|
150 |
-
#: front-end/menu.file.php:59
|
151 |
-
#@ profilebuilder
|
152 |
-
msgid "Black"
|
153 |
-
msgstr "Zwart"
|
154 |
-
|
155 |
-
#: front-end/menu.file.php:63
|
156 |
-
#@ profilebuilder
|
157 |
-
msgid "None"
|
158 |
-
msgstr "Geen"
|
159 |
-
|
160 |
-
#: front-end/menu.file.php:72
|
161 |
-
#: front-end/menu.file.php:119
|
162 |
-
#: front-end/menu.file.php:287
|
163 |
-
#: premium/premium.php:177
|
164 |
-
#@ default
|
165 |
-
msgid "Save Changes"
|
166 |
-
msgstr "Wijzigingen Opslaan"
|
167 |
-
|
168 |
-
#: front-end/menu.file.php:90
|
169 |
-
#: front-end/menu.file.php:91
|
170 |
-
#@ profilebuilder
|
171 |
-
msgid "Show/Hide the Admin Bar on Front End"
|
172 |
-
msgstr "Toon / Verberg de Admin Balk in de Front-end"
|
173 |
-
|
174 |
-
#: front-end/menu.file.php:95
|
175 |
-
#@ profilebuilder
|
176 |
-
msgid "User-group"
|
177 |
-
msgstr "Gebruikersgroep"
|
178 |
-
|
179 |
-
#: front-end/menu.file.php:96
|
180 |
-
#: front-end/menu.file.php:143
|
181 |
-
#@ profilebuilder
|
182 |
-
m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|