Coming soon ...

MediaWizards Snitz™ Forums
https://www.reddick.co.uk/mvc/Topic/Posts/571?pagenum=1
22 Oct 2025, 21:46

Topic


HuwR
Coming soon ...
18 Feb 2017, 16:57


 

Replies ...


philsbbs
18 Feb 2017, 17:50


thumbsUp
philsbbs
18 Feb 2017, 17:52


Trust we be able to put week start day i.e Monday and recurring events. different views i.e week,month, year.
HuwR
18 Feb 2017, 18:06


smile now that would be telling
HuwR
19 Feb 2017, 10:59









HuwR
19 Feb 2017, 11:29


HuwR
20 Feb 2017, 08:56


you can't post any events yet, but you can view the calendar http://www.reddick.co.uk/Mvc/calendar
HuwR
20 Feb 2017, 10:30


This one has really pushed the limits smile The biggest problem with .Net is that you cant just add fields to a table and edit one or two queries to get the functionality you want. Sure, you can add a new column to any of the base tables, but the base forum code will have no idea it exists and will not be able to interrogate that value in any way, so adding mods that require integrating with base code is very difficult. For example, how do you set the value of F_ALLOWEVENTS when saving a Forum? Simple answer, you can't smile, well not easily.
philsbbs
20 Feb 2017, 10:33


Love it so far, even has my birthday in it 16.3 (hint hint) lol
HuwR
20 Feb 2017, 12:08


Well, I'm not entirely sure I can make it work
HuwR
21 Feb 2017, 12:14


Currently hit a bit of a brick wall with this one sad Calendar itself works great, the problem is how to add and then subsequently edit events when

1. There is no record of how a recurring event was defined, or even if it was a recurring event
2. and most importantly, topics know nothing about events neither does the forum.
philsbbs
21 Feb 2017, 13:16


I have calendar mod installed at www.midland.philsbbs.com I give you ftp if you want to look at how it was done.
HuwR
21 Feb 2017, 15:13


I have the code, it basically doesn't manage them properly, it doesn't know for example of you created a recurring item on the first day of every month, it just creates them and then lets you delete them, you can't for example change it to recur on a Tuesday instead of a Wednesday, not very well thought out.
However that isn't really the problem, without rewriting and recompiling the code there is no way to link them together, so if you deleted a topic, it has no way of cleaning up any corresponding events. Plus the event setting for a topic have to be posted entirely separately from the topic, so can not even appear on the same form. Currently I have the event settings appear in the right hand column, its form is then posted using javascript when the topic post returns the topicid, but it looks ugly, just not much can be done, you can't nest one form in another.
philsbbs
21 Feb 2017, 18:14


damn my birthday has gone from the calendar I never get any presents now grumpy
HuwR
21 Feb 2017, 18:16


Originally posted by philsbbs
damn my birthday has gone from the calendar I never get any presents now grumpy
I can see your birthday
HuwR
21 Feb 2017, 18:25


Adding an event with a topic is working ok, just need to tweak the recurring event code if you supply an end date. Just need to figure out how to allow editing. I may add a couple of extra columns to the events table to store the recurring settings so that you can change them rather than having to delete them and then re add.
I am going to enable the mod here shortly, so you should see a menu option to view the calendar, and if you post a new topic in the Test Forum, you should get an event panel at the top of the right hand column. If you provide at least a start date it will post an event. DO NOT ATTEMPT TO EDIT THE TOPIC ONCE POSTED (it will currently try to re-add the event so will probably explode on you) bigsmile

Deleting the topic will remove the evnt from the calendar, but it will not delete the record from the db currently, am still thinking on that, may need to add some sort of related table for MODS to register in if they have data dependant on base tables. The base code can then look in that to decide if it needs to delete other data.
HuwR
21 Feb 2017, 18:35


now enabled here.
DO NOT ATTEMPT TO EDIT A TOPIC ONCE POSTED WITH AN EVENT
HuwR
21 Feb 2017, 18:38


you also get a nice pretty calendar icon if a topic has an event
HuwR
22 Feb 2017, 08:54


Oops, just realised you can't post events bigsmile will sort later
HuwR
23 Feb 2017, 09:53


Editing events almost completed, currently any change will result in existing events being deleted and new events created, this will eventually allow editing of individula items in a recurring event.
Any way feel free to have a play smile

HuwR
23 Feb 2017, 19:32


editing should now be working for individual dates in a recurring event, so you can change start/end of an individual recurring event if you wish.
HuwR
23 Feb 2017, 19:32


I'll post the MOD and instructions when I get back from my holiday
philsbbs
24 Feb 2017, 04:26


Holiday, you think you deserve a break after all this ??? Of course you do have a good break.
© 2016-2025 Snitz™ Forums MVC