Author |
Topic  |
Morpheus73
Average Member
  
Denmark
597 Posts |
Posted - 14 January 2001 : 08:35:46
|
Would it be possible to implement a feature that personalize the events in the calender?
I´m thinking of a system where users only see their own events, moderators events only show up in the sections they have control over and admin can post events in all calendars?
Is this possible? - would be cool for our school where independent teachers/classes/parents could see the events for their child/classes and the whole school...
MPH73
|
 |
|
tteal
Junior Member
 
USA
438 Posts |
Posted - 14 January 2001 : 09:37:48
|
quote:
Would it be possible to implement a feature that personalize the events in the calender?
I´m thinking of a system where users only see their own events, moderators events only show up in the sections they have control over and admin can post events in all calendars?
Is this possible? - would be cool for our school where independent teachers/classes/parents could see the events for their child/classes and the whole school...
MPH73
If I get some time <fingers crossed>, I'll try to do some work on this. I want to do the same thing and basically either make the persons calendar private, or global. I think all it would require is a bit of on/off as to whether the event is private/public but have to look at it in more granular detail.
Cheers, Tim
http://www.free-guestbook.com |
 |
|
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 14 January 2001 : 14:54:09
|
quote:
Would it be possible to implement a feature that personalize the events in the calender?
I´m thinking of a system where users only see their own events, moderators events only show up in the sections they have control over and admin can post events in all calendars?
Yeah a calendar with personalize events is totally possible. One way is to add another field to the events table for owner member id or something and change select statements to only pull out events for the owner of the event. There are also other ways to do this.
This was not the specification that I had in mind originally. I don't have plans to implement this at this point though.
Also a calendar where only the moderator and admins can add/edit/delete and everyone else can just see is not hard to do with the existing schema. Just change some of the "if mlev " stuff to "if mlev >= 3".
quote:
Is this possible? - would be cool for our school where independent teachers/classes/parents could see the events for their child/classes and the whole school...
Would each class have it's own forum? If so this already works.
If this is not the case, then an easy way of handling this is to maybe add another field to the events table , something like Class_ID the corresponds to a Class in Classes table. Then change the selects statements to select only the the events for appropiate class.
- Alan alan@calvsa.net www.calvsa.net
|
 |
|
frankie
Junior Member
 
Vatican City
304 Posts |
Posted - 15 January 2001 : 00:29:23
|
AznKnight, thanks for your help and comments. As for you richard I did e-mail the events.asp file to you.
ô¿~ |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 15 January 2001 : 00:37:41
|
thanks  |
 |
|
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 15 January 2001 : 03:59:25
|
I was playing with the events calendar some more today.
I've made changes so that it does not display the events of users who have been deleted. Mostly changed the sql select statements to only select those events that have corresponding member_id in the members table.
Also fix the bug where it got the author name wrong when two different people post.
I've updated the events_mod.zip file.
If you've already have the snitz and want to retain the styles that you've customized just copy the styles back over to this new events.asp page.
- Alan
|
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 15 January 2001 : 04:54:05
|
Alan, one other thing that I haven't gotten to work right.
How about using the Forum's Time Adjust so that the days won't change too soon. I checked tonight, and since the server my forum was on is in Florida, the time difference from me is 1 hour. The calendar showed it was Monday 1 hour early. I tried changing some of the date stuff, but wasn't able to get it to work. There are alot of different date functions, just haven't found the right one yet I guess. |
 |
|
eernstbmi
Junior Member
 
Denmark
113 Posts |
Posted - 15 January 2001 : 07:00:16
|
I think this is just great . I will stop my own work instantly.
I just have one little request:
I would very much like a little piece of code to put on my regular pages to display UPCOMMING EVENTS in the way it's displayed in the calendar. Just with the date added. And when people clicks the events, then the regular display should pop up.
But I also nother wishes to a future version:
- I looking forward to a change of display mode to i.e. Day View, Week View etc. as known from Outlook.
- Time Support. Start end End time optional on all events.
Best regards, Erik P. Ernst |
 |
|
Morpheus73
Average Member
  
Denmark
597 Posts |
Posted - 15 January 2001 : 08:12:39
|
quote:
I think this is just great . I will stop my own work instantly.
I just have one little request:
I would very much like a little piece of code to put on my regular pages to display UPCOMMING EVENTS in the way it's displayed in the calendar. Just with the date added. And when people clicks the events, then the regular display should pop up.
But I also nother wishes to a future version:
- I looking forward to a change of display mode to i.e. Day View, Week View etc. as known from Outlook.
- Time Support. Start end End time optional on all events.
Best regards, Erik P. Ernst
U guys are fast and cool!...thnx!
Now all we need is for the calendar to be able to send email notifications on the day/time of the event!...wow...time of day!...could be included too...
MPH73
|
 |
|
SniperDude
Starting Member
USA
47 Posts |
Posted - 15 January 2001 : 11:45:32
|
hi guys...
Aznknight tis a great mod...
I have been playing with it since you posted it... and made a few changes to the code myself.. One of them is to make the upcoming events actual order of the events.. (note, if you have more than 1 event on a upcoming day you will get the last event of that day then the prior event... I checked your version today and it had same issue)
This was a simple mod... just added a DESC and ASC for Event_id
Now, I am playing with trying to be able to show a week of events starting with the Sunday...
something on the other of this.
Events for the week of Sunday, January 14th 2001.
Monday, blah blah blah Tuesdy, more blah blah ... etc.. Thru Sat...
I have started this modification using code from your subroutine that is designed to display the upcoming events and then some of the event detail code...
Unfortunately I think I made a mess of the code.. and need to start over..
Is there anyone else that thinks something like this will improve this great mod?
-Tim
you can see my "work in progress" at http://www.nwcfonline.com/main/forum/events.asp
Thanks in Advance peoples!
*Graphics Withheld for Adminstrative reasons* -Tim System Admin |
 |
|
davea
New Member

61 Posts |
Posted - 15 January 2001 : 12:23:29
|
quote:
quote:
quote:
I've figured out the error I was getting:
Replace around line 490 in the events.asp file with the one below:
sSql = "Select Member_ID from Forum_Members where M_Name = '" & Request.Cookies(strCookieURL & "User")("Name") & "'"
Thanks.
Cheers, Tim
http://www.free-guestbook.com
Yeah this was made for snitz3.1 sr 4 so the cookies are handled different. If you use an earlier version. Tim's change above should be the only thing.
im getting this one myself, this change does nothing but stop the page loading at all. i am on 3.1 Service Release 2, any fix or do i need to upgrade, and if i do upgrade from there what will i lose on my forum? :)
again is there ANY way around this? i have so many mods installed to upgrade is going to be a pain, but if i do upgrade what files do i need to change? im on 3.1 Service Release 2, what files need to be replaced ?
Edited by - davea on 15 January 2001 12:42:37 |
 |
|
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 15 January 2001 : 13:02:03
|
quote:
I think this is just great . I will stop my own work instantly.
Thanks Erik . You don't need to stop your work though...any improvemtns or idea will be great.
quote:
I just have one little request:
I would very much like a little piece of code to put on my regular pages to display UPCOMMING EVENTS in the way it's displayed in the calendar. Just with the date added. And when people clicks the events, then the regular display should pop up.
Hey good news for you on this. They way i coded EmitUpcomingEvents is modular, so you can put that function on any page. And when someone click the link it will point to the event day in the calendar. Cool huh? Just make sure the My_Conn is available.
quote:
But I also nother wishes to a future version:
- I looking forward to a change of display mode to i.e. Day View, Week View etc. as known from Outlook.
- Time Support. Start end End time optional on all events.
Good Ideas. I like the one about the week view...This can be done with some more coding, unfortunately I don't have much time to work on it. You can already see the day view when you click on an event. No start and end time support though because it'll require two new fields and sqlStr changes. It's possible.
Cheers,
- Alan
|
 |
|
CrAzY
New Member

USA
50 Posts |
Posted - 15 January 2001 : 13:04:00
|
Anyone have this running on SR4 with SQL 7? IF you do, can you please post the code you're using. I'm still having problems with adding an event.
« Nokturnal.Net » Seize The Night
|
 |
|
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 15 January 2001 : 13:06:13
|
quote:
Alan, one other thing that I haven't gotten to work right.
How about using the Forum's Time Adjust so that the days won't change too soon. I checked tonight, and since the server my forum was on is in Florida, the time difference from me is 1 hour. The calendar showed it was Monday 1 hour early. I tried changing some of the date stuff, but wasn't able to get it to work. There are alot of different date functions, just haven't found the right one yet I guess.
Yeah I tried to use the forum date formats using strings but wasn't getting anywhere fast. Synching the dates became confusing. Also some functions didn't work right when put them in database as dateToStr and then later extract them as strToDate then do a date function on that like...formatdatetime(..).
I don't know . *shrugs*
- Alan
|
 |
|
Aznknight
Senior Member
   
USA
1373 Posts |
Posted - 15 January 2001 : 13:08:52
|
quote:
U guys are fast and cool!...thnx!
Now all we need is for the calendar to be able to send email notifications on the day/time of the event!...wow...time of day!...could be included too...
MPH73
Hey the sending email about events is a good idea.
Look for a Re-Release of this mod in the months to come that will have this and time of day 
- Alan
|
 |
|
Topic  |
|