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)Skip "Choose Calendar" Screen
Pages: [1]   Go Down
Print
Author Topic: Skip "Choose Calendar" Screen  (Read 306 times)
0 Members and 1 Guest are viewing this topic.
TK
Guest
« on: December 31, 2003, 09:50:00 PM »

Hi,
I found one post asking this previously but it had no replies...is there any way to skip the choose calendar screen?  For instance, on my site, I know I will have no more than one calendar, and I'd like users to have as few pages to go through as possible when adding an event.

Thanks,
Tom

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: January 16, 2004, 06:50:00 PM »

The only time a user should get to the 'Select Calendar' screen is if they were logging in using the administration section and not from the plain calendar.

If you wanted the administration section to skip the 'Select Calendar' screen, you'd have to modify the form fields on the administration's login.html template (there's a separate login.html template for logging in from the calendar BTW).

First you need to change the line:

<INPUT TYPE="hidden" NAME="template" VALUE="select_calendar.html">

to

<INPUT TYPE="hidden" NAME="template" VALUE="main.html">

Then you'd need to add another hidden form field:

<INPUT TYPE="hidden" NAME="calendar" VALUE="default">

so the administration script would know which calendar was being logged into.

Dan O.


[This message has been edited by DanO (edited January 17, 2004).]

Logged
DW
Guest
« Reply #2 on: January 29, 2004, 12:25:00 AM »

I am pretty new to this but do have a question concerning the 'Managing Calendars' option. I have a few different calendars and with about the same number of users. I want the users to be able to add & edit events one their calendars but I would prefer that they not see all of the calendars that are setup. Is there a way to 'hide' the 'Change Calendars' option? Would this be the same fix as shown above or something different?
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: January 29, 2004, 02:08:00 PM »

** Is there a way to 'hide' the 'Change Calendars' option? **

Well since that option is in a number of places (2 menus and at the top of all administration pages), it would require editing a number of files. You would also need to do it or conditionally or else no one (not even the administrator) would be able to navigate to the various calendars.

Maybe the 'Login Redirect' plug-in available from the Unofficial CalendarScript - Mods and Plugins site would help to acheive your goal?

** I would prefer that they not see all of the calendars that are setup. **

That can be done fairly easily using the hack at the following link but will run into problems if any user only has permissions to view a single calendar.

LINK > Problem filtering select_calendar.html

Dan O.

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

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