Forum Replies Created
-
AuthorPosts
-
KhaledMember
Hi, It could be plugin conflict. Please check for other plugin related with login. You can also try 1.1.7rc1 too.
Thanks.
KhaledMemberHi, Could you please try 1.1.7rc1. If that doesn’t work too, you can set a temp admin account on your site for support(at)user-meta.com so that I can have a look on it.
Thanks.
KhaledMemberHi,
You could use following code:
global $userMeta; $author_info = get_userdata($author->ID); if ( ! empty( $author_info->user_image ) ) { $file = $userMeta->determinFileDir( $author_info->user_image ); if ( ! moty( $file['url'] ) ) echo '<img class="alignright" src="' . $file['url'] .'" width="130" height="150" />'; }
Thanks.
KhaledMemberHello,
Please try our current dev version.
Thanks.
KhaledMemberHi Khaya,
We added form parameter to the action hook in dev version. Thanks for pointing that. However, redirection by HTML is not possible(Interface will be more bulky if we added configuration for profile update redirection, so I think only action hook is okay for that).
Thanks.
KhaledMemberHi Robert,
I got your email. According to your email:
I have a situation where a logged in user wants to purchase for the first time. If they have not yet created a buyer profile, then the site directs them to a Profile Update form. Once they complete the form I need a custom redirect which takes them back to the previous page (in this case the post of the item they want to purchase). This is very similar to the redirect action available when logging in – ‘Referer (Send the user back to the page where they come from)’To obtain that, please download and install dev version. and put following code to your functions.php
Make sure to change ‘profile_form’ to your form name and ‘Your_Meta_Key’add_action( 'user_meta_after_user_update', 'my_custom_redirection', 10, 2 ); function my_custom_redirection( $response, $form ){ global $userMeta; if ( $form != 'profile_form' ) return; if ( get_user_meta( $response->ID, 'Your_Meta_Key' ) ) { // Check if profile completed by meta_key. You can check it by other ways. if ( ! empty( $_REQUEST['pf_http_referer'] ) ) { echo $userMeta->jsRedirect( $_REQUEST['pf_http_referer'] ); } } else { echo $userMeta->jsRedirect( 'http://example.com' ); } }
Thanks.
KhaledMemberHi,
Currently, UMP doesn’t have any feature for users listing. You could use other listing/member’s directory plugin for this.Thanks.
KhaledMemberKhaledMemberHi Robert,
You can use $_REQUEST[‘pf_http_referer’] to obtain referer url.Thanks.
KhaledMemberHi
For form based redirection,
Create a html filed with default value
<input type=”hidden” name=”redirect_to” value=”http://example.com”>
Use the html field inside the form and set redirection to “Referer” for targeted role.
KhaledMemberHi Martin,
Thanks a lot for your testing. I have just update dev containing fixes for your reported issues.
To add “onchange” with any field, please see following example (with new dev version)
add_filter( 'user_meta_field_config', 'addEvents', 10, 3 ); function addEvents( $field, $fieldID, $formName ){ if ( $fieldID <> 'Target_Field_ID' ) return $field; $field['events'] = array( 'onchange' => 'custom_js_function()' ); return $field; }
KhaledMemberHi Melissa,
Perhaps, User Meta Pro was inactive while you have updated the plugin so it downloaded the free version. However, please download pro version from http://user-meta.com/downloads/ then remove your existing UMP versaion from your site and install newly downloaded one.
Thanks.
KhaledMemberIf it possible, can you set a temp admin account for support(at)user-meta.com so that I can have chance to look closely.
Thanks.
KhaledMemberHi, You can use following codes:
add_filter( 'user_meta_scripts', 'removeUmpScripts' ); function removeUmpScripts( $scripts ) { if( ! is_admin() ) { return array(); } return $scripts; }
Thanks.
-
AuthorPosts