Skocz do zawartości

DawPi

Manager
  • Postów

    78 196
  • Dołączył

  • Ostatnia wizyta

  • Wygrane w rankingu

    571

Treść opublikowana przez DawPi

  1. Jeśli w trakcie masowego usuwania userów pojawia Ci się błąd IPD driver error postępuj wg poniższych kroków: Otwórz: /sources/action_admin/member.php Znajdź: $this->ipsclass->DB->do_delete( 'members_converge', "converge_email IN('". implode( "'", $emails ) ."')" ); Zamień na: $this->ipsclass->DB->do_delete( 'members_converge', "converge_email IN('". implode( "','", $emails ) ."')" ); Zapisz i wyślij.
  2. W wersji 2.2.2 wprowadzono zmianę, że przy edytowaniu profilu pola daty urodzin są obowiązkowe i przy próbie ominięcie wpisu pojawia się błąd: PL: "Wprowadziłeś niepoprawną datę swoich urodzin. Możesz wybrać, na przykład 30 stycznia." ENG: "You entered an illegal date for your birthday. You may have chosen 30th February, for example." I wtedy userzy wpisują daty 'z sufitu'. Jak to w prosty sposób wyłączyć: Otwórz plik sources/lib/func_usercp.php Znajdź: //----------------------------------------- // Make sure it's a legal date //----------------------------------------- $_year = $this->ipsclass->input['year'] ? $this->ipsclass->input['year'] : 1999; if ( ! checkdate( $this->ipsclass->input['month'], $this->ipsclass->input['day'], $_year ) ) { $this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'ucp_birthday_legal_date' ) ); } Zamień na: //----------------------------------------- // Make sure it's a legal date //----------------------------------------- $_month = isset($this->ipsclass->input['month']) ? $this->ipsclass->input['month'] : 0; $_day = isset($this->ipsclass->input['day']) ? $this->ipsclass->input['day'] : 0; $_year = isset($this->ipsclass->input['year']) ? $this->ipsclass->input['year'] : 0; if ( $_month && $_day && $_year && !checkdate( $_month, $_day, $_year ) ) { $this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'ucp_birthday_legal_date' ) ); } Zapisz i wyślij. enjoy!
  3. Otwórz ips_kernel/class_ajax.php Znajdź: $value = $this->convert_html_entities( $value ); Zamień na: #$value = $this->convert_html_entities( $value ); Otwórz sources/action_public/profile.php Znajdź: $_POST['comment'] = $class_ajax->convert_html_entities( $_POST['comment'] ); Zamień na: #$_POST['comment'] = $class_ajax->convert_html_entities( $_POST['comment'] ); Otwórz sources/action_public/xmlout.php Znajdź: $post = $this->class_ajax->convert_html_entities( $post ) ; Zamień na: #$post = $this->class_ajax->convert_html_entities( $post ); Znajdź: $_POST['Post'] = $this->class_ajax->convert_html_entities( $_POST['Post'] ); Zamień na: #$_POST['Post'] = $this->class_ajax->convert_html_entities( $_POST['Post'] ); Znajdź: $this->ipsclass->parse_clean_value( $this->class_ajax->convert_html_entities( $this->ipsclass->input['post_edit_reason'] ) ); Zamień na: $this->ipsclass->parse_clean_value( $this->ipsclass->input['post_edit_reason'] ); Znajdź: $name = $this->class_ajax->convert_html_entities( $name ); Zamień na: #$name = $this->class_ajax->convert_html_entities( $name ); Po wykonaniu powyższych czynności wszystko powinno być OK, jeśli tak się jednak nie stało wykonaj tylko poniższą instrukcję: Otwórz ips_kernel/class_ajax.php Znajdź: /*-------------------------------------------------------------------------*/ // Convert Ajax unicode /*-------------------------------------------------------------------------*/ function convert_unicode($t) { /*if ( strtolower($this->ipsclass->vars['gb_char_set']) == 'utf-8' ) { return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( &$this, 'dec_char_ref_to_utf8_hexdec' ), utf8_encode($t) ); } else { return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', create_function( '$matches', "return '' . hexdec(\$matches[1]) . ';';" ), $t ); }*/ // Javascript escape function always sends unicode $text = preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( &$this, 'dec_char_ref_to_utf8_hexdec' ), utf8_encode($t) ); if ( strtolower($this->ipsclass->vars['gb_char_set']) != 'utf-8' ) { $text = $this->ipsclass->txt_convert_charsets( $text, 'UTF-8' ); } return $text ? $text : $t; } /** * Convert HTML entities and respect character sets */ Zamień na: /*-------------------------------------------------------------------------*/ // Convert Ajax unicode /*-------------------------------------------------------------------------*/ function convert_unicode($t) { if ( strtolower($this->ipsclass->vars['gb_char_set']) == 'utf-8' ) { return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( &$this, 'dec_char_ref_to_utf8_hexdec' ), utf8_encode($t) ); } else { return preg_replace_callback( '#%u([0-9A-F]{1,4})#i', create_function( '$matches', "return '' . hexdec(\$matches[1]) . ';';" ), $t ); } // Javascript escape function always sends unicode /*$text = preg_replace_callback( '#%u([0-9A-F]{1,4})#i', array( &$this, 'dec_char_ref_to_utf8_hexdec' ), utf8_encode($t) ); if ( strtolower($this->ipsclass->vars['gb_char_set']) != 'utf-8' ) { $text = $this->ipsclass->txt_convert_charsets( $text, 'UTF-8' ); } return $text ? $text : $t;*/ } /** * Convert HTML entities and respect character sets */
  4. Otwórz sources/d22mods/shoutbox.php Znajdź: $_POST['shout'] = $this->class_ajax->convert_html_entities($_POST['shout']); Zamień na: #$_POST['shout'] = $this->class_ajax->convert_html_entities($_POST['shout']); Czynność wykonaj dwa razy ze względu na podwójne wystąpienie szukanego ciągu. Sposób uniwersalny i działa. Nie trzeba niepotrzebnie grzebać w pliku class_ajax.php
  5. //----------------------------------------------------------------------------- // index.php //----------------------------------------------------------------------------- //================== // Znajdź //================== if ( (isset($ipsclass->input['setlanguage']) AND $ipsclass->input['setlanguage']) AND (isset($ipsclass->input['langid']) AND $ipsclass->input['langid']) AND $ipsclass->member['id'] ) { if ( is_array( $ipsclass->cache['languages'] ) and count( $ipsclass->cache['languages'] ) ) { foreach( $ipsclass->cache['languages'] as $data ) { if ( $data['ldir'] == $ipsclass->input['langid'] ) { $ipsclass->DB->do_update( 'members', array( 'language' => $data['ldir'] ), 'id='.$ipsclass->member['id'] ); $ipsclass->member['language'] = $data['ldir']; } } } } //================== // Dodaj poniżej //================== elseif( $ipsclass->input['setlanguage'] and $ipsclass->input['langid'] and !$ipsclass->member['id'] ) { $ipsclass->my_setcookie("langchose", $ipsclass->input['langid']); $ipsclass->member['language'] = $ipsclass->input['langid']; } //----------------------------------------------------------------------------- // sources/ipsclass.php //----------------------------------------------------------------------------- Znajdź: if ( ( $this->is_bot == 1 ) and ( $this->vars['spider_suit'] != "" ) ) { $skin_set = 1; $id = $this->vars['spider_suit']; } //================== // Dodaj poniżej //================== elseif ( !$this->member['id'] and !$this->member['skin'] and !$this->input['skinid']) { $skin_set = 1; $id = intval($this->my_getcookie("skinchose")); } //================== // Znajdź: //================== if ( isset($this->input['setskin']) AND $this->input['setskin'] AND $this->member['id'] ) { $this->DB->simple_construct( array( 'update' => 'members', 'set' => "skin=".intval($id), 'where' => "id=".$this->member['id'] ) ); $this->DB->simple_exec(); $this->member['skin'] = $id; } //================== // Dodaj poniżej //================== elseif( ($this->input['setskin']) and (!$this->member['id']) ) { $this->my_setcookie("skinchose", intval($id)); $this->member['skin'] = $id; } //----------------------------------------------------------------------------- // sources/classes/class_display.php //----------------------------------------------------------------------------- //================== // Znajdź //================== if ( $this->ipsclass->member['id'] > 0 ) { $lang_jump = $this->ipsclass->compiled_templates['skin_global']->global_lang_chooser( $this->_build_language_list() ); } else { $lang_jump = ""; } //================== // Zamień na: //================== $lang_jump = $this->ipsclass->compiled_templates['skin_global']->global_lang_chooser( $this->_build_language_list() ); Zobacz również: Blokada ręcznego wyboru skina przez gości
  6. DawPi

    Welcome

    Welcome to your new Invision Power Board! Congratulations on your purchase of our software and setting up your community. Please take some time and read through the Getting Started Guide and Administrator Documentation. The Getting Started Guide will walk you through some of the necessary steps to setting up an IP.Board and starting your community. The Administrator Documentation takes you through the details of the capabilities of IP.Board. You can remove this message, topic, forum or even category at any time. Go to the documentation now...
  7. DawPi

    Hosting

    hmm, jest kilka 'for' na webd.pl i radzą sobie całkiem całkiem. Niestety nie mogę powiedzieć jakie to fora
  8. DawPi

    Hosting

    www.webd.pl pakiet: WEBD extra cena za miesiąc: 29,99zł transfer na miesiąc: 40GB miejsce: 3GB Oferta jak znalazł
×
×
  • 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ę.