|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Bypass login and 2 versions of the calendar?
Hi. I am a php newbie but I am impressed by the Calendar and would love to use it on a site that I am developing.
PHP Version 4.3.10-2 Mysql Version: 3.23.56 I've read through the forum and have tried many of the suggestions but can't seem to get things working the way I want them to; Ideally I want to run 2 version of the calendar - 1 as part of a backend admin system, which already has a separate login system, where the admins can add the events and manage them, and a 2nd version that is part of the public website and that just displays the events with no login required. Both versions need to be wrapped in 2 different templates. I've tried to bypass with the admin login with the code suggested in "Admin Autologin" post (http://codewalkers.com/forum/index.php?action=displaythread&forum=ltwcalendar&id=365&realm=default) and I'm not sure if I am doing it right - how much of the ltwAuth code do I need to leave in place? I am getting error like: Cannot modify header information - headers already sent by (output started at /var/www/.../calendar/index.php:9) in ltw_classes.php on line 145 And: Call to undefined function: checklogin() in ltwdisplaymonth.php on line 285 in the admin version. I can't seem to get the admin functionality working without a login and haven't been able to add any events. The public version seems to be working, but I have found that I have had to create a duplicate set of files like the config, header, footer and displaymonth etc. pages. I ideally need to put the core calendar code under a directory like "/admin/calendar/private/" and also just have the public calendar in a directory off the /www/ root. But I am not sure whether I am ovecomplicating the issue here. Has anyone else tried to do something similar and succeded? Any help would be much appreciated. Jay |
|
#2
|
|||
|
|||
|
RE: Bypass login and 2 versions of the calendar?
I'm doing what you want with my site. This is what I did. I put the a copy of the calendar and the private folder in my admin folder and the public folder. In the public folder--I removed admin bar from the bottom of the calendar (but kept the PDF link). In the admin folder, I disabled all of the login features, so that when a user logs in to admin my site, they can just use the admin password I assigned without dealing with the log-in features that come with the calendar.
Everything I add to the admin calendar is seen on the public calendar because they share the same database. You are getting the header sent twice: The calendar comes with a header and footer built in--if you are adding a header of your own, then that is the reason you are getting the header error. dlporter at uhs-dayton dot com: email me if this didn't answer your questions, I'll be glad to help. If you want, I an send you my modified code. Port |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > Bypass login and 2 versions of the calendar? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|