Loading...
 
Features / Usability

Features / Usability


Re: Re: Login Box - Display on Edit

posts: 3665 United States

> 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:

>
Copy to clipboard
> {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:

Copy to clipboard
... {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
>

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting