Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

Mam już legalnego IP.Shoutbox'a 1.0.2 i zacząłem go instalować wg tego poradnika: http://forum.invisionize.pl/index.php?showtopic=1547

Zdecydowałem się na dodanie shoutboxa we wrapper. W instrukcji jest napisane:

Otwórz plik: sources/classes/class_display.php

Znajdź:

$this->ipsclass->skin['_wrapper'] = str_replace( "<% CHARSET %>"		, $this->ipsclass->vars['gb_char_set'], $this->ipsclass->skin['_wrapper']);

Tu wynikł pierwszy błąd: nie ma u mnie w pliku takiej linijki. Są tylko:

$this->ipsclass->skin['_wrapper'] = str_replace( "<% CSS %>"			, $css								, $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% JAVASCRIPT %>"	 , $output_array['JS']				 , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% TITLE %>"		  , $output_array['TITLE']			  , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% BOARD %>"		  , $this->to_print					 , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% STATS %>"		  , $stats							  , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% GENERATOR %>"	  , $this->_get_rss_export()			, $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% COPYRIGHT %>"	  , $copyright						  , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% BOARD HEADER %>"   , $this_header						, $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% BOARD FOOTER %>"   , $this_footer						, $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% NAVIGATION %>"	 , $nav								, $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% SKINCHOOSER %>"	, $skin_jump						  , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% LANGCHOOSER %>"	, $lang_jump						  , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% QUICKSTATS %>"	 , $quickstats						 , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% LOFIVERSION %>"	, $this->_get_lofi_link()			 , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% SYNDICATION %>"	, $this->_get_synd_link()			 , $this->ipsclass->skin['_wrapper']);
$this->ipsclass->skin['_wrapper'] = str_replace( "<% ADVERTISEMENT %>"  , $advertisement					  , $this->ipsclass->skin['_wrapper']);

No więc dodałem poniżej

$this->ipsclass->skin['_wrapper'] = str_replace( "<% CHARSET %>"		, $this->ipsclass->vars['gb_char_set'], $this->ipsclass->skin['_wrapper']);

i zaraz po tym

Dodaj poniżej:

		//-----------------------------------------
	// IP.Shoutbox
	//-----------------------------------------
	if ( !($this->ipsclass->input['_low_act'] == 'component' && strtolower($this->ipsclass->input['module']) == 'shoutbox') )
	{
		require_once(ROOT_PATH.'sources/components_public/shoutbox/display.php');
		$this->shoutbox =  new shoutbox_display( $this->ipsclass );

		$this->ipsclass->skin['_wrapper'] = str_replace( "<!--IP.Shoutbox-->", $this->shoutbox->display_shoutbox_global(), $this->ipsclass->skin['_wrapper'] );
	}

Potem dodałem do wrappera "<!--IP.Shoutbox-->" i wyskoczył mi błąd:

Warning: mktime() expects parameter 4 to be long, string given in /home/asthi/public_html/forum/sources/ipsclass.php on line 4621

,

gdzie linia 4621 to

$time   = mktime( $hour, $min, $sec, $month, $day, $year );

w funkcji

function date_gmmktime( $hour=0, $min=0, $sec=0, $month=0, $day=0, $year=0 )
 {
	  [...]

	  // Generate server based timestamp
	 $time   = mktime( $hour, $min, $sec, $month, $day, $year );

Sam shoutbox zaś wygląda tak:

shoutboxip.png

Gdzie popełniłem błąd?

calibrakz3.png

  • Manager
Opublikowano

Błąd w instalacji - żaden.

To problem ( nie błąd! ) związany z polskimi datami, jakie masz na forum.

Naprawa polskich dat w IP.Shoutbox. Nie dopisałem w tym temacie by jeszcze zmienić format daty w ustawieniach SB na takie, co odpowiadają formacie forum.

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • 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ę.