Re: Re: Login Box - Display on Edit
> Hi Rick,
>
> As per your suggestion, I performed the following steps:
> #Removed login_box module.
> #Added the follwing code to the bottom of the tiki-show_page.tpl template:
> {if !$user}<a href="tiki-login.php">Login to edit this page</a>.{/if} >
>
> Now, Registered or Anonymous users cannot view the "Login" box on the first page of the site. To log on to the site, users need to use the tiki-login.php URL.
>
> Is that how it is???
Yes, I thought this is what you wanted, right?
Also, you may want to re-add the login_box module, but only for Registered users (or, you need to add a LOGOUT menu option), otherwise users won't be able to log out of your Tiki.
>
> P.S: I want if a user double-clicks a page without logging on to the site, the "Login" box should appear automatically. After successfully logging on to the site, the users can edit pages.
>
To add a "double-click" to login feature, you'll need to add this code to the header.tpl:
Find the __<body... statement and add:
... {if !$user} inhibited_dblclick="location.href='tiki-login.php';" class="tiki_wiki"{/if} ...
HTH,
-Rick
-My Tiki Blog: Help, Hints, and Hacks
>
>
> Regards,
> Arun Bamania
>