logout in frontpage

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rafi
Regular
Posts: 11
Joined: Wed Mar 24, 2010 7:21 pm

logout in frontpage

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: logout in frontpage

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rafi
Regular
Posts: 11
Joined: Wed Mar 24, 2010 7:21 pm

Re: logout in frontpage

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: logout in frontpage

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rafi
Regular
Posts: 11
Joined: Wed Mar 24, 2010 7:21 pm

Re: logout in frontpage

Post 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!
Post Reply