Forum Replies Created
-
this post have to be deleted just for topic name.
in reply to: Ahmed, you need to see this!I’m more interested in ” New feature: introduced built-in field validation via filter hooks” and you don’t describe them also you do not update DOCs there is no previous version hook and this ones 🙂
Can you please write something about this new hook? how to use it?
in reply to: New Update Available – v1.0.86Yes…i now was able to debug AJAX response and it contained PHP warning saying that there is no parameter 2 and 3.
SO i removed 2 params from function and it works now.in reply to: New Update Available – v1.0.84@Ahmed new version?? i already have 1.0.84 and i’m writing about it. And i know what action is in WP, and im doing all ok. You add to action 3 variables and i use them to check what user submitted and i use that info for other purposes.
I created custom activity log and it checks submitted data and depending on some conditions adds new activity. So far i don’t see what can i do wrong which causes this error.It’s not critical i guess, but it would be awesome if you test it.
in reply to: New Update Available – v1.0.84So do not allow non verified users to create posts and all post automatically will be by verified users.
2. get array of user ids user follows, run wp query to get posts by those authors.
You ask me how to get those ids? easy peasy..$ids = get_user_meta($user_id, '_userpro_following_ids', true);
if you still having question how to get post now when you have ids – well, hire developer 😀
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.
in reply to: New Update Available – v1.0.84add_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.
in reply to: New Update Available – v1.0.84i think some capcha plugin making this not work. i see JS error by it.
in reply to: I can't registrerThanks, 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.in reply to: New Update Available – v1.0.84Ahmed also please fix bug when impossible to delete all (saving changes will leave one item anyway) values from multiselect.
in reply to: upload lock for user not workBut i think you should consider, because we need to check some things with check boxes too 🙂 Lets say i have check box “Call me”. So if call me checked-i must check is Phone number defined.
So it would be good 🙂in reply to: Using AJAX callback not only on text fieldsYour english is wors then mine but if you wanna redirect people after registration process to some page
go to wp-admin go to pages search for register page you will see shorcode,..replace it with
[userpro template=register register_redirect="yourUrlGoesHERE"]
PS.oh you wanna that in login page Create Account button redirect to your othe rplugin.
you can open login.php template file from userpro, and search for
<?php if ($args[“{$template}_button_secondary”]) { ?>
<input type=”button” value=”<?php echo $args[“{$template}_button_secondary”]; ?>” class=”userpro-button secondary” data-template=”<?php echo $args[“{$template}_button_action”]; ?>” />
<?php } ?>this is the register button, replace that code with your register button with it’s url.
in reply to: custom registration page – redirecthow hard is to add url to php file? add url to your login and register page and that’s it.
You never created a url in html? 🙂open the file and look for
<p><?php printf(__('You cannot view this content because It is available to members only. Please <a href="#" class="popup-login" data-force_redirect_uri="1">login</a> or <a href="%s">register</a> to view this area.','userpro'), $userpro->permalink(0, 'register') ); ?></p>
replace with somethink like:
<p><?php printf(__('You cannot view this content because It is available to members only. Please <a href="http://MySUperWebsite.com/login" data-force_redirect_uri="1">login</a> or <a href="%s">register</a> to view this area.','userpro'), "http://mysuperwebsites.com/register" ); ?></p>
in reply to: Protected Content Message – Removing ajaxHi, im not related to suport, am regular customer just like you.
And dont call people experts if they make internal server error by making such easy thing as html email 😀 This is first grade task.He’s not an expert if can’t read such easy writen code as this one. You should dont use that guy cause he is fraud.
Better hire Ahmed (developer of this plugin) and you’ll get what u need.
in reply to: date picker and ruleSorry to say but suggested plugin is total crap. It only Gzips javascripts/css… best caching plugin was and always will be-the one who makes SQL queries results cached so no need to wait data from SQL + NGINX as static files proxy 🙂
in reply to: redirect on login