This is an announcement about the latest update (v1.0.81)
Version 1.0.84 (04 Apr 2014)
============================
– New feature: added “Remember me” feature for Login shortcode
– New feature: added ‘all_users’ option to show posts by all users instead of specific user / profile
– New feature: control the maximum size of files or photos that user can upload via frontend
– New feature: added option to disable or enable lightbox feature globally
– New feature: new action hook that runs before a form is processed in ajax ‘userpro_before_form_save’
– New feature: redirect to custom URL option when user log in with modal (data-login_redirect=”your-custom-url”)
– Fixed bug: display of custom fields that have multiple values in memberlist table fixed
– Fixed bug: Syntax error bug in registration form when form contains multi select fields is now fixed
Please download the most recent update from customer area:
http://userproplugin.com/userpro/customer_portal/
Thanks!
]]>The Remember me checkbox will appear by default on login shortcode. To disable it, set rememberme=false in your shortcode.
Photo Lightbox – to enable or disable lightbox for photos (profile photo + uploaded photos) globally, this will NOT LOAD lightview js/css files if turned off. (Requested)
Maximum file size for uploads – allow you to control maximum size that user can upload from the frontend. Photo or file.
template=postsbyuser can accept new argument now, which is: all_users=true and it lets the code show ALL users posts instead of user=xxx or profile owner only.
do_action(‘userpro_before_form_save’, $form, $template, $user_id);
You can use it to DO stuff before a form is processed/saved. Accepts 3 args. $form contains submitted form keys/values. $template : login, edit, register, etc. and $user_id 🙂
As requested also, this is for popup-login links that open login with modal. You can add this data-login_redirect=”your-custom-url” to the link to control where the user will be redirected after logging in from MODAL.
The minor update also fixes 2 small bugs.
Thanks
PS dont know why but i use this hook, i always get SyntaxError: Unexpected token <
when im press save after i edit profile.
@Robin, I am currently working on another update for UserPro still, Messaging addon will be updated as well soon
]]> function CheckUserDataBeforeSave($form, $template, $user_id)
{
mail(“[email protected]”,print_r($template,true),print_r($form,true));
}
i just wanted to see the contents. i do not change anything. I also got $template always empty. And $user_id empty too.
]]>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
function CheckUserDataBeforeSave($form, $template, $user_id) { global $userpro; global $userpro_social; if(isset($form) && $form["template"] == "edit") { $currentFond = userpro_profile_data( "field_pension", $form["user_id"] ); $newFond = $form["field_pension"]; if(!empty($newFond) && $currentFond !== $newFond) { $userpro_social->log_action( 'changed_fond', $form["user_id"], $newFond /*, $currentFond */ ); } } } |
problem the same. I really need this fixed 🙁 Also maybe better idea is to write to console errors, not to alert them to end user.
PS. no matter that im get error-but data is being saved. Maybe this will help u.
EDIT: i saved whole output from ajax call in php file (ajax.php line:501) and checked validation on online JSON validation website-says valid JSON. So i guess it’s not json problem but JS.
]]>Is there not a way to set the permissions properly from your end or will I have to change the folder permissions every time I update? I have to set the cache folder to 777 and index.html/timthumb_cacheLastCleanTime.touch to 777 as well to get thumbs to show again, is this safe?
]]>What i am missing there ?
Thank you
]]>@Nate82 please put the purchase code in your profile.
@Tomas that code is not used to print anything on screen, update the plugin again from customer area. This code is to process code in backend while or before saving. e.g. storing a custom field value. Or modifying an existing form value.
Please download the latest update from customer area.
]]>