It might well be. But still I'd like toPaul wrote: Fri Jan 18, 2019 5:24 pm Composer dependencies are autoloaded and will be included only once.
- keep concerns separated
- avoid code duplication
- provide flexibility
- work less
It might well be. But still I'd like toPaul wrote: Fri Jan 18, 2019 5:24 pm Composer dependencies are autoloaded and will be included only once.
Can you point me to the rule? Also note, the requirement for this extension is the PHP calendar fundtions to be enabled. The other extension is just a solution for people that can not get PHP compiled with --enable-calendar on their server.Paul wrote: Fri Jan 18, 2019 8:41 pm Your current solution will also probably not make it past validation once you submit it to the cdb.
The Calendar Inline View extension provides a local view of 5 to 16 days on theAlex Grigoras wrote: Fri Sep 28, 2018 6:44 am Good extension !
Try to make an update in the future to show on the first page the events that we created with the calendar:
Something like this: https://imgur.com/dJw66yc
index
and/or viewforum
, viewtopic
and posting
pages (configurable).No, this is actually the right topic. Because in this extension the actual fetching of the data is happening. I'll have a look into it.tk6904 wrote: Tue Jul 02, 2019 2:38 pm I installed this extension today. I have realized sticky type topics and announcement type topics don't appear in the calendar. Is there a way to appear those?
Sorry, wrong topic.
service/repo.php
the topics get limited to POST_NORMAL
and POST_STICKY
. (So stickies are actually shown)Code: Select all
$sql = 'select t.topic_id, t.forum_id, t.topic_title,
t.' . cnst::COLUMN_START . ' as start_jd, t.' . cnst::COLUMN_END . ' as end_jd
from ' . $this->topics_table . ' t
where (t.' . cnst::COLUMN_START . ' <= ' . $end_jd . '
and t.' . cnst::COLUMN_END . ' >= ' . $start_jd . ')
and ' . $this->db->sql_in_set('t.forum_id', $forum_ids, false, true) . '
and ' . $this->content_visibility->get_forums_visibility_sql('topic', $forum_ids, 't.') . '
and ' . $this->db->sql_in_set('t.topic_type', [POST_NORMAL, POST_STICKY]) . '
order by t.' . cnst::COLUMN_START;
Thank you for the prompt action! I have installed the new version and confirmed that it starts working properlymartti wrote: Tue Jul 02, 2019 4:07 pm So from line 95 inservice/repo.php
the topics get limited toPOST_NORMAL
andPOST_STICKY
. (So stickies are actually shown)
Probably this line comes from the dark past of the development of the calendar which is based on my own mod from 2009. But I see no reason why ALL topics from a forum can't be shown including announcements and even global topics. So I will remove the line and will update to a new version quickly.Code: Select all
$sql = 'select t.topic_id, t.forum_id, t.topic_title, t.' . cnst::COLUMN_START . ' as start_jd, t.' . cnst::COLUMN_END . ' as end_jd from ' . $this->topics_table . ' t where (t.' . cnst::COLUMN_START . ' <= ' . $end_jd . ' and t.' . cnst::COLUMN_END . ' >= ' . $start_jd . ') and ' . $this->db->sql_in_set('t.forum_id', $forum_ids, false, true) . ' and ' . $this->content_visibility->get_forums_visibility_sql('topic', $forum_ids, 't.') . ' and ' . $this->db->sql_in_set('t.topic_type', [POST_NORMAL, POST_STICKY]) . ' order by t.' . cnst::COLUMN_START;
What is the error message more specific (line, file)? It could also be the upload didn't happen correct? Very little changed in this version.Holger wrote: Wed Jul 03, 2019 6:38 am Hello Martti, thank you for your hard work, but after the update I get Server Error 500 when trying to enter the calendar.
When going back to the previous version everything works again.
Maybe you didn't follow the procedure?Holger wrote: Wed Jul 03, 2019 6:54 am I only get a white blank page and Internal Servererror 500.
Aaaaah, after deleting the cache everything is ok!
Sorry!