Page 1 of 1

logout in frontpage

Posted: Wed Mar 24, 2010 7:28 pm
by rafi
hello,

the only way to logout is over the backend, right?
but can i add a button/link to logoff on the frontend, so people dont need to go on the backend?

Re: logout in frontpage

Posted: Wed Mar 24, 2010 9:59 pm
by garvinhicking
Hi!

Serendpity has a "Loginform" sidebar plugin (serendipity_plugin_loginform) available through the Spartacus plugin or http://spartacus.s9y.org that offers you to have a login area, where you can also log out.

And of course you could add a HTML nugget sidebar plugin where you simply enter the link that's given to you in the backend.

HTH,
Garvin

Re: logout in frontpage

Posted: Thu Mar 25, 2010 9:13 am
by rafi
hi thanks for this information

now i have the plugin working on my side,

but when i click on its "logout"-button nothing happens.

the real logout url which works is /serendipity_admin.php?serendipity[adminModule]=logout
right...

but on the sidebar plugin its like this:

Code: Select all

       <div class="serendipitySideBarItem container_serendipity_plugin_loginform">

                     <h3 class="serendipitySideBarTitle serendipity_plugin_loginform">title</h3>
                  <div class="serendipitySideBarContent"><div class="serendipity_center">Welcome back, rafael</div><form id="loginform" action="/index.php?" method="post"><input type="hidden" name="serendipity[logout]" value="true" /><input type="submit" name="serendipity[action]" value="Logout >" /><div class="loginform_link_entry"><a href="http://blog.foo.com/serendipity_admin.php?serendipity[adminModule]=entries&serendipity[adminAction]=new">New Entry</a></div><div class="loginform_link_media"><a href="http://blog.foo.com/serendipity_admin.php?serendipity[adminModule]=media&serendipity[adminAction]=addSelect">Add media</a></div></form><div class="serendipity_edit_nugget"><a href="/serendipity_admin.php?serendipity[adminModule]=plugins&serendipity[plugin_to_conf]=serendipity_plugin_loginform:ed6cba4bdbb114c8280ba8f35a5fe1bb">Edit</a></div></div>
so i really wonder about the logout part

Code: Select all

<input type="submit" name="serendipity[action]" value="Logout >" />
how is it supposed to work?

thanks for help

Re: logout in frontpage

Posted: Thu Mar 25, 2010 10:49 am
by garvinhicking
Hi!

Did you also install the event-part of the plugin, "serendipity_event_loginform"? It is usually automatically downloaded when you install the sidebar plugin, so check if it's listed in your event plugin section as well. The logout must be performed by an event plugin...

HTH,
Garvin

Re: logout in frontpage

Posted: Thu Mar 25, 2010 5:57 pm
by rafi
ah i didnt downloaded it, now its done, put on the serverr and activated in the backend. works great now :-D thanks for this fast support!