ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old May 29th, 2006, 01:53 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #2  
Old June 7th, 2006, 03:02 PM
s001dxp s001dxp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 s001dxp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > Bypass login and 2 versions of the calendar?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT