Eventlist callite
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!
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!
Eventlist callite
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>
<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>
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
For only a month.
Hm.
The whole current month, the remaining of the current month or the next 30 days?
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!
-={ 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!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Okay, try this:
After this the eventlist for upcoming events will only display events from the next 30 days.
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 ]-----
#
# EoMKarsten 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!
-={ 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!
- oxpus
- Administrator
- Beiträge: 28735
- Registriert: Mo 27.Jan, 2003 22:13
- Wohnort: Bad Wildungen
- Kontaktdaten:
Oh yes, I mean cal_lite.php.
And the text you must find after you have installed my event lists on it.
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!
-={ 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!
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