Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

X3nO

Użytkownik
  • Postów

    295
  • Dołączył

  • Ostatnia wizyta

Treść opublikowana przez X3nO

  1. No tak... Dzięki wielkie za pomoc, działa.
  2. No rozumiem, ale nie rozumiem dlaczego się pojawia
  3. Witam, mam problem ze zmianą grupy na forum, if ($a['premium'] == '-1' && $a['e_maker'] == '1') { \IPS\Member::loggedIn()->group = 11; \IPS\Member::loggedIn()->save(); } elseif ($a['premium'] == '0') { \IPS\Member::loggedIn()->group = 10; \IPS\Member::loggedIn()->save(); } elseif ($a['premium'] == '1') { \IPS\Member::loggedIn()->group = 8; \IPS\Member::loggedIn()->save(); } elseif ($a['premium'] == '2') { \IPS\Member::loggedIn()->group = 7; \IPS\Member::loggedIn()->save(); } To jest mój kod, błąd jest taki: Robiłem według dokumentacji "Working with members".
  4. https://www.invisionpower.com/support/guides/_/advanced-and-developers/api-methods/kernel-databases-classdbphp-r166 Polecam poczytać
  5. Hmm, po co execute() jak masz BuildAndFetch?
  6. Bierzesz się za pisanie aplikacji a nie wiesz jak wyciąć kod?
  7. W ustawieniach uprawnień.
  8. http://x3no.pl/works/ips/?app=portal&module=main&controller=seepost&id=1 Tak to wygląda.
  9. $time = time() + (7 * 86400); //tu mozesz ustawic na ile dni $RDB->buildAndFetch( array( 'update' => 'lss_users', 'set'=> 'premium='.$time.'', 'where' => 'login='.$this->request['login'].'' ) ); Ogólnie polecam budować zapytania w IP.Board
  10. Cześć, mam pytanie jak wyświetlić kod HTML z bazy danych MySQL? Obecnie jak wyświetlam to mam <p> post xddd </p> Wyświetlają się znaczniki. Jakieś rady?
  11. Cześć, mam pytanie jak sortować zapytania w IPS 4? Mam takie zapytanie: \IPS\Db::i( 'samp_db' )->select('name, gang, grang, premium', 'Accounts', array("gang=?", \IPS\Request::i()->id), 'grang') I gdzie tutaj dodać DSC/ASC? Z góry dzięki za pomoc
  12. Usunąłem i wrzuciłem z czystej paczki. Chcę ustawić każdemu domyślny awatar.
  13. Witam, mam problem z profilem w IPS 4.1.12.1. Gdy wejdę na np. http://psr-serv.pl/index.php?/profile/1-x3no/ to mam takie błędy: TypeError: Argument 3 passed to IPS\Content\Search\Result\_Content::__construct() must be of the type array, null given, called in /var/www/system/Content/Search/Results.php on line 297 (0) #0 /var/www/system/Content/Search/Results.php(297): IPS\Content\Search\Result\_Content->__construct(Array, Array, NULL, NULL, Array, NULL, true) #1 [internal function]: IPS\Content\Search\_Results->current() #2 /var/www/system/Content/Search/Results.php(359): iterator_to_array(Object(IPS\Content\Search\Results)) #3 /var/www/applications/core/modules/front/members/profile.php(223): IPS\Content\Search\_Results->addExtraItems(Array, Object(IPS\Member)) #4 /var/www/system/Dispatcher/Controller.php(96): IPS\core\modules\front\members\_profile->manage() #5 /var/www/applications/core/modules/front/members/profile.php(64): IPS\Dispatcher\_Controller->execute() #6 /var/www/system/Dispatcher/Dispatcher.php(129): IPS\core\modules\front\members\_profile->execute() #7 /var/www/index.php(13): IPS\_Dispatcher->run() #8 {main} W wersji 4.1.11 nie było tego problemu, to też nie od wtyczek. Kolejna sprawa to ustawienie każdemu domyślnego awatara i tła, da się w jakiś szybki sposób to zrobić? Konto testowe l: Invisionize.pl h: invteam
  14. Ale czemu, skoro nie wykorzystuję szablonów?
  15. link do forum, nie kupiłem magicznej kuli
  16. public function render() { return $this->output(\IPS\ROOT_PATH . '/applications/monitor/sources/table.php'); } Tak zrobiłem i znowu: BadMethodCallException thrown with message "NO_TEMPLATE_FILE - " Stacktrace: #14 BadMethodCallException in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Dev/Template.php:88 #13 IPS\Theme\Dev\_Template:__call in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Theme.php:3968 #12 IPS\Theme\Dev\Template:clearNotificationsLink in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Theme.php:3968 #11 IPS\Theme\theme_core_front_global_userBar in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Dev/Template.php:163 #10 call_user_func_array in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Dev/Template.php:163 #9 IPS\Theme\Dev\_Template:__call in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Theme.php:3968 #8 IPS\Theme\Dev\hook54:userBar in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Theme.php:3968 #7 IPS\Theme\theme_core_front_global_globalTemplate in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Dev/Template.php:163 #6 call_user_func_array in /home/samppsrd/domains/psr-serv.pl/public_html/system/Theme/Dev/Template.php:163 #5 IPS\Theme\Dev\_Template:__call in /home/samppsrd/domains/psr-serv.pl/public_html/system/Dispatcher/Dispatcher.php:149 #4 IPS\Theme\Dev\hook54:globalTemplate in /home/samppsrd/domains/psr-serv.pl/public_html/system/Dispatcher/Dispatcher.php:149 #3 IPS\_Dispatcher:finish in /home/samppsrd/domains/psr-serv.pl/public_html/system/Dispatcher/Standard.php:101 #2 IPS\Dispatcher\_Standard:finish in /home/samppsrd/domains/psr-serv.pl/public_html/system/Dispatcher/Front.php:483 #1 IPS\Dispatcher\_Front:finish in /home/samppsrd/domains/psr-serv.pl/public_html/system/Dispatcher/Dispatcher.php:131 #0 IPS\_Dispatcher:run in /home/samppsrd/domains/psr-serv.pl/public_html/index.php:18
  17. Aha. To zrób coś żeby rozwiązać problem. PS: Wydaje mi się że nie za bardzo rozumiesz istotę przestrzeni nazw. Coś takiego: require 'IPS\monitor\sources\table.php'; Nie ma prawa działać. To w jaki sposób zrobić require z aplikacji z katalogu sources?
  18. A to kod widgetu: <?php namespace IPS\monitor\widgets; if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } class _lgslmon extends \IPS\Widget { public $key = 'lgslmon'; public $app = 'monitor'; public $plugin = ''; public function init() { parent::init(); } public function render() { require 'IPS\monitor\sources\table.php'; } }
  19. PSR-Serv.pl Włączyłem wyświetlanie errorów PHP i coś z tym, że nie ma szablonów
  20. Jak jestem w IN_DEV to mam na stronie głównej białą kartę
×
×
  • 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ę.