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
Calendar Script CommunityEverything ElseGeneral Use (Moderators: scott, DanO, Marty)Calendar Logon take me to another Calendar
Pages: [1]   Go Down
Print
Author Topic: Calendar Logon take me to another Calendar  (Read 489 times)
0 Members and 1 Guest are viewing this topic.
LeslieW
New Member
*

Karma: 0
Offline Offline

Posts: 0

Network Administrator


WWW
« on: December 01, 2004, 10:36:00 AM »

When I open a calendar click the Logon button and log in, I am redirected to another calendar instead of the calendar I was trying to log on to.

Is there somewhere I can edit to have the Logon go the the calendar I am trying to log on to?

Thanks for any help!!!!

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 01, 2004, 12:08:00 PM »

As far as I'm aware, you should be logging into the same calendar that you were on when you clicked the link.

What version of CalendarScript are you using?

Can you supply a link and a password and user name for us to try with?

Dan O.

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

Logged
LeslieW
New Member
*

Karma: 0
Offline Offline

Posts: 0

Network Administrator


WWW
« Reply #2 on: December 01, 2004, 12:32:00 PM »

Thank you for the quick response...I can't supply you a link to the calendar as it is on our Intranet.  

I have version is 3.2.  I have multiple calendars with links to those calendars on a web page.  Only one calendar is not logging on correctly.  It somehow defaults back to the original calendar after you log in.  I have tried deleting the calendar and recreating it but it is still doing the same thing.  

Not sure this is making any sense so here is the picture:

Opened the Floater calendar and clicked Logon.  When you submit the login it takes you to the Mortgage Calendar instead of the Floater.  You can go back to the Floater calendar and you will be logged on.  It is more of an inconvenience than anything else.  

Any help would be greatly appreciated.  =o)

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

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 01, 2004, 07:47:00 PM »

Look at the source code of the login screen's page then at the form values. There should be a hidden one stating which calendar is being logged into.

Dan O.

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

Logged
LeslieW
New Member
*

Karma: 0
Offline Offline

Posts: 0

Network Administrator


WWW
« Reply #4 on: April 12, 2005, 08:28:00 AM »

I have not had the chance to get back to this until now.  I want to thank you for your help Dan O.   =o)

Well I looked at the source code for the login and found that the calender was not pointed to anything so it was defaulting back to Default calendar.  How do I change this line of code?  I can't find the code.

Thanks again for all the help!!!!

Leslie

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

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: April 12, 2005, 02:49:00 PM »

Which template are you looking at?

What is the URL that template is at?

Dan O.

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

Logged
LeslieW
New Member
*

Karma: 0
Offline Offline

Posts: 0

Network Administrator


WWW
« Reply #6 on: April 12, 2005, 02:53:00 PM »

Here is the URL
http://128.2.1.16/cgi-bin-cal/calendar.pl?calendar=floater&template=login.html

The template is the Login.html

Thanks,
Leslie

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

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: April 12, 2005, 08:24:00 PM »

** Here is the URL **

I just get a can not find server error at that address.

** The template is the Login.html **

The template apprears to be "login.html" (note the lower case "L").

It's got to be something with the following line from that template but I can't tell what's happening without being able to see what code is in that template and without a proper link that is not possible.

<INPUT TYPE="hidden" NAME="calendar" VALUE="<%CALENDAR KEY%>">

Dan O.

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

Logged
LeslieW
New Member
*

Karma: 0
Offline Offline

Posts: 0

Network Administrator


WWW
« Reply #8 on: April 13, 2005, 08:23:00 AM »

The web site is on a local Intranet.  The line of code you refer to is correct.  I need to change that line of code, but I can't figure out where it resides.  I can't find that particular login page to change the code...

Works for Log in for Training Calendar:
<INPUT TYPE="hidden" NAME="calendar" VALUE="Training">

Does not work for log in for Floater Calendar:
<INPUT TYPE="hidden" NAME="calendar" VALUE="">

I know it is because the value is "" and I need to change this to Floater.  I just can't find the login page to change the code.

I hope this make sense.

Thanks again for all of your help!!

Leslie

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #9 on: April 13, 2005, 06:49:00 PM »

** I just can't find the login page to change the code. **

The file is named "login.html" (hence the template=login.html) and is located in the default template directory (unless you're using other than the default templates).

Dan O.

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

Logged
LeslieW
New Member
*

Karma: 0
Offline Offline

Posts: 0

Network Administrator


WWW
« Reply #10 on: April 15, 2005, 02:41:00 PM »

In the login.html this is the line of code...

<INPUT TYPE="hidden" NAME="calendar" VALUE="<%CALENDAR KEY%>">

Where do I change the <%CALENDAR KEY%>?

I know the url is calling the perl script and that script pulls information in from whichever calendar is choosen to be logged into.  I'm just not sure where (or even if I can) change this one calendar that refuses to go the the correct calendar when logging in.

Thanks,
Leslie

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #11 on: April 16, 2005, 12:35:00 PM »

** Where do I change the <%CALENDAR KEY%>? **

The value for the <%CALENDAR KEY%> variable is set by the script dynamically. You shouldn't have to change that variable assignment nor the file at all but if you always want the user to be forwarded to the same calendar, than changing the <%CALENDAR KEY%> tag in that template to the calendar's key you want the user to end up at should work.

Otherwise you'll have to figure out why the <%CALENDAR KEY%> tag isn't always using the key value of the calendar it is passed. I myself can't understand how your previous statement (shown below) is possible.  

quote:
Works for Log in for Training Calendar:
<INPUT TYPE="hidden" NAME="calendar" VALUE="Training">

Does not work for log in for Floater Calendar:
<INPUT TYPE="hidden" NAME="calendar" VALUE="">


Sorry.

Dan O.

PS. I don't see how you get "Training" in the line <INPUT TYPE="hidden" NAME="calendar" VALUE="Training">. AFAIK all calendar keys should be lower case only (ie. "training").

[This message has been edited by DanO (edited April 16, 2005).]

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