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

adrian218

Użytkownik
  • Postów

    931
  • Dołączył

  • Ostatnia wizyta

  • Wygrane w rankingu

    1

Odpowiedzi opublikowane przez adrian218

  1. Jakoś udało mi się sprawić. że tryb developera działa tylko teraz w wiki ipsu  przy pluginie hello word jest taka wzmianka na początku:

     

     

    Cytat

     

    Creating an application

    1. Login to the ACP and go to System -> Applications.
    2. Press "Create New"
    3. Enter the following field values:
      • Application Title: IPS Tutorial
      • Application Directory: ipstutorial
      • Author Name: your name
    4. Press Save

    When creating a new application, the Application Directory must be unique to each installation. Make sure to use a value that is relevant to the application but is unlikely to be used by another contributor. Duplicate directory names will cause conflicts and can introduce critical consequences.

     

     Tylko po wejściu w aplikacje nie widzę create new albo mam zaćme :P

    https://prnt.sc/s96adu

  2. 22 minuty temu, DawPi napisał:

    Dziwne.

    Czyli generalnie pliki forum są OK jak Ci to śmiga.

    Nie ma jak tego podejrzeć - to może warto opisać to IPSowi w tickecie? Może coś doradzą?

    Może wampa spróbuj?

    Troszeczkę nie po drodze mi z racji posiadania własnego serwera w sieci domowej na osobnym pc. Ale sprawdze jeszcze wamp czy to aby nie wina mojej konfiguracji i dam znać.

    • Lubię to 1
  3. 1 minutę temu, DawPi napisał:

    Jaka wersja PHP? Windows kiedyś zmieniał wielkość znaków w nazwach plików. Na pewno nie masz zmodyfikowanych nazw plików jakie wrzuciłeś na localhost?

     

    Wersja PHP  to jak na screenie:

     

    Co do znaków wszystko, ok serwer stoi na debianie. Konfiguracja wydaje się poprawna nez trybu dev działa wszystko ok. Co do znaków , sprawdziłem jeszcze z poziomu debiana i wszystko się zgadza już drugi dzień się zastanawiam gdzie jest błąd.

    Przechwytywanie.PNG

  4. Enabling Developer Mode

    Follow these steps to enable Developer Mode on your installation:

    1. Download the Developer Tools, making sure you download the correct version for the version of IPS Community Suite you are using. Developer Tools for pre-release versions may be available, so you may need to download an older version from the "Previous Versions" section.

    2. Extract the developer tools and move them to where IPS Community Suite is installed, merging with the existing files. There is a root "dev" folder, and "dev" folders for each application. If you do not have every IPS Community Suite application installed, you should delete the folders you don't need from the Developer Tools folder before copying. The presence of Developer Tools for uninstalled applications may cause errors.

    3. If you do not already have a constants.php file in the root folder of your installation, create one.

    4. Add the following line to your constants.php file:

      <?php
      define( 'IN_DEV', TRUE );

       

    For more information on how to use the tools which become available when Developer Mode is enabled, and for more information on developing for the IPS Community Suite, see the developer documentation.

  5. /* Loop methods */
    
    $hasNonAbstract = FALSE;
    
    $hasNonStatic = FALSE;
    
    foreach ( $reflection->getMethods() as $method )
    
    {
    
    if ( \substr( $method->getDeclaringClass()->getName(), 0, 3 ) === 'IPS' )
    
    {
    
    /* Make sure it's not private */
    
    if( $method->isPrivate() )
    
    {
    
    trigger_error( "{$classname}::{$method->name} is declared as private. In order to ensure that hooks are able to work freely, please use protected instead. (PHP Coding Standards: Functions and Methods.4)", E_USER_ERROR );
    
    }
    
    
    
    /* We need to know for later if we have non-abstract methods */
    
    if( !$method->isAbstract() )
    
    {
    
    $hasNonAbstract = TRUE;
    
    }
    
    
    
    /* We need to know for later if we have non-static methods */
    
    if( !$method->isStatic() )
    
    {
    
    $hasNonStatic = TRUE;
    
    }
    
    
    
    /* Make sure the name follows our conventions */
    
    if(
    
    !preg_match( '/^_?[a-z][A-Za-z0-9]*$/', $method->name ) // Normal pattern most methods should match
    
    and
    
    !preg_match( '/^get_/i', $method->name ) // get_* is allowed
    
    and
    
    !preg_match( '/^set_/i', $method->name ) // set_* is allowed
    
    and
    
    !preg_match( '/^parse_/i', $method->name ) // parse_* is allowed
    
    and
    
    !preg_match( '/^setBitwise_/i', $method->name ) // set_Bitiwse_* is allowed
    
    and
    
    !in_array( $method->name, array( // PHP's magic methods are allowed (except __sleep and __wakeup as we don't allow serializing)
    
    '__construct',
    
    '__destruct',
    
    '__call',
    
    '__callStatic',
    
    '__get',
    
    '__set',
    
    '__isset',
    
    '__unset',
    
    '__toString',
    
    '__invoke',
    
    '__set_state',
    
    '__clone',
    
    ) )
    
    ) {
    
    trigger_error( "{$classname}::{$method->name} does not follow our naming conventions. Please rename using only alphabetic characters and camelCase. (PHP Coding Standards: Functions and Methods.1-3)", E_USER_ERROR );
    
    }
    
    }
    
    }

    I nic mi to nie mówi , kawałek kodu wziąłem z githuba, z nulledu ipb aż ciekawe że jest tam sobie , i porównałem ze swoim i niby to samo , może to że działam na localu ma jakiś wpływ ? 

     
  6. Witam jak ogarnąć temat kilku domen które są przypisane, do jednego serwera, ale jak wiadomo gdy ktoś wchodzi nie po tej co jest w conf global to gubi styl i etc. Próbowałem na upartego tak ale oczywiście nic:

     

      'base_url' => '1,'

    base_url' => '2',

    base_url' => '3',

  7. Witam mam takie pytanie , czy pages oferuje takie coś, jak stworzyłem  stronę, i dałem sam sobie kod html i strona jest statyczna. Czy taka opcja istnieje zależnie od języka, czy to wymaga napisania osobnej aplikacji ? Dokładnie tak łopatologicznie to ja widzę to tak, że teraz dodaje stronę biorę kod html dodaje mam statyczną stronę. Lecz w języku Angielskim i Polskim jest to samo , a właśnie żeby dodać gdy user ma angielski inną zawartość z innym tekstem.

  8. Witam zwracam się z dość dziwnym problemem a mianowicie mam problem z grupą użytkownik na forum, nie mogę jej edytować z poziomu acp nie wyświetla się jej nazwa , a po wejściu w edycje dostaję białą stronę wygląda to tak :

    1020695442_Screenshot_2018-08-06Zarzdzaniegrupamiuytkownikw.thumb.png.b69ef023045dcd3405bd9e68424035d3.png

     

    Wszedłem w bazę danych w kolumnę core_group id tej grupy to 3 wygląda to tak:

     

    1040331160_Screenshot_2018-08-06wwwts3bahucomlocalhosttsowiczecore_groupsphpMyAdmin482.thumb.png.3c4a7d8aa026697011c88c7b398993c7.png

     

    Z żadną inną grupą nie ma takiego problemu,  co może powodować taki problem ?

×
×
  • 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ę.