Customized login error message
Quote from Rob on June 27, 2018, 7:19 pmFeature request:
It would be nice if we could customize the message that you need to log in from “Sorry, only logged in users have access to this forum” to something that would be more conducive and in context of the site, could be a few lines and could have a link(s) or better yet could be any HTML.
Feature request:
It would be nice if we could customize the message that you need to log in from “Sorry, only logged in users have access to this forum” to something that would be more conducive and in context of the site, could be a few lines and could have a link(s) or better yet could be any HTML.
Quote from Asgaros on June 28, 2018, 7:05 pmHello @rob-asgaros
A filter for this is already available. You can use the following code-snippet to change the login-message as you want:
function custom_message($message) { return 'My custom message ...'; } add_filter('asgarosforum_filter_login_message', 'custom_message');
Hello @rob-asgaros
A filter for this is already available. You can use the following code-snippet to change the login-message as you want:
function custom_message($message) { return 'My custom message ...'; } add_filter('asgarosforum_filter_login_message', 'custom_message');
Quote from Rob on June 28, 2018, 8:14 pmHi @asgaros
I suspected that this might be a solution, but there are many among us (myself included) who either don’t want coded solutions or are not capable of doing them correctly. I’m also concerned about having to make this coded change each time the plugin is updated or adding yet another plugin to have the change made without interfering with this plugin.
It would be so much better to simply have this has an option in WP Forum Settings.
Hi @asgaros
I suspected that this might be a solution, but there are many among us (myself included) who either don’t want coded solutions or are not capable of doing them correctly. I’m also concerned about having to make this coded change each time the plugin is updated or adding yet another plugin to have the change made without interfering with this plugin.
It would be so much better to simply have this has an option in WP Forum Settings.
Quote from Asgaros on June 29, 2018, 10:16 amHello @rob-asgaros
Adding this code to your themes functions.php makes sure that you dont have to add it again after a plugin-update. But I agree with you that it might not be the most intuitive solution for this problem.
I will consider to add some further configuration-options for this in the future while keeping the balance between “useful options” and “advanced options” which are only needed by a small minority of the userbase. That was the initial idea behind it why I added those filters because I dont want to bloat the plugin with 1000 configuration-options for some specific feature. 🙂
Hello @rob-asgaros
Adding this code to your themes functions.php makes sure that you dont have to add it again after a plugin-update. But I agree with you that it might not be the most intuitive solution for this problem.
I will consider to add some further configuration-options for this in the future while keeping the balance between “useful options” and “advanced options” which are only needed by a small minority of the userbase. That was the initial idea behind it why I added those filters because I dont want to bloat the plugin with 1000 configuration-options for some specific feature. 🙂
Quote from Rob on June 29, 2018, 1:03 pmHi @asgaros
Thanks for explaining this and sorry for my ignorance (still learning WP from many points of view). I just tried adding it to functions.php and it really was not as bad as I thought. Of course, if the theme ever gets updated I’ll have to remember to add it back in again but adding hooks for the forum like this does provide a good option in these kinds of cases. My theme, aThemes Astrid free, hasn’t been updated for a very long time and I think unlikely it will see updates in the future as it is simple and works perfectly.
I also see your point about adding features that can be “feature creep”. I nonetheless appreciate your consideration to add this to settings in a future release as it involves an important part of access to the forum and the ability to use language/terms that are more aligned with what a user is doing and/or needs to do and/or why they need to do it is arguably important. While it may be the minority need of existing forum administrators, once easy to change it could become something bigger than that.
My use case here is using the forum for support where you have to be a member. I just wanted language that expresses that in a friendly and contextual fashion, but also demonstrate value to non-members as a way to promote the benefits of using my plugin (also known as “value-add proposition”).
Having said all of this, I am happy to at least have the hook and make the change that way.
Hi @asgaros
Thanks for explaining this and sorry for my ignorance (still learning WP from many points of view). I just tried adding it to functions.php and it really was not as bad as I thought. Of course, if the theme ever gets updated I’ll have to remember to add it back in again but adding hooks for the forum like this does provide a good option in these kinds of cases. My theme, aThemes Astrid free, hasn’t been updated for a very long time and I think unlikely it will see updates in the future as it is simple and works perfectly.
I also see your point about adding features that can be “feature creep”. I nonetheless appreciate your consideration to add this to settings in a future release as it involves an important part of access to the forum and the ability to use language/terms that are more aligned with what a user is doing and/or needs to do and/or why they need to do it is arguably important. While it may be the minority need of existing forum administrators, once easy to change it could become something bigger than that.
My use case here is using the forum for support where you have to be a member. I just wanted language that expresses that in a friendly and contextual fashion, but also demonstrate value to non-members as a way to promote the benefits of using my plugin (also known as “value-add proposition”).
Having said all of this, I am happy to at least have the hook and make the change that way.
Quote from Dario on May 3, 2020, 12:43 pmQuote from Asgaros on June 29, 2018, 10:16 amHello @rob-asgaros
Adding this code to your themes functions.php makes sure that you dont have to add it again after a plugin-update. But I agree with you that it might not be the most intuitive solution for this problem.
I will consider to add some further configuration-options for this in the future while keeping the balance between “useful options” and “advanced options” which are only needed by a small minority of the userbase. That was the initial idea behind it why I added those filters because I dont want to bloat the plugin with 1000 configuration-options for some specific feature. 🙂
The page theme is also updating and the fix disappears
Quote from Asgaros on June 29, 2018, 10:16 amHello @rob-asgaros
Adding this code to your themes functions.php makes sure that you dont have to add it again after a plugin-update. But I agree with you that it might not be the most intuitive solution for this problem.
I will consider to add some further configuration-options for this in the future while keeping the balance between “useful options” and “advanced options” which are only needed by a small minority of the userbase. That was the initial idea behind it why I added those filters because I dont want to bloat the plugin with 1000 configuration-options for some specific feature. 🙂
The page theme is also updating and the fix disappears
Quote from Asgaros on May 8, 2020, 4:00 amHello @dkpandroid
As a workaround you can create a custom-plugin which contains all of your own code:
Hello @dkpandroid
As a workaround you can create a custom-plugin which contains all of your own code:
Quote from Quenso on May 8, 2020, 4:25 pm@dkpandroid
It’s always better to use a child theme for functions and style changes to avoid loosing it on updates.
https://developer.wordpress.org/themes/advanced-topics/child-themes/
It’s an alternative way to creating custom plugins like Asgaros said.
It’s always better to use a child theme for functions and style changes to avoid loosing it on updates.
https://developer.wordpress.org/themes/advanced-topics/child-themes/
It’s an alternative way to creating custom plugins like Asgaros said.