| View previous topic :: View next topic |
| Author |
Message |
vinsp
Joined: 24 Jul 2008 Posts: 7
|
Posted: Wed Aug 06, 2008 6:20 pm Post subject: Logout doesn't appear |
|
|
Hi,
I am using the remove login from the menu as described in this forum. I use a custom login page. All is working just fine. However, after logging in the logut > username doesn't appear in the bottom menu. The only way to log out is to close the page.
Thank you for your help |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Wed Aug 06, 2008 6:24 pm Post subject: |
|
|
Hi,
Removing the login link also removes the logout link. I assume you only want to remove the log in link? |
|
| Back to top |
|
 |
vinsp
Joined: 24 Jul 2008 Posts: 7
|
Posted: Wed Aug 06, 2008 7:11 pm Post subject: Logout doesn't appear |
|
|
| Yes, that is correct. What I am trying to accomplish is not to present the login link to a public viewed calendar but have our calendar users go through the login.php page. As I mentioned ealier, all is working fine except the logged in user has to exit the page to logout. Any way around this? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Wed Aug 06, 2008 7:27 pm Post subject: |
|
|
Hi,
Yes, this is possible with some code hacking. Restore index.php from a backup or undo the change that you had done to remove the login link. Then change line 555 from this:
} else {
.. to this ..
} else if(false) {
Let me know if you have any questions / trouble. |
|
| Back to top |
|
 |
vinsp
Joined: 24 Jul 2008 Posts: 7
|
Posted: Thu Aug 07, 2008 1:51 pm Post subject: Logout doesn't appear |
|
|
Hi,
The code you supplied actually put the login link back on the public view calendar. What I am trying to do is basically force all calendar admins to use a login page that directs them to the index.php and not have the general public see the login link.
I was successful in removing the login link from the public view calendars and all is working great using the login.php approach, except for once a calendar admin logs in they do not see a logout link.
Is there anyway to accomplish this?
In the same area around line 555 can the users level of access be checked? i.e. if not "normal" or admin do not show links?
Thank you for your help |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon Aug 11, 2008 6:35 pm Post subject: |
|
|
Hi,
Could you please e-mail me your index.php in reference to this post? ian@extros... |
|
| Back to top |
|
 |
adr894
Joined: 24 Sep 2008 Posts: 5
|
Posted: Sat Oct 18, 2008 4:32 am Post subject: |
|
|
Hi Ian,
In my index.php file, I found this on line 554. I made the suggested change and only got a blank screen. I too would like to remove the 'log in' option and have the 'log out' option appear if I'm logged in...
Thanks for all your support
P.S. Is there another page in the forums describing how to customize the actual login.php page? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Sat Oct 18, 2008 3:46 pm Post subject: |
|
|
Hi,
Please also send me your index.php file.
Customizing the login screen is described here.
Let me know if you have any questions / trouble. |
|
| Back to top |
|
 |
adr894
Joined: 24 Sep 2008 Posts: 5
|
Posted: Sat Oct 18, 2008 5:29 pm Post subject: |
|
|
Ian,
THANKS again...
Being able to change the login screen is fine for me...I don't need to remove the login option any longer..
Thanks again as always,
Adam |
|
| Back to top |
|
 |
|