Forum breadcrumbs - You are here:Asgaros Support ForumSupportClickable Notice
You need to log in to create posts and topics.

Clickable Notice

Hi,

is there a way to make the "you must log in notice" a link, which goes directly to the login page?

 

I made it myself directly in translation. The only negative after each update of the translation files has to be returned again.

Hello @justinea @rusev

The login-messages can get changed by a custom-code like described in the following topic:

https://www.asgaros.de/support/topic/customized-login-error-message/#postid-4191

By using the hook its possible to put a link around the text.

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

thanks! Changing the wording worked but I cannot get the link to work. 🙁

Hello again @justinea

Please try it again with the following code:

function custom_message($message) {
    global $asgarosforum;
    $login_url = wp_login_url($asgarosforum->get_link('current', false, false, '', false));
    
    return '<a href="'.$login_url.'">My custom message ...</a>';
}
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!

Now it worked 🙂 Vielen herzlichen Dank!