Events on EzPortal not completely working

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
alister
Beiträge: 15
Registriert: Do 09.Sep, 2004 16:38

Events on EzPortal not completely working

Beitrag von alister »

Hello,

I recently got the Events From Calendar Lite mod installed and working on my EzPortal/CalLite 1.4.4/phpBB 2.0.10 site. In the ACP, when I select "next X events" it works fine and shows the specified number of events on the portal. However, when I select "events the next X Days" it doesn't show any events at all. I checked the code and can't see where I messed up. Any comments would be greatly appreciated. Thanks!

ps- How do I get my events to show up in the great format shown here on the OXPUS portal?
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I couldn't gibe you the code, because this is based on the calpro, not on the callite. Sorry...

To your problem:
Open your portal.php, find

Code: Alles auswählen

		$event_span_date = strtotime("$year-$month-$day 23:59:59 + $cal_days days"); 
		$event_span_date = create_date("Y", $event_span_date, $userdata['user_timezone']).'-'.create_date("m", $event_span_date, $userdata['user_timezone']).'-'.create_date("j", $event_span_date, $userdata['user_timezone']).' 23:59:59'; 
		$sql_span = " AND stamp <= '$event_span_date'";
and add before these lines

Code: Alles auswählen

		$cal_days = $cal_config['number_events'];
This will fix the bug.

I'll update my mod, too, so thanks for this hint.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
alister
Beiträge: 15
Registriert: Do 09.Sep, 2004 16:38

Beitrag von alister »

Brilliant! That worked perfectly. Thanks so much.

I found a copy of your portal_body in another post that has helped me rearrange this box as well.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Nice to hear.
But pay attention to change it for the callite. I mean there are some differences, may be...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
alister
Beiträge: 15
Registriert: Do 09.Sep, 2004 16:38

Beitrag von alister »

I thought I had it completely. I can't get the Date Format from the ACP to modify the displayed system date (DD.MM.YYYY). I've tried the following without any luck (I wonder if this is a CalLite issue?):

DMjY
D M j Y
D
"D"
"D M j Y"
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

If I know this isn't implemented in the callite...
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
alister
Beiträge: 15
Registriert: Do 09.Sep, 2004 16:38

Beitrag von alister »

Ok. I thought it was fully compatible originally when I read your message,

"Great job Martin, the new release works fine.

And I've now converted my mods for this release:

Birthdays on Calendar lite 1.1.0
Eventlists on Calendar lite 1.5.0
Events on ezPortal from Calendar lite 1.2.0

These mods are only working with the calendar lite 1.4.4!!!

OXPUS"

on http://www.snailsource.com/forum/viewtopic.php?t=2321 last week. Thanks anyways. Oxpus.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

No problem. Have fun with your calendar :)
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten