You need to log in to create posts and topics.

Customized login error message

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.

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');

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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.

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. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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.

The page theme is also updating and the fix disappears.

Quote from Asgaros on June 29, 2018, 10:16 am

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. 🙂

The page theme is also updating and the fix disappears

Hello @dkpandroid

As a workaround you can create a custom-plugin which contains all of your own code:

https://wplift.com/custom-plugin

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

@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.