Eventlist callite

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
energy00m
Beiträge: 5
Registriert: Fr 24.Sep, 2004 08:05

Eventlist callite

Beitrag von energy00m »

I was wondering if theres a way to make eventslist for callite display a month of events instead of just one day

<german via babelfish>
Ich wunderte mich wenn theres eine Weise, eventslist für callite Anzeige ein Monat von Fällen anstelle von gerade einem Tag zu bilden
<german>
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

For only a month.
Hm.
The whole current month, the remaining of the current month or the next 30 days?
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!
energy00m
Beiträge: 5
Registriert: Fr 24.Sep, 2004 08:05

Beitrag von energy00m »

hmmm actually
for the next 30 days.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Okay, try this:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
cal_liste.php

#
#-----[ FIND ]-----
#
	if (!$total_events)
	{
		$sql = "SELECT count(*) as total_events FROM ".CAL_TABLE" WHERE valid = 'yes'";
		if ($id) {
		   $sql .= " AND id = '$id'";
		   }

#
#-----[ BEFORE, ADD ]-----
#
		$now_and_a_month = $time + (30*86400);
		$ecl_y = data('Y', $now_and_a_month);
		$ecl_m = data('m', $now_and_a_month);
		$ecl_d = data('d', $now_and_a_month);

#
#-----[ FIND ]-----
#
		if ( $display_old == 2 ) { $sql .= " AND eventspan >= "$cl_y-$cl_m-$cl_d 00:00:00" ORDER BY stamp"; }

#
#-----[ REPLACE WITH ]-----
#
		if ( $display_old == 2 ) { $sql .= " AND eventspan >= "$cl_y-$cl_m-$cl_d 00:00:00" AND eventspan <= "$ecl_y-$ecl_m-$ecl_d 23:59:59" ORDER BY stamp"; }


#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM
After this the eventlist for upcoming events will only display events from the next 30 days.
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!
energy00m
Beiträge: 5
Registriert: Fr 24.Sep, 2004 08:05

Beitrag von energy00m »

excellent! im going to imnplement this rigt now . i'll let you know how it comes out ;)

thanx!
and just curious how is my german . heh does babelfish murder the language?

Dank wieder!
energy00m
Beiträge: 5
Registriert: Fr 24.Sep, 2004 08:05

Beitrag von energy00m »

hmmm did you mean cal_lite.php not cal_liste.php ?

cant find that text any where in cal_lite.php
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Oh yes, I mean cal_lite.php.
And the text you must find after you have installed my event lists on it.
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!
energy00m
Beiträge: 5
Registriert: Fr 24.Sep, 2004 08:05

Beitrag von energy00m »

ahhh finally got it installed and i think i got yer mod confused with the todaysevents mod by BurningCyclops. rather kewl mod allows you to display todays events on the front page . what im trying to do is i modify it so it displays 30 days on the front page . but anyhow . thnax for your continued support! and i LOVE the new versions! Excellent Job
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

No problem. Nice to hear you love them.
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