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)user calender view different to admin why?
Pages: [1]   Go Down
Print
Author Topic: user calender view different to admin why?  (Read 324 times)
0 Members and 1 Guest are viewing this topic.
master_shinobi
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: May 20, 2005, 02:04:00 PM »

Hi

when my users sign in as a user they get a full month view and I want them to get weekly view.

through admin sign in Ive set it to start at weekly view but it still only shows monthly when they sign in through the user page

any ideas please  (just want it to be weekly view when they sign in

thanks

john

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: May 20, 2005, 04:17:00 PM »

I don't know why it isn't working for you but you can edit the default.html template and change the bolded line in the following code (found towards the top of the template):

if (!$in{duration} && !$in{range} && !$in{startdate} && !$in{enddate}) {
   $VIEW | |= $_DEFAULT_VIEW;
   }

to

$VIEW | |= "Week";

    This forum software add a space between | | charcaters. Do not just copy and paste the avove line, instead just change the $_DEFAULT_VIEW to "Week" (with the quotes) in your template file.

Dan O.


[This message has been edited by DanO (edited May 20, 2005).]

Logged
master_shinobi
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: May 21, 2005, 09:30:00 AM »

Thanks for that, but sadly it did'nt work just got a blank screen in admin calender. no effect in user signin mode.

any other ideas???

still cant under stand why they both have diffrent views.

changing to the weekly view in the calendar setup only changed it in admin mode. not users????strange

please help

John

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: May 21, 2005, 02:22:00 PM »

** got a blank screen in admin calendar. **

The changes I suggest should have absolutely no affect on anything in the administration section. Those changes were just to the default.html template which is responsible for displaying of the calendar only.

What CalendarScript version are you using???

Dan O.

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

Logged
master_shinobi
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #4 on: May 22, 2005, 04:06:00 PM »

thanks for your help, however I've worked it out myself.

It seems you need to change the login.html the line that mentions month view I changed to week view and !!hay presto
it worked.

that seemed to be the only way to get the calendar in calendar.pl to start with a week view the same as in admin.pl.

hope this helps some one else

thanks

john

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