Jump to content

Weak.

Member
  • Posts

    219
  • Joined

  • Last visited

  • Days Won

    58

Weak. last won the day on April 5

Weak. had the most liked content!

About your community

  • Version
    -brak-
  • Forum
    localhost

About you

  • Location
    DEV

Recent Profile Visitors

10,522 profile views

Weak.'s Achievements

  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. Version 1.0.1

    19 downloads

    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.
    Free
  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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.