-
Hi,
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 fixedPlease download the most recent update from customer area:
http://userproplugin.com/userpro/customer_portal/
Thanks!
Remember Me
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.
Added option to show posts by all users
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.
New Action Hook
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 🙂
Redirect after Login from popup
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
Is there an update for the private messaging add on? Just checking.
Thanks, very useful ‘userpro_before_form_save’ hook!
ALso after save would be good too, cause i also want to run code after data is saved… 😀PS dont know why but i use this hook, i always get
SyntaxError: Unexpected token <
when im press save after i edit profile.add_action( ‘userpro_before_form_save’, ‘CheckUserDataBeforeSave’ );
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.
I also using this code
PHP123456789101112131415161718192021function 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.
Every time I update the UserPro plugin my thumbnails screw up. Errors I get are “Could not create the index.html file – to fix this create an empty file named index.html file in the cache directory.” and “Could not open the lockfile for writing an image.”
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?
Hey Ahmed good day to you !
I used this shortcode [userpro template=postsbyuser all_users=true] but nothing is shown at the page !What i am missing there ?
Thank you
@yiannakis : make sure you updated your plugin from customer area, I just tested the same code on random page and it’s showing all posts by all users.
@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.
The latest update fully works on my website. If there is a glitch, it is more likely to be a conflicting plugin or theme and not an issue with the UserPro plugin.
Just added my purchase code. So are the 777 permissions ok to use?
Can we make category a required field yet?
This update looks great, more good stuff from Ahmed. 😀
You must be logged in to reply to this topic.