July 16, 200619 yr Ik heb nu countdown panel, maar als er 1 minut voorbij is veranderd het niet, druk ik op F5 dan veranderd het wel. Ik weet wel dat het mogelijk is dat ie dit doet, maar hoe? Het is helaas een plugin, en dat is wat lastiger, het is geen code dus. Ik weet zeker dat je de panel bestand nodig hebt, dus kopieeër ik die tekst hier. //-----------------------------------------------------------------------------------------------------------+ unset($text); if ($pref[countdown_event]) { $time = time() + ($pref[time_offset] * 3600); // E107 TIME $countdown_timestamp = $pref[countdown_time] - $time; $countdown_days = date("z", $countdown_timestamp); $countdown_hours = date("G", $countdown_timestamp); $countdown_minutes = date("i", $countdown_timestamp); // MANUALLY REMOVE LEADING ZEROS FROM MINUTES AS THERE IS NO BUILT IN OPTION if ($countdown_minutes[0] == "0") { $countdown_minutes = $countdown_minutes[1]; } $countdown_text_day = $countdown_days . " Dag"; $countdown_text_hour = $countdown_hours . " Uur"; $countdown_text_min = $countdown_minutes . " Minut"; if ($countdown_days > 1) { $countdown_text_day .= "en"; } if ($countdown_hours > 1) { $countdown_text_hour .= ""; } if ($countdown_minutes > 1) { $countdown_text_min .= "en"; } if ($countdown_days <= 0 ) { $countdown_text_day = ""; } if ($countdown_hours <= 0 ) { $countdown_text_hour = ""; } if ($countdown_minutes <= 0 ) { $countdown_text_min = ""; } if ($countdown_timestamp < 60) { $countdown_text_now = "Countdown Voltooit !"; // EVENT ARRIVAL MESSAGE $countdown_text_day = ""; $countdown_text_hour = ""; $countdown_text_min = ""; } $text .= " <div style='text-align:center'> <br /> $pref[countdown_event] <br /> <br /> $countdown_text_now $countdown_text_day $countdown_text_hour $countdown_text_min <br /> <br /> </div>"; $ns -> tablerender("Countdown Klok", $text); } //-----------------------------------------------------------------------------------------------------------+ ?>
July 16, 200619 yr Probeer er eens een iframe (<iframe>) van te maken, en dan : <meta http-equiv='refresh' content='60'> intevoegen.
Ik heb nu countdown panel, maar als er 1 minut voorbij is veranderd het niet, druk ik op F5 dan veranderd het wel.
Ik weet wel dat het mogelijk is dat ie dit doet, maar hoe?
Het is helaas een plugin, en dat is wat lastiger, het is geen code dus.
Ik weet zeker dat je de panel bestand nodig hebt, dus kopieeër ik die tekst hier.
//-----------------------------------------------------------------------------------------------------------+ unset($text); if ($pref[countdown_event]) { $time = time() + ($pref[time_offset] * 3600); // E107 TIME $countdown_timestamp = $pref[countdown_time] - $time; $countdown_days = date("z", $countdown_timestamp); $countdown_hours = date("G", $countdown_timestamp); $countdown_minutes = date("i", $countdown_timestamp); // MANUALLY REMOVE LEADING ZEROS FROM MINUTES AS THERE IS NO BUILT IN OPTION if ($countdown_minutes[0] == "0") { $countdown_minutes = $countdown_minutes[1]; } $countdown_text_day = $countdown_days . " Dag"; $countdown_text_hour = $countdown_hours . " Uur"; $countdown_text_min = $countdown_minutes . " Minut"; if ($countdown_days > 1) { $countdown_text_day .= "en"; } if ($countdown_hours > 1) { $countdown_text_hour .= ""; } if ($countdown_minutes > 1) { $countdown_text_min .= "en"; } if ($countdown_days <= 0 ) { $countdown_text_day = ""; } if ($countdown_hours <= 0 ) { $countdown_text_hour = ""; } if ($countdown_minutes <= 0 ) { $countdown_text_min = ""; } if ($countdown_timestamp < 60) { $countdown_text_now = "Countdown Voltooit !"; // EVENT ARRIVAL MESSAGE $countdown_text_day = ""; $countdown_text_hour = ""; $countdown_text_min = ""; } $text .= " <div style='text-align:center'> <br /> $pref[countdown_event] <br /> <br /> $countdown_text_now $countdown_text_day $countdown_text_hour $countdown_text_min <br /> <br /> </div>"; $ns -> tablerender("Countdown Klok", $text); } //-----------------------------------------------------------------------------------------------------------+ ?>