Forum breadcrumbs – You are here:Asgaros Support ForumSupportClickable Notice
Please or Register 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?

 

RUSev has reacted to this post.
RUSev

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://asgaros.com/support/topic/customized-login-error-message/#postid-4191

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

RUSev has reacted to this post.
RUSev
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!

Asgaros has reacted to this post.
Asgaros

How to add a login code from social media, e.g. I have it on the right in the widget social media login?

My page: http://www.forumowo.pl

Quote from Dario on May 3, 2020, 1:07 pm

How to add a login code from social media, e.g. I have it on the right in the widget social media login?

My page: http://www.forumowo.pl

I did another method 🙂