ElkArte Community

Project Support => Support => Topic started by: Vekseid on March 04, 2016, 04:24:01 am

Title: Calendar on the board index
Post by: Vekseid on March 04, 2016, 04:24:01 am
Is there some way to enable this that I'm missing? >_>
Title: Re: Calendar on the board index
Post by: Spuds on March 04, 2016, 08:39:40 am
It should be a select pulldown under the calendar settings in the ACP ... for Birthdays, Holidays, and Events you have the option to Show them on the calendar, board index, or both.
Title: Re: Calendar on the board index
Post by: meetdilip on March 04, 2016, 08:54:11 am
Have you seen YaBB board ? They have  small calender at the info area.
Title: Re: Calendar on the board index
Post by: Vekseid on March 04, 2016, 07:51:31 pm
@Spuds they don't seem to do anything, at least in development.
Title: Re: Calendar on the board index
Post by: Lou on March 04, 2016, 08:01:20 pm
...never mind. brain fart event happening.  :-[
Title: Re: Calendar on the board index
Post by: Spuds on March 04, 2016, 08:22:08 pm
Not in front of 1.1 right now ... I don't think anything shows up unless there are current or soon events (bday, holiday, event) but I'm not sure about that.
Title: Re: Calendar on the board index
Post by: Vekseid on March 04, 2016, 10:40:47 pm
Had this issue trying to get one of the stock options to show - but it simply refuses to display on the board index, even when I set my birthday to tomorrow.

A bit difficult to parse what's actually going on, too.
Title: Re: Calendar on the board index
Post by: emanuele on March 05, 2016, 03:49:02 am
/me smells bug here. O:-)
Title: Re: Calendar on the board index
Post by: Vekseid on March 05, 2016, 03:57:16 am
Looked like that to me too, but it's hard to be sure with the way some of the code works >_>
Title: Re: Calendar on the board index
Post by: emanuele on March 05, 2016, 05:57:23 am
Let's say it's different. :P
For that particular bug, for example, we know that:
1) it's calendar, so it's not "core", since I tried to decouple several things from the "core" to using addons-like features (hooks, modules, etc.) and the calendar it's one of them,
2) it's in the board index, so it "could" be a module (because modules work in conjunction with controllers).
From that you go to sources/modules/calendar and you find a CalendarBoardIndexModule.class.php, so you have the confirmation that the calendar code interacting directly with the board index is all there in one place.
The easiest problem with modules is that it's not properly turned on (i.e. something is broken in the loading of the file), so you try enable/disable and debugging if the file is included.
I verified the file was included, so far so goo.

From here on it's "common" debugging, this particular case was rather easy, there is just one function and I verified if it was getting the data, I didn't thought at first the problem could be in the cache, so I went to debug the query, but seeing the query was not even run, I realized it was a problem in cache_quick_get not running the function, so there it was.

From my point of view (that is the one of the person that developed the system, so absolutely biased) debug is not so different, you just have to know where the code is. That is one of the few things that changed in the process. ;)

ETA: xref https://github.com/elkarte/Elkarte/issues/2414 <= it has bug fix.