Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

[community.invisionpower.com - pliki] (IG02) Tick Tock Hook


Rekomendowane odpowiedzi

This is my first complete hook for IP.Board I'v developed alone :D This hook will make your "Now is" clock in the footer to tick-tock. In the footer there is a time stamp by the web server when the page is loaded. It says "Now is" but this text can stay for minutes, hours... if you forgot your computer running - even for days. With this hook the clock will be updated every second.

Features:

  • Works virtually with any LOCALE
  • Works at midnight and will change not only the hours, but the date also
  • Supports almost all date formats you can set
    Not supported parameters of PHP strftime function:
    • %V - ISO-8601:1988 week number of the given year, starting with the first week of the year with at least 4 weekdays, with Monday being the start of the week
    • %g - Two digit representation of the year going by ISO-8601:1988 standards (see %V)
    • %G - The full four-digit version of %g
    • %X - Preferred time representation based on locale, without the date
    • %Z - The time zone offset/abbreviation option NOT given by %z (depends on operating system)
    • %c - Preferred date and time stamp based on locale
    • %x - Preferred date representation based on locale, without the time

    [*]The hook will calculate the difference between the client`s computer clock and the server`s clock and will always use the server time relative to the profile and board settings.[*]Hook works with IP.Board 3.1.2 On version 3.0.x it displays a second clock unfortunately![*]The hook may malfunction when used with some custom skins.

Installation:

Open your IP.Board ACP, go to System->Manage Hooks, select the .XML file and import. No settings needed. It uses the default short date format.

Pobierz plik

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.