Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: The Ice Man - syyskuu 03, 2013, 04:37:25 AP

Otsikko: multiple calendars
Kirjoitti: The Ice Man - syyskuu 03, 2013, 04:37:25 AP
I havent leaned how to create a mod in SMF yet (still working on learning to theme), but would it be straight forward, to create a mod that would add dropdown list near the calendar 'post event' button, so peeps could post in different calendars?

Assuming that there is a calendar class, could I not start another instance and go from there, or is inheritance an issue? (just thinking out load)

I'm part of a gaming forum and we have a need for separate calendars for each console, ie: xbox360, PS3, PC etc


Any advice on how this could be done?
Otsikko: Re: multiple calendars
Kirjoitti: Arantor - syyskuu 03, 2013, 09:56:22 AP
There isn't a calendar class. Even if there were, that still wouldn't make any difference because the problem isn't the coding - it's the fact that the database has no structure to hold multiple calendars.

Also note that even if there were a class, inheriting would allow you to duplicate and modify behaviour, but inheritance wouldn't simply magically allow you to change all its behaviour without a rewrite anyway.