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)Switching (unwantedly) btwn calendar and calendar_admin...
Pages: [1]   Go Down
Print
Author Topic: Switching (unwantedly) btwn calendar and calendar_admin...  (Read 955 times)
0 Members and 1 Guest are viewing this topic.
MOST
Guest
« on: February 15, 2007, 09:48:00 PM »

Hi -

I'm hoping that someone can help.  I've got my calendar set up and fairly customized but am now finding that when I click on anything on the default calendar, it tries to go to calendar_admin and asks for a password.  What have I done?  I can't go to next month, next year, today, search, etc.  Here's a link to my calendar:  http://www.milesofsmilestraining.com/cgi/calendar.cgi   If anyone can offer suggestions or point me to a thread where this is discussed, I would be most grateful!

Thanks in advance!

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: February 15, 2007, 09:56:00 PM »

All the links appear to point to the administration script.

Did you make any manual changes to the config.txt file? That is where the urls for the calendar and calendar_admin files are stored.

Dan O.

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

Logged
MOST
Guest
« Reply #2 on: February 15, 2007, 10:23:00 PM »

No, that is one file I did not touch.  I did change the 3 pl files based on other hints out here, i.e. base dir and some code to replace line 322.  Here's what's in the config.txt file on my server:
button-background-color=#EEEEEE
table-border-color=#008080
calendar_url=http://www.milesofsmilestraining.com/cgi/calendar.cgi
table-background-color=#CCCCCC
title-bar-background-color=#008080
setup_wizard_completed_steps=3
user-message-font-color=#FF0000
setup_wizard_total_steps=3
admin_template_dir=English
page-background-color=#B29D78
highlight-background-color=#EEEEEE
button-text-color=#004040
calendar_admin_url=http://www.milesofsmilestraining.com/cgi/calendar_admin.cgi
title-bar-font-color=#FFFFFF
default_calendar=default

The the url lines look ok to me. The file resident on my computer does not have an address in those lines.  Can you think of anything else that may cause this?  

Thanks!

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

[This message has been edited by MOST (edited February 15, 2007).]

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: February 16, 2007, 02:07:00 AM »

** Can you think of anything else that may cause this?  **

No I can't. That file is where the script derives its URLs from.

**  and some code to replace line 322. **

From what to what??

Did you make any changes to the default.html template file?

Dan O.

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

Logged
MOST
Guest
« Reply #4 on: February 16, 2007, 09:13:00 AM »

I didn't change the default.html file.  The change I made to line 322 (or thereabouts) is this: $Template::CGI_URL = $AdminConfig->get("calendar_url") | | $ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};
to this:  $Template::CGI_URL = $AdminConfig->get("calendar_admin_url") | | $ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};
In looking at that, I suspected that it was causing the problem so I changed it back.  Lo and behold, it works!  I do have one more question (for now ;-) ), when click on search, I can't see the black text that says "Title" "Description" "Between" because the background color of my page is navy.  Can you tell me if it's possible to change that particular text to white and, if so, where do I make that change?  This is AWESOME!  Thanks for all of your help Dan.

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

Logged
MOST
Guest
« Reply #5 on: February 16, 2007, 09:50:00 AM »

I think I'm set, I changed the color of plain text to white and it seems to be doing what I want.  I think I'm good for now, thanks for your help Dan!

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #6 on: February 16, 2007, 11:28:00 AM »

** $Template::CGI_URL = $AdminConfig->get("calendar_admin_url")  **

That would only work in the administration script hence the ->get("calendar_admin_url") part of it.

Dan O.

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

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