Skocz do zawartości

DawPi

Manager
  • Postów

    78 208
  • Dołączył

  • Ostatnia wizyta

  • Wygrane w rankingu

    579

Treść opublikowana przez DawPi

  1. Mało tego, że nie ma hooków w IC5 to jeszcze te nowe "hooki" szablonów nie działają w ACP. Tam można jedynie wstawiać przy pomocy JS i loadera. Trochę masz o tym tutaj - https://invisioncommunity.com/forums/topic/479359-any-way-to-add-buttons-in-acp/
  2. Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu. Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.
  3. Nie dawaj tego niżej to nie pokaże nic. OK, wiem o co chodzi. Spróbuj tak: {{$lastFileType = NULL; try { $lastFileType = \IPS\Db::i()->select( 'record_type', 'downloads_files_records', array( "record_file_id=? AND record_backup=0 AND record_hidden=0 AND ( record_type = 'link' OR record_type = 'upload' )", $file->id ), 'record_id DESC' )->first(); } catch( \Exception $ex ){ } }} {{if $lastFileType == 'link'}} zewnętrzny serwer {{endif}} {{if $lastFileType == 'upload'}} lokalny serwer {{endif}} Jak teraz?
  4. Ale Ty pokazujesz screen bodaj z wersji IPB 3, a masz 4. To raz. Dwa - z urodzin to kojarzę tylko widget - https://www.sosinvision.com.br/index.php?/file/192-birthdays-widget/
  5. Spoko, tylko jakim cudem, jak możliwości do pokazania są inne? Screeny:
  6. Mój kod pokazuje ssupload?
  7. A tak też tak pokazuje? {{$lastFileType = \IPS\Db::i()->select( 'record_type', 'downloads_files_records', array( 'record_file_id=? AND record_backup=0 AND record_hidden=0', $file->id ), 'record_id DESC' )->first(); }} {{if $lastFileType == 'link'}} zewnętrzny serwer {{endif}} {{if $lastFileType == 'upload'}} lokalny serwer {{endif}} Daj link do tego pliku.
  8. {{$lastFileType = null;}} {{$records = \IPS\Db::i()->select('record_type', 'downloads_files_records', ['record_file_id=? AND record_backup=0 AND record_hidden=0', $file->id], 'record_id DESC');}} {{if $records->count() > 0}} {{$lastFileType = $records->first();}} {{endif}} {{if $lastFileType === 'link'}} {{$fileLocation = "Plik znajduje się na zewnętrznym serwerze (zgodnie z bazą danych).";}} {{else}} {{$fileLocation = "Plik znajduje się na lokalnym serwerze:";}} {{endif}}
  9. A ten pliki z serwera zewnętrznego to jaki ma url? W sensie w tabeli downloads_files_records, bo by można tak podziałać: {{$lastFileType = \IPS\Db::i()->select( 'record_type', 'downloads_files_records', array( 'record_file_id=? AND record_backup=0 AND record_hidden=0', $file->id ), 'record_id DESC' )->first(); }} {{if $lastFileType == 'link'}} zewnętrzny serwer {{endif}} {{if $lastFileType == 'upload'}} lokalny serwer {{endif}}
  10. Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu. Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.
  11. Tak zobacz tylko dopasuj czysty PHP do szablonu: <?php $fileUrl = (string) $file->url(); $fileHost = parse_url($fileUrl, PHP_URL_HOST); $serverHost = parse_url($_SERVER['HTTP_HOST'], PHP_URL_HOST); if (!$fileHost) { $fileLocation = "Plik znajduje się na lokalnym serwerze (URL nie ma hosta)."; } else { if ($fileHost === $serverHost) { $fileLocation = "Plik znajduje się na lokalnym serwerze."; } else { $fileLocation = "Plik znajduje się na zewnętrznym serwerze: " . $fileHost; } }
  12. \IPS\forums\Topic::load(id tematu)->url()
  13. Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu. Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.
  14. Ano to widzisz! To istotne.
  15. Hej, a masz coś w logach błędów? Bo może się wywala w jakimś miejscu i trzeba to zdiagnozować.
  16. To wbudowany widget. Także producentem jest ten sam podmiot co całego forum.
  17. Hm, na pewno opłacasz nie 199 a 2*199? Wydaje mi się że tylko 199 na kolejny rok, ale mogę się mylić bo oni z licencjami zrobili niezły miszmasz. Ceny w dolarach.
  18. W całym Twoim kodzie nie ma "źródła" tej zmiennej $field.
  19. Daj cały kod szablonu jaki używasz na tej głównej i gdzie co i jak dokładnie wklejasz.
  20. DawPi

    Wtyczki

    Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu. Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.
  21. DawPi

    Wtyczki

    Dokładnie tak. "Małe" dodatki" odeszły do lamusa. Teraz też można je tworzyć, ale w formie aplikacji.
  22. (DP5) Advanced Regexp Zobacz plik With this fancy app you may earn money by changing and modyfing the affiliate urls adding by members on your board! 🙂 It maybe isn't beatifiull app but it's very good and brings new opportunities. For example Amazon affiliate urls contain "tag" parameter which may be modified by adding your own value for that parameter or simply added into url. Application is flexible so you may define your own affiliate parameters - "refby", "referredby" etc. You may also delete specified parameters from urls or keep any. You may also create custom CSS class and highlight any urls you like by your own CSS look. Example: Someone post this url: https://www.amazon.com/dp/B01WSEEFBA/ref=gw_fr_desk_h1_sh_slp_apos_0079?pf_rd_p=565456y3-f7d5-4b98-a4e5-72ff4fdd68f6&pf_rd_r=9RY38PVVHBF63YEEXE It would change to that (with tag parameter): https://www.amazon.com/dp/B01WSEEFBA/ref=gw_fr_desk_h1_sh_slp_apos_0079?pf_rd_p=565456y3-f7d5-4b98-a4e5-72ff4fdd68f6&pf_rd_r=9RY38PVVHBF63YEEXE&tag=utk-21 Another example (with tag parameter): https://www.amazon.com/photo-TV-mp3-Hifi-GPS/b/ref=as_li_ss_tl?ie=UTF8&node=6547&linkCode=sl2&tag=tectes-31&linkId=cb76a59714b8493b75a565404838885c00e&language=fr_FR It would change to: https://www.amazon.com/photo-TV-mp3-Hifi-GPS/b/ref=as_li_ss_tl?ie=UTF8&node=6547&linkCode=sl2&tag=utk-21&linkId=cb76a59714b8493b75a565404838885c00e&language=fr_FR Dodający DawPi Dodano 18.12.2024 Kategoria Płatne modyfikacje 5 Wspierana wersja 5.x+  
  23. Wersja 5.0.0

    7 pobrań

    With this fancy app you may earn money by changing and modyfing the affiliate urls adding by members on your board! 🙂 It maybe isn't beatifiull app but it's very good and brings new opportunities. For example Amazon affiliate urls contain "tag" parameter which may be modified by adding your own value for that parameter or simply added into url. Application is flexible so you may define your own affiliate parameters - "refby", "referredby" etc. You may also delete specified parameters from urls or keep any. You may also create custom CSS class and highlight any urls you like by your own CSS look. Example: Someone post this url: https://www.amazon.com/dp/B01WSEEFBA/ref=gw_fr_desk_h1_sh_slp_apos_0079?pf_rd_p=565456y3-f7d5-4b98-a4e5-72ff4fdd68f6&pf_rd_r=9RY38PVVHBF63YEEXE It would change to that (with tag parameter): https://www.amazon.com/dp/B01WSEEFBA/ref=gw_fr_desk_h1_sh_slp_apos_0079?pf_rd_p=565456y3-f7d5-4b98-a4e5-72ff4fdd68f6&pf_rd_r=9RY38PVVHBF63YEEXE&tag=utk-21 Another example (with tag parameter): https://www.amazon.com/photo-TV-mp3-Hifi-GPS/b/ref=as_li_ss_tl?ie=UTF8&node=6547&linkCode=sl2&tag=tectes-31&linkId=cb76a59714b8493b75a565404838885c00e&language=fr_FR It would change to: https://www.amazon.com/photo-TV-mp3-Hifi-GPS/b/ref=as_li_ss_tl?ie=UTF8&node=6547&linkCode=sl2&tag=utk-21&linkId=cb76a59714b8493b75a565404838885c00e&language=fr_FR
    155 zł
  24. It works like this! My mod does NOT editing the posts content in the DB, so if you add any word which was posted years ago then it will be linked properly.
  25. (DP5) PM Viewer Zobacz plik This application will allow administrators to read conversations on Admin CP. If admins has a special permission, they will also be able to VIEW hidden conversations, EDIT, HIDE/UNHIDE conversations (from appearing on PM Viewer application) and INVITE/REMOVE MEMBERS from conversations. Conversations can also be tracked by filtering keywords. If a specific keyword added by an admin is used on Conversation, users from selected group will receive a notification with a link to the conversation on PM Viewer application. Admins can also use tools to HIDE or UNHIDE all conversations with one click. Settings: Number of conversations per page Number of log entries per page Enable keyword monitoring Keywords to monitor Notification Groups: Members from selected groups will be notified when someone sends a private message that contaims a monitored keyword. Groups Permissions: Protected groups: If a member from a selected group is involved in a conversation, then this conversation will be not viewable in the PM Viewer application regardless of who else is involved. Can view HIDDEN conversations Can HIDE/UNHIDE conversations Can INVITE/REMOVE members from conversations Can EDIT message content: Users will also be able to view Revisions from posts and delete/restore the original text Tools: Hide All Conversations Unhide All Conversations Logs: Added log in all actions: view a conversation, hide/unhide conversation, add/remove users from conversations and restore or delete a revision from a post Added a Logs module to display Admin Logs from this application. Dodający DawPi Dodano 17.12.2024 Kategoria Płatne modyfikacje 5 Wspierana wersja 5.x+  
×
×
  • 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ę.