-
Jak rozwiązać kłopot z limitem odświeżania wtyczki (WK) Total Time Spent Online+
Bardziej bym zmienił sposób sprawdzania interwałów, bo jest ich 10, jezeli 10 jest takich samych i mają taki sam czas odświeżenia przez użytkownika to następuje blokada.
-
(WK) Advanced Chatbox Stats +
lang.xml
-
Can anyone help me with that code?
[data-ips-hook="galleryCommentWrap"] > .ipsPhotoPanel > .ipsUserPhoto, .ipsPhotoPanel .ipsAvatarStack { width: var(--i-photoPanelAvatar, 3em); }
-
(WK) Player list - (aXen) Advanced Server List
- 24 pobrań
- Wersja 1.0.1
A simple application that displays a list of all players in a window. For this application to work properly, the (aXen) Advanced Server List application is required.Darmowy -
(WK) Player list - (aXen) Advanced Server List
(WK) Player list - (aXen) Advanced Server List Zobacz plik A simple application that displays a list of all players in a window. For this application to work properly, the (aXen) Advanced Server List application is required. Dodający Weak. Dodano 31.07.2025 Kategoria Modyfikacje Wspierana wersja 4.X
-
Licznik dodanych plików
Może coś takiego? {{$yesterday = \IPS\DateTime::create()->sub(new \DateInterval('P1D'))->getTimestamp();}} {{$categoryGroups = [ ['main_id' => 1, 'name' => 'XXX'], ['main_id' => 2, 'name' => 'XXX'] ]; }} {{foreach $categoryGroups as $group}} {{$category = \IPS\downloads\Category::load($group['main_id']); }} {{$catIds = [$category->id];}} {{foreach $category->children() as $child}} {{$catIds[] = $child->id;}} {{endforeach}} {{$where = [['file_submitted>?', $yesterday], ['file_cat IN(' . implode(',', $catIds) . ')']]; }} {{$count = \IPS\downloads\File::getItemsWithPermission($where, 'file_submitted DESC', NULL, 'read', \IPS\Content\Hideable::FILTER_AUTOMATIC, 0, NULL, FALSE, FALSE, FALSE, TRUE); }} Dodano dzisiaj w {$group['name']}: {$count}<br> {{endforeach}} Lub: {{$yesterday = \IPS\DateTime::create()->sub(new \DateInterval('P1D'))->getTimestamp(); }} {{$categoryGroups = [ ['main_id' => 1, 'name' => 'kategorii 1', 'subcats' => FALSE], ['main_id' => 2, 'name' => 'kategoria 2', 'subcats' => FALSE] ]; }} {{foreach $categoryGroups as $group}} {{$category = \IPS\downloads\Category::load($group['main_id']);}} {{$catIds = [$category->id];}} {{if $group['subcats']}} {{foreach $category->children() as $child}} {{$catIds[] = $child->id;}} {{endforeach}} {{endif}} {{$where = [['file_submitted>?', $yesterday], ['file_cat IN(' . implode(',', $catIds) . ')']]; }} {{$count = \IPS\downloads\File::getItemsWithPermission($where, 'file_submitted DESC', NULL, 'read', \IPS\Content\Hideable::FILTER_AUTOMATIC, 0, NULL, FALSE, FALSE, FALSE, TRUE); }} Dodano dzisiaj w {$group['name']}: {$count}<br> {{endforeach}} Tutaj 'subcats' => FALSE Zmieniasz na TRUE, jeżeli chcesz aby zliczać subkategorie
-
Licznik dodanych plików
Dlatego masz: ['ids' => [1, 2, 5], 'name' => 'kategorii 1, 2 i 5'] Tu gdzie [1, 2, 5] To subkategorie. Pewnie da się, przez połączenie dwóch kolumn, ale komu się chce to robić. 😁
-
Licznik dodanych plików
Może coś takiego lepsze? Mniej kodu {{$yesterday = \IPS\DateTime::create()->sub(new \DateInterval('P1D'))->getTimestamp();}} {{$categoryGroups = [ ['ids' => [1, 2, 5], 'name' => 'kategorii 1, 2 i 5'], ['ids' => [2], 'name' => 'kategoria 2'] ]; }} {{foreach $categoryGroups as $group}} {{$where = [['file_submitted > ?', $yesterday], ['file_cat IN(' . implode(',', $group['ids']) . ')']];}} {{$count = \IPS\downloads\File::getItemsWithPermission($where, 'file_submitted DESC', NULL, 'read', \IPS\Content\Hideable::FILTER_AUTOMATIC, 0, NULL, FALSE, FALSE, FALSE, TRUE);}} Dodano dzisiaj w {$group['name']}: {$count}<br> {{endforeach}}
-
Ustawienie od najwiekszei do najmniejszej oceny w widget
{{usort($comments, function($a, $b) { return $b->rating <=> $a->rating; })}} {{foreach $comments as $comment}} A tak?
-
Ustawienie od najwiekszei do najmniejszej oceny w widget
Czemu nie dodasz sortowania w stylu, tutaj? {{foreach $comments as $comment}}
-
(WK) Total time spent online +
- (WK) Total time spent online +
Fixed Added Yes For the widget only, 28 records are displayed per page.- (WK) Total time spent online +
@alexis The new update version is out, check it out and let us know.- (WK) Total time spent online +
I use a 120 second session, that's enough for me. Today I will upload the patch and add the translation.- Better stats - long nummer - not like now
IPS Codeline: IPS 4 Ziomek ma IC5 - (WK) Total time spent online +
Weak.
Użytkownik
-
Dołączył
-
Ostatnia wizyta