-
👋 Witaj na MPCForum!
Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎
- ✅ Pełny dostęp do działów i ukrytych treści
- ✅ Możliwość pisania i odpowiadania w tematach
- ✅ System prywatnych wiadomości
- ✅ Zbieranie reputacji i rozwijanie swojego profilu
- ✅ Członkostwo w jednej z największych społeczności graczy
👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!
Zarejestruj się teraz
- 0

Pytanie
Marcoly
Marcoly
Krótki poradnik jak usunąć ten wkurwiający komunikat o braku klucza licencyjnego:
Nulledy zapewne mają to wbudowane, ale ja tam wolę to wszystko zrobić samemu.
Udajemy się do ścieżki: admin\skin_cp, otwieramy plik cp_skin_global.php.
Wyszukujemy:
if( !$this->settings['ipb_reg_number'] ) { $this->lang->words['license_missing_info'] = sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools§ion=licensekey' ); $extra_class = 'force_license'; $license_html = <<<HTML <div id='license_notice_force'> <h4>{$this->lang->words['license_missing_header']}</h4> <p>{$this->lang->words['license_missing_info']}</p> </div> HTML; } else { $licenseData = $this->cache->getCache( 'licenseData' ); if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW and $licenseData['key']['_expires'] != -1 ) AND !IPSCookie::get( 'ignore-license-notice' ) ) { if ( $licenseData['_cached_date'] < $licenseData['key']['_expires'] ) { $this->cache->rebuildCache( 'licenseData' ); } else { $extra_class = 'expired_license'; $license_html = <<<HTML <div id='license_notice_expired'> <div class='right'><a id='license-close' href='#'>Close</a></div> <h4>{$this->lang->words['license_expired_header']}</h4> <p>{$this->lang->words['license_expired_info']}</p> </div> HTML; } } }Możemy to usunąć/zakomentować, w ten sposób (dodając /* na początku i */ na końcu warunku):
/* if( !$this->settings['ipb_reg_number'] ) { $this->lang->words['license_missing_info'] = sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools§ion=licensekey' ); $extra_class = 'force_license'; $license_html = <<<HTML <div id='license_notice_force'> <h4>{$this->lang->words['license_missing_header']}</h4> <p>{$this->lang->words['license_missing_info']}</p> </div> HTML; } else { $licenseData = $this->cache->getCache( 'licenseData' ); if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW and $licenseData['key']['_expires'] != -1 ) AND !IPSCookie::get( 'ignore-license-notice' ) ) { if ( $licenseData['_cached_date'] < $licenseData['key']['_expires'] ) { $this->cache->rebuildCache( 'licenseData' ); } else { $extra_class = 'expired_license'; $license_html = <<<HTML <div id='license_notice_expired'> <div class='right'><a id='license-close' href='#'>Close</a></div> <h4>{$this->lang->words['license_expired_header']}</h4> <p>{$this->lang->words['license_expired_info']}</p> </div> HTML; } } } */<li class='post_count desc lighter'> {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']} </li> </if> </ul></if> </ul><span class='post_count desc lighter'>Dołączył:</span> <span class='post_count desc lighter'>{parse date="$author['joined']" format="joined"}</span><if test="authorcfields:|:$author['custom_fields'] != """> <ul class='custom_fields'> <foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data"> <foreach loop="customFields:$author['custom_fields'][ $group ] as $field"> <if test="$field != ''"> <li> {$field} </li> </if> </foreach> </foreach> </ul> </if><if test="RepPositive:|:$author['pp_reputation_points'] > 0"> <div class="reputation positive"><div style="font-size:1.1em">Reputacja: {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</div> </div> </if> <if test="RepNegative:|:$author['pp_reputation_points'] < 0"> <div class="reputation negative"><div style="font-size:1.1em">Reputacja: {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</div> </div> </if> <if test="RepZero:|:$author['pp_reputation_points'] == 0"> <div class="reputation zero"><div style="font-size:1.1em">Reputacja: {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</div> </div> </if> </div>32 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Zarchiwizowany
Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.