Advertisement:

Author Topic: [SMF 2.0 Beta 3 Public] Calender items on boardindex  (Read 8863 times)

Offline Han

  • Full Member
  • ***
  • Posts: 511
  • Gender: Female
    • PC-Navigator Forum
[SMF 2.0 Beta 3 Public] Calender items on boardindex
« on: March 19, 2008, 12:35:02 PM »
I've updated my forums from SMF 1.14 to SMF2.0 beta 3. My board uses the dutch languagefiles. (for the jpg below I've set my board temporary to english)
All went well during the update, except for one little problem. I can't figure out, why this goes wrong. It's about the calender settings. It must be a local problem and no bug because on my testforums all works fine.   I don't use mods.

I don't want holidays and birthdays on the boardindex, just on the calender. The setting I have is okay but holidays and birthdays still show on my boardindex.  "Max days in advance on board index" works fine but the setting only to calender does not work.

I've uploaded the files below again to try and correct the problem, but with no succes.
- sources\Calendar.php
- sources\ManageCalendar.php
- themes\default\BoardIndex.template.php

Are there more files involved use this function?

PS) In the attached jpg you can see the setting I have for my calender.
« Last Edit: March 19, 2008, 09:43:22 PM by Han »

Offline Gary

  • Sorceress's Knight
  • Customizer
  • SMF Super Hero
  • *
  • Posts: 18,128
  • Gender: Male
  • So this is the luck of the draw...
    • Gazmanafc on Facebook
    • garygadsdon on LinkedIn
    • @Gazmanafc on Twitter
    • The Bongo Comics Fan Forum
Re: [SMF 2.0 Beta 3 Public] Calender items on boardindex
« Reply #1 on: March 19, 2008, 12:36:38 PM »
I can confirm this as a bug rather than an issue unique to you. ;) I just tried on my own forum.

Though it's been fixed in SVN. 
« Last Edit: March 19, 2008, 12:38:31 PM by Gazmanafc »
Gary M. Gadsdon
Do NOT PM me unless I say so

War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Offline Han

  • Full Member
  • ***
  • Posts: 511
  • Gender: Female
    • PC-Navigator Forum
Re: [SMF 2.0 Beta 3 Public] Calender items on boardindex
« Reply #2 on: March 19, 2008, 12:40:15 PM »
Hmm, thats weird. Why doesn't it happen then on my testforums???

Ahhhh I know......, the "Max days in advance on board index" does not have any birthdays and holydays for the time I've set there.

What is SVN?
Is there a workaround for the time being??


Can someone move this topic to "Bug Reports" for me, as it is now officially a bug.
« Last Edit: March 19, 2008, 12:51:51 PM by Han »

Offline karlbenson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,629
  • Gender: Male
    • Criminal Brief UK
Re: [SMF 2.0 Beta 3 Public] Calender items on boardindex
« Reply #3 on: March 19, 2008, 01:57:13 PM »
It has been fixed by the devs for the development version. Which means it will be fixed in the next beta.

I'm not sure whether its possible to dig out the fix.

Offline Han

  • Full Member
  • ***
  • Posts: 511
  • Gender: Female
    • PC-Navigator Forum
Re: [SMF 2.0 Beta 3 Public] Calender items on boardindex
« Reply #4 on: March 19, 2008, 05:08:20 PM »
It would be great if there could be a fix before the next beta arrived but when that's not possible..., okay I will wait for the next beta.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: [SMF 2.0 Beta 3 Public] Calender items on boardindex
« Reply #5 on: March 19, 2008, 06:42:38 PM »
In Subs-Calendar.php

Code: (find) [Select]
if (empty($params[\'include_holidays\']))
$return_data[\'calendar_holidays\'] = array();
if (empty($params[\'include_birthdays\']))
$return_data[\'calendar_birthdays\'] = array();
if (empty($params[\'include_events\']))
$return_data[\'calendar_events\'] = array();

Code: (replace) [Select]
if (empty($params[0][\'include_holidays\']))
$cache_block[\'data\'][\'calendar_holidays\'] = array();
if (empty($params[0][\'include_birthdays\']))
$cache_block[\'data\'][\'calendar_birthdays\'] = array();
if (empty($params[0][\'include_events\']))
$cache_block[\'data\'][\'calendar_events\'] = array();
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Offline Han

  • Full Member
  • ***
  • Posts: 511
  • Gender: Female
    • PC-Navigator Forum
Re: [SMF 2.0 Beta 3 Public] Calender items on boardindex
« Reply #6 on: March 19, 2008, 09:43:03 PM »
Tnx Jay. Works like a charm again  :)