Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

e107 vraagje.

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);
 }

//-----------------------------------------------------------------------------------------------------------+

?>

Featured Replies

Probeer er eens een iframe (<iframe>) van te maken, en dan :

<meta http-equiv='refresh' content='60'>

intevoegen. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.