Skocz do zawartości

Weak.

Użytkownik
  • Postów

    219
  • Dołączył

  • Ostatnia wizyta

  • Wygrane w rankingu

    58

Ostatnia wygrana Weak. w dniu 5 Kwietnia

Użytkownicy przyznają Weak. punkty reputacji!

9 obserwujących

Informacje o forum

  • Wersja
    -brak-
  • Forum
    localhost

Informacje o profilu

  • Miejscowość
    DEV

Ostatnie wizyty

10 296 wyświetleń profilu
  1. 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.
  2. lang.xml
  3. [data-ips-hook="galleryCommentWrap"] > .ipsPhotoPanel > .ipsUserPhoto, .ipsPhotoPanel .ipsAvatarStack { width: var(--i-photoPanelAvatar, 3em); }
  4. Wersja 1.0.1

    18 pobrań

    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
  5. (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  
  6. 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
  7. 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ć. 😁
  8. 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}}
  9. {{usort($comments, function($a, $b) { return $b->rating <=> $a->rating; })}} {{foreach $comments as $comment}} A tak?
  10. Czemu nie dodasz sortowania w stylu, tutaj? {{foreach $comments as $comment}}
  11. Fixed Added Yes For the widget only, 28 records are displayed per page.
  12. @alexis The new update version is out, check it out and let us know.
  13. I use a 120 second session, that's enough for me. Today I will upload the patch and add the translation.
  14. IPS Codeline: IPS 4 Ziomek ma IC5
×
×
  • 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ę.