Page 1 of 1

Change Loginform plugin button to normal text link

Posted: Sun Sep 23, 2007 12:30 pm
by mallors
Hi,

I have placed the plugin serendipity_plugin_loginform in the left sidebar to make it easy to login. After entering a username and password you need to press on a submit-button.

I would like to replace the large button with a <a href> link, but dont know what the target should be then. The code for this button is:

When not logged in:
echo '<input type="submit" name="serendipity[action]" value="' . LOGIN . '" />';

When logged in:
echo '<input type="submit" name="serendipity[action]" value="' . LOGOUT . '" />';

Could anyone help changing this button into a text link that still works?

Mallors

Re: Change Loginform plugin button to normal text link

Posted: Sun Sep 23, 2007 1:03 pm
by garvinhicking
Hi!

You could use <a href="?serendipity[logout]=true"> to logout.

You cannot replace the login thing to a link, because you need username+password, which can only be entered when clicking a submit button.

Regards,
Garvin

No logout

Posted: Sun Sep 23, 2007 3:57 pm
by mallors
Thanks for your reaction! The following code doesnt work!

echo '<a href="?serendipity[logout]=true">Logout</a>';

It reloads the page but still keeps me logged in.