gamicord
Forum Replies Created
-
At a point, I don’t even know what to tell you again.
I am saying that, If I don’t go to WordPress backend and manually update a user, this plugin doesn’t automatically update the BuddyPress Usernames to begin to use First and Last Names.
Whereas, I need this plugin to be able to update from Username to First and Last name automatically in BuddyPress.
If you want to disagree with me and argue with me on what I am experiencing and saying to you, then I wouldn’t really know what else to say to you– because it will just appear to me like you are just trying to shut me up.
The real truth is that, the plugin is not working as expected: it is not automatically updating BuddyPress Usernames to start using First and Last Names.
The only way that my BuddyPress Users get to see their First and Last names, is if I manually go to each specific user on the backend, and choose the “Display name publicly as“.
But this is a heck of a job, if I have to do that manual changing for every single user.
This is my predicament, and I am asking that, what can I do to make this plugin function for me as I expect?
Regards.
Thank You very much. The Code worked!
Aswin Giri (@aswingiri)
Thanks Sir.
The CSS seemed to work. I am nearing the first glance view.
What would do the job perfectly for me, is if we can reduce the height of the Cover Photo by 50%.
See what I mean here– https://prnt.sc/X2w5UEGkjbEZ
How can I reduce the height of the Cover Photo by 50% of what I have currently?
Regards.
I have tried your plugin, but it is doing the wrong thing, and it is not working.
Now, I have set my Custom Paths, as you can see here– https://prnt.sc/gpTxLAyH1-GT
Unfortunately, the plugin is not doing its job!
When I type wp-login.php, it still brings me to the Wp-Login Page, as you can see here– https://prnt.sc/WN4q1jNfHFbb
Whereas, I expect it to bring me to my Custom Login Page seen here– https://prnt.sc/ggMAZBuzs41x
You see, I have the below PHP Code Snippet:
/** Block wp-admin access for non-admins */ function restrict_wp_admin() { if (!current_user_can('administrator') && !is_admin()) { if (strpos($_SERVER['REQUEST_URI'], 'wp-admin/') === 0) { wp_redirect(home_url('/login')); // use desired slug exit; } } } add_action('admin_init', 'restrict_wp_admin'); function restrict_wp_login() { if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false && !is_user_logged_in() && !strpos($_SERVER['REQUEST_URI'], '/login/')) { wp_redirect(home_url('/login')); // use desired slug exit; } } add_action('init', 'restrict_wp_login');
THE PROBLEM
The problem I have is that, when this Code Snippet is active, the Custom Login Form does not work.But when this Code Snippet is disabled, the Custom Login Form works.
WHAT I TRIED
I did research to discover that wp-login.php controls Login, Logout and Password Resets.So, it appears as if my Code is blocking the wp-login.php from functioning properly.
REQUEST
I need my wp-login.php and my WP-Admin Pages to stay hidden to non-Admins– such that, even if they intentionally type “mydomain.com/wp-admin” or they intentionally type “mydomain.com/wp-login.php“, they should never ever see those Pages.Rather, they should be redirected to my Custom Login Page.
Yet, my Custom Login Page should be able to work and function properly.
QUESTION
What are the step by step rules I need to follow, for your plugin to be able to do this for me?Or,
2.) Can you Please help me modify and update my Code to be able to do what I want, if what I’m asking is outside the capability of your plugin?
Regards.
Thanks Sir, for this reply.
Unfortunately, my Custom Login Form still does not work, when I inserted this updated Code.
But when I disabled the code, it works.
What happens is that, when the Code is active, the Form just returns back to itself. It stays on the same page and doesn’t login.
If I however disable the code, my Custom Login Form starts to work as expected.
The action of redirecting all wp-admin and wp-login.php requests to my Custom Login Page does happen.
People indeed are not able to see my wp-admin and wp-login.php Pages, but the problem of my Custom Login Form not working, now remains the problem to tackle.
This is how the Custom Login Form was created– https://youtu.be/V8o4pJIzf2g
I felt I should show you the process of creating the Login Form–perhaps it will give you an insight on where to troubleshoot from.
What else do you think can be wrong? — and what’s the fix?
2.) If our code is probably missing some essentials, can you recommend a plugin that actually does what I need?
Regards.
Kim White (@kimwhite)
I tried to follow what you said, but it is not clear enough.
When you said “Go to Settings“, there’s nothing in Settings.
Probably you would have to give a more clear step by step guide with screenshots to show which places and which areas exactly you are talking about.
Regards
This is the website — https://member.cordialmarketplace.com
I guess you’d be able to view it from there?
Regards.
Forum: Plugins
In reply to: [Redirection] WP-Admin and WP-Login.Php redirectThanks for your reply Sir,
Now, I have this Code Snippet:
function restrict_wp_admin() { if (!current_user_can('administrator') && !is_admin()) { wp_redirect(home_url('/login')); // use desired slug exit; } } add_action('admin_init', 'restrict_wp_admin'); function restrict_wp_login() { if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false && !is_user_logged_in()) { wp_redirect(home_url('/login')); // use desired slug exit; } } add_action('init', 'restrict_wp_login');
THE PROBLEMThe problem I have is that, when this Code Snippet is active, the Custom Login Form does not work.
But when this Code Snippet is disabled, the?Custom Login Form works.WHAT I TRIED
I did research to discover that wp-login.php controls Login, Logout and Password Resets.
It appears as if my Code is blocking the wp-login.php from functioning properly.
REQUESTCan you help me with an updated Code that can intentionally stop every non-admin from seeing the Wp-Admin and the WP-Login.Php Pages, yet the Custom Login Form should be functional?
2.) When do you plan to release the update?
Regards.
Forum: Developing with WordPress
In reply to: Hide One or More Nav Menu Item from Logged out userI guess I’ve found the required codes, and it’s working now.
Here is the warning I am talking about– https://prnt.sc/igo9yehruH9K
Regards.
Forum: Developing with WordPress
In reply to: Hide One or More Nav Menu Item from Logged out userPhill(@phillsav)
I believe WordPress will always add the body class.
With the assumption that WordPress always adds the body class, can you Please just send me the required CSS Codes?
Regards.
Forum: Developing with WordPress
In reply to: Hide One or More Nav Menu Item from Logged out userPhill (@phillsav) , rohitmukati (@rohitmukati)
Considering the problem of the code not working, I tried to simplify my problem and create a better context.
This is now the current situation:
On my Menu, I have Login and Logout Menu items.
The Login link is an Elementor created Page.
While the Logout is an endpoint supplied by BuddyPress.
I have enabled CSS Classes in my Menu through Screen options.
So the Login link has a CSS Class of [ buddyx-elementor-login ] while the Logout link has a CSS Class of [ bp-menu bp-logout-nav ]
If people Login, I want the Login on the Menu to be hidden– because they are already logged in.
And if they Logout, I want the Logout on the Menu to be hidden– because they are already logged out.
Can you Please adjust the PHP Code Snippets to then use these CSS Classes to do the dynamic Hide and Show?
Regards.
andrewshu (@andrewshu)
Your answer shows that you did not understand my question.
The issue is that the code here– https://docs.ultimatemember.com/article/1765-send-birthday-greetings-to-accounts-with-today-s-birthdays
That code is not yet perfect. It is still full of bugs, and this bugs do not allow it to save Email content.
Fix the bug in the Code and make it a perfect usable and functional code, is what I’m saying.
Regards.
I’ve not installed your plugin because I was a bit confused on what I need to do, to get it to work.
Plus it seems I need certain other Third party plugins that will import, export, and so on, to get it to work.
These whole long process just confused me.
So I was wondering if there’s any way you can build it in a simplified way, and make it self sufficient– so that it functions straight with minimal set up?
Regards.
Irrespective of all these features you are brandishing for the Bit Form Builder– when it is finally released, would it be able to send Automated Birthday Greetings to Members and Users of my website on their Birthdays?
Regards.