Jump to content
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

DawPi

Manager
  • Posts

    77,268
  • Joined

  • Last visited

  • Days Won

    436

Community Answers

  1. DawPi's post in Ikona/Napis na Obrazku w panelu download na stronie głównej was marked as the answer   
    Myślę, że najprościej będzie użyć kodu CSS który doda takie coś do podanej grafiki.
    Nie podałeś miejsca gdzie by się to miało wyświetlać.
     
    Zróbmy to na przykładzie np. widoku głównego plików - CSS sobie gdzieś poszukasz, bo nie powinno to stanowić problemu.
    Tu masz jakieś info:
    https://stackoverflow.com/questions/34685233/css-notification-style-badge-over-image
    https://burstcommerce.com/guides/how-to-position-product-badges-on-top-of-product-images/
     
    Ja się przyjrzę temu co zapytałeś później:
    Kod na ten css lub jakkolwiek to dodasz musisz obwarować np. czymś takim:
    {{if $file->submitted > \IPS\DateTime::create()->sub( new \DateInterval( 'P1D' ) )->getTimestamp()}} NEW {{endif}} Dla warunku, że masz tam obiekt $file.
     
    Efekt marny, ale CSS już sobie dopasujesz:

     
    Pierwszy plik dopiero co dodałem:

  2. DawPi's post in Logowanie za pomocą bazy danych was marked as the answer   
    W sumie to nie zaglądałem do kodu, ale może coś takiego:
    return hash('sha256', $providedPassword); Ale ciężko powiedzieć na 100%, bo nie wiem czy tam return czy po prostu:
    hash('sha256', $providedPassword);  
    Zobacz te dwa, jak nie pyknie to się zajrzy.
     
     
    Co dokładnie tam kombinujesz?
  3. DawPi's post in Secondary Nav Aspect was marked as the answer   
    Go to ACP System Site Features Menu Manager
    Find Browse item, edit it and change to Drop-down Menu:

     
    And it's done:

  4. DawPi's post in Jak uzyskac taki efekt poprzez CSS? was marked as the answer   
    Dokładnie, tam widać coś takiego:
    <div class="p-group--box-4 p-group--box-style-one cProfileSidebarBlock ipsMargin_bottom ipsPadding ipsRadius"> <div class="p-group--icon" style="background: rgb( 0,0,0 )"> <i class="fas fa-crown"></i> </div> <div> <p class="ipsType_reset ipsType_medium ipsType_bold">Właściciel</p> <p class="ipsType_reset ipsType_small">Główny Założyciel - CS-RzeZnia.eu</p> </div> </div>  
    Nie zalecam i nie polecam kopiować tak czyjejś pracy, ale zrobisz jak uważasz.
     
    Potem tylko odpowiednie warunki na ID grupy w widoku profilu i z górki.
  5. DawPi's post in postContainer custom badges was marked as the answer   
    You need more code than that then, see examples - https://stackoverflow.com/questions/2915864/php-how-to-find-the-time-elapsed-since-a-date-time
  6. DawPi's post in Usunięcie subforów z widoku strony głównej was marked as the answer   
    Otwórz bit forumRow, znajdź:
    {{if $forum->hasChildren()}} Zmień na:
    {{if $forum->hasChildren() && ( $forum->id != 3 )}} Gdzie podobnie jak wyżej to 3 to w Twoim przypadku 26 czyli ID tego forum.
  7. DawPi's post in Font Awesome 6 Pro in IPS plugin, Latest Version? was marked as the answer   
    Hello,
    here you are -
     
  8. DawPi's post in Hi from JoelR was marked as the answer   
    Hello @JoelR,
    I must admit that I am surprised by your presence here and at the same time I would like to warmly welcome you here!
  9. DawPi's post in Szukam modyfikacji was marked as the answer   
    OK, to drugiej części na pewno nie ma. Tzn. generalnie to wszystko by można zrobić przy pomocy Commerce, bo rejestracja może nie dokładnie jak Twoja, ale jest by założyć konto trzeba kupić coś ze sklepu:

     
    I:
    \\
     
    I to by np. był jakiś produkt który weryfikuje poprawność zakupu i tylko wtedy konto jest aktywne.
     
    Część drugą mógłbyś rozwiązać też. Commerce i zakupem produktów które edytują grupę (-y) usera:

     
    Wtedy też fora z dostępem określonych grup/masek dostępu i jak ktoś kupi produkt to uzyskuje do nich dostęp.
     
    Może to brzmieć mgliście, ale jeśli nie masz forum IPS4 to może warto założyć wersję demo i popróbować co pisałem wyżej.
  10. DawPi's post in A few tips about creating a plugin ? was marked as the answer   
    The best way and future proof would be do it as an application. You need to enable developer mode, add your app and use widgets feature.
     
    Sorry, there is no step by step instruction - you need to explore and digg code yourself and ask us with any particular problem, not a general "how to create plugin app with widget". It's way too general question.
     
    https://invisioncommunity.com/developers/docs/development/applications/creating-a-simple-hello-world-application-r184/
  11. DawPi's post in ckeditor was marked as the answer   
    Zmieniłem sobie konsoli ten fragment na czarny i oto efekty:

     
    Także nadpisz to przy pomocy custom.css i powinno być OK.
  12. DawPi's post in Statystyki forum was marked as the answer   
    Być może źle patrzę, ale ustawieniem tego nie zmienisz.
    Bo jest tak:
    /* 1,000 to 999,000 */ else if ( $number >= 1000 ) { $number = number_format( $number / 1000, $postDecimal, $this->locale['decimal_point'], $this->locale['thousands_sep'] ); $lang = 'num_short_thousand'; } A klucz num_short_thousand to "%s tys.".
    Jedyne co widziałem to takie coś:
    https://www.devfuse.com/products/112-friendly-number-format/
    Ale to nie do końca i tak Ci przypasuje.
     
    Spróbuj tak, otwórz plik: system\Lang\Lang.php
    Znajdź:
    /** * Format a number in a short format (e.g. 1.6k, instead of 1,558) * * @param number $number The number to format * @param int $postDecimal Number of numbers to show after the decimal (1.1k, 1.12k, etc) * @return string */ public function formatNumberShort( $number, $postDecimal=1 ) { Dodaj poniżej:
    return $number; Zapisz i zobacz czy pomogło.
     
    P.s. dla widgetów oczywiście musisz zaktualizować cache w ACP w zakładce Support by to się pokazało.
  13. DawPi's post in Przyciski nawigacji was marked as the answer   
    ACP Aplikacje i Moduły Zarządzanie menu
  14. DawPi's post in Z wersji nulled na płatną was marked as the answer   
    To nie miejsce na takie rozmowy. Napisze w tym dziale jeśli już.
    Wszystko już wiesz w temacie przejścia z nulled na licencję?
  15. DawPi's post in Dziwne statystyki w temacie was marked as the answer   
    Dziwny? Wbudowana opcja. W ogólnych ustawieniach forów to zmienisz. 
    Chodzi o:

  16. DawPi's post in Wyłączenie domyślnego pola "Wiadomości i aktualizacje" was marked as the answer   
    Ustawienia powiadomień w ACP - Newsletter i pierwsza opcja:

  17. DawPi's post in Timeline Twittera rozwijający się w sygnaturze was marked as the answer   
    Zobacz to, działa - https://invisioncommunity.com/files/file/9860-signature-height-limiter/
  18. DawPi's post in poprawne użycie funkcji w $table->quickSearch was marked as the answer   
    Bo to:
    /* Search */ $table->quickSearch = function( $string ) { return \IPS\Db::i()->like( 'name', $string, TRUE, TRUE, \IPS\core\extensions\core\LiveSearch\Members::canPerformInlineSearch() ); }; Zwraca like, więc nawet widać w błędzie:
    $table->quickSearch = function( $string ) { return 'ee'; }; Błąd:

     
    Zatem Tobie potrzeba coś takiego:
     
    $table = new \IPS\Helpers\Table\Db( 'marketplacekeys_data', $this->url ); $table->joins = array( array( 'select' => 'dl.*', 'from' => array( 'downloads_files', 'dl' ), 'where' => "dl.file_id=marketplacekeys_data.file_id" ) );  
    I niżej:
    $table->quickSearch = function( $string ) { return \IPS\Db::i()->like( 'dl.file_name', $string, TRUE, TRUE, TRUE ); };
     
    Oczywiście trzeba dopasować do Twoich tabel i kodu!
  19. DawPi's post in Różne kolory grup i nicków dla odmiennych styli was marked as the answer   
    No to chyba najprościej w edycji grupy i kolorów przejść na coś w stylu:
    <span class="grupa_1"> I potem w custom.css:
    .grupa_1 { color: red; }  
    Etc.
  20. DawPi's post in Udostępnianie na facebooku was marked as the answer   
    Masz coś od og:image? Jaką wersję forum masz w ogóle?
     
    https://invisioncommunity.com/files/file/8795-choose-topic-embed-image/
    https://invisioncommunity.com/files/file/8838-embed-enhancements-set-the-og-image-image-which-is-shown-inside-the-ips-embed-iframe/
    https://invisioncommunity.com/files/file/8992-og-image-for-forum-topics/?do=getNewComment
     
  21. DawPi's post in Dodanie increment do \IPS\Helpers\Table was marked as the answer   
    No to prościej:
    /** * index */ class _index extends \IPS\Dispatcher\Controller { public $inc = 1;  
    Potem:
    'cc' => function( $val ) { return $this->inc++; },  
    Śmiga:

     
    To oczywiście z edycji mojej apki, ale łatwo dopasujesz.
  22. DawPi's post in Błędy związane z js-em. was marked as the answer   
    Hm, a jakie szablony masz zmodyfikowane? W sensie może są któreś odpowiedzialne za ładowanie jsa, a autor skina coś tam namodził i się wszystko nie ładuje.
    Zrób jeszcze tak - zapisz sobie kopię globalTemplate tego szablonu, potem go przywróć do domyślnego i zobacz czy działa. Jak tak to trzeba linia po linii porównać obie wersje. Daj znać.
  23. DawPi's post in Witanie nowych użytkowników was marked as the answer   
    Dodatek, łap https://invisioncommunity.com/files/file/7449-auto-welcome/
  24. DawPi's post in Nazwa w karcie przegladarki was marked as the answer   
    W ACP może tak ale nie na forum. Szukasz forums:

  25. DawPi's post in Komunikat w TOP-ie was marked as the answer   
    To jest ogłoszenie. Wejdź w analogiczny link na swoim forum:
    https://forum.invisionize.pl/modcp/announcements/  
×
×
  • 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.