Rahul Gandhi
Forum Replies Created
-
Good to know your issue resolved. Thanks!
Hi Azamat,
This error in console is due to following hidden element added at multiple places.
<input type="hidden" name="lang" id="lang" value="en">I can see you are using another plugin called login with ajax and it is adding form in hidden div which may be displayed in a popup. So Polylang is adding the above input code to all the forms and it generates an error of multiple occurrences of the same id. I suggest you check after deactivating the login with ajax plugin and let us know if it resolves this error or not.
Regards,
PatrikActually, wp_get_current_user() will work for current logged in users while in the plugin we have other users profile visible to all users so this function will not work for the global plugin. It can work for your specific requirements. You may need to make changes in the core to achieve your requirements.
Hi,
It is not recommended to remove %username% parameter from the URL as it is required parameter to load the data of that user in the profile page.
If you want to allow access to own profile page only and redirect to home page while accessing other profile page then you can put following code in your functions.php file of the currently active theme.
add_action('template_redirect', 'uwp_profile_page_redirect', 99); function uwp_profile_page_redirect(){ if (!is_page()) { return false; } global $wp_query, $post; $current_page_id = $post->ID; $profile_page = uwp_get_option('profile_page', false); if ( $profile_page && ((int) $profile_page == $current_page_id ) ) { if (isset($wp_query->query_vars['uwp_profile'])) { $url_type = apply_filters('uwp_profile_url_type', 'slug'); $author_slug = $wp_query->query_vars['uwp_profile']; if ($url_type == 'id') { $user = get_user_by('id', $author_slug); } else { $user = get_user_by('slug', $author_slug); } if (isset($user->ID) && is_user_logged_in() && $user->ID == get_current_user_id()) { return false; } else { wp_redirect( home_url('/')); // redirect for other users exit(); } } } return false; }Let me know if it helps you.
Regards,
PatrikForum: Plugins
In reply to: [Quotes Addon for GetPaid] No option to remove item from quoteHi Khunmax,
Yes, We are aware of this functionality. So here I would suggest you add another item and then you delete the previous item. So in short if you will have more then one item then you will have choice to remove any items.
In case of recurring items, if you add item by mistake then you will have to cancel or delete the invoice/quote and create new one.
As invoice/quote must have at least one item and recurring item should be sold separately, that is why we have applied this functionality.
Regards,
PatrikForum: Plugins
In reply to: [Quotes Addon for GetPaid] Incorrect messageHi Khunmax,
Thanks for your suggestion and we have applied the changes for this and it will be available in the next release of the plugin.
Regards,
Patrik