Login button string and logout issue

Hello WPMUDEV Community!

WP version: 3.4.1
Ultimate Facebook: 2.4.1

I have two issues (I've been in doubt wheter is better open one post for each issue):

1. Login button string

I added the string that I want in login button by shortcode, like this echo do_shortcode('[wdfb_connect]Conecte-se com Facebook[/wdfb_connect]'); but still displaying Entrar (Login).

I've noticed that there are 4 requests to page that render login button, login_button.php, but I don't know where these requests come. The two firsts requests sending the login_text query string parameter correctly with my string Conecte-se com Facebook but in the two last requests this query string parameter is empty.

2. Logout Issue

I've get the issue that some here have too but I dont found in forum any solution or thoughts that worked for me.

I use this function to print logout link: echo '<a href="' . wp_logout_url( get_permalink() ) . '" title="Logout">Sair</a>'; but when clicked once, nothing happens. Clicked Logout again and taken to another page You are attempting to log out.

Sometimes this not behave in this way either. Apparently the user appear logged out but when returns in page that request to logout appear logged in again, pretty weird.

Logout link generated: http://variavel5.wpengine.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fvariavel5.wpengine.com%2F&_wpnonce=4358e673ce

I do not have any cache plugin installed.

Thanks for advance for any help or thoughts.

Regards

  • Timothy
    • Chief Pigeon

    I use this function to print logout link: echo 'Sair'; but when clicked once, nothing happens. Clicked Logout again and taken to another page You are attempting to log out.

    It's a standards WordPress thing so either something in the hosting or a conflict with a plugin/theme.

    You would need to debug a little and disable all other themes and test in the Twenty Eleven theme.

    Does that make a difference?

    I added the string that I want in login button by shortcode, like this echo do_shortcode('[wdfb_connect]Conecte-se com Facebook[/wdfb_connect]'); but still displaying Entrar (Login).

    I tested this with:

    [wdfb_connect]Get in![/wdfb_connect]

    And still got login, I'll let our developer know about that.

    Thanks.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.