Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Switching calendars  (Read 417 times)
0 Members and 1 Guest are viewing this topic.
skillsadam
Guest
« on: December 11, 2003, 12:22:00 PM »

So, I'm running 5 calendars on one site with anonymous users able to add events. I can add events to one calendar, but if I try to switch calendars, it doesn't work. It thinks I'm still adding to the previous calendar. Is there a workaround for this? Logging out or choosing the "change calendar" option isn't gonna work because I excised the header and menu action to simplify the interface. Is it a cookie controlling this, and if so, can I delete it after using the redirect plug-in (as in, add a line or two the plugin to delete the cookie)?

thanks

adam

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: December 11, 2003, 08:23:00 PM »

** Is it a cookie controlling this **

Which calendar a user is logged into is stored in a session file which is referenced by the value stored in a cookie on the user's computer.

** if I try to switch calendars, it doesn't work **

How exactly are you switching calendars?

Dan O.

------------------

Logged
skillsadam
Guest
« Reply #2 on: December 13, 2003, 12:36:00 PM »

I'm running the 5 calendars in SSI's referencing a default template. So one calendar would be on a page called Gel.shtml and another on 2DGel.shtml. A user goes to a central page, schedule.html and links to the various .shtml pages through that page. I can see it passing the proper query when you add an event (i.e. blabbyblah?calendar=2Dgel) but if you've been in a calendar without closing out your browser, it adds the event to the calendar you were in previously and the autoredirect sends you to that calendar.

adam

ps - your autodirect function works great. Thanks for that plugin.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: December 13, 2003, 12:51:00 PM »

The 'add event' link you're using is on one of these SSI pages and not on a calendar itself?

Posting a link to your actual calendar interface may help others (including myself) to see exactly what is going on and perhaps offer a suggestion.

** your autodirect function works great **

The Redirector plug-in is by TubaDave not myself.

Dan O.

------------------

Logged
skillsadam
Guest
« Reply #4 on: December 13, 2003, 04:34:00 PM »

 http://neuro-proteomics.com/schedule.html

Thanks for your help.

Sorry to TubaDave, didn't mean to give someone else credit for your work.

adam

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #5 on: December 13, 2003, 08:58:00 PM »

I believe the calendar is only set for the user when they view the main calendar page or choose the select calendar option. You can try adding the following to the links to the administration screens to see if that makes a difference.

&command=select_calendar

Other than that, I don't know what you can do except try to use the calendar the way it was designed (not included into another page via SSI) and modify the default.html template file to make it look the way you want.

Dan O.

------------------

Logged
skillsadam
Guest
« Reply #6 on: December 14, 2003, 08:28:00 AM »

Thanks much! I'll give it a try.

adam

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #7 on: December 14, 2003, 12:19:00 PM »

Let us know if it works.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: