Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
smart
Mitglied
Beiträge: 767 Registriert: 25.01.2005 02:05
Kontaktdaten:
Beitrag
von smart » 10.05.2005 14:58
Hi!
Ich wollte den phpopenchat einbauen, bekomme jetzt aber folgende Fehlermeldung, wenn ich die poc_loginform.php öffnen will:
Kann mir einer sagen, was das heißen soll? Der Pfad trägt sonst natürlich die Adresse meiner Domain - habe ich nur für euch geändert...
smart
Mitglied
Beiträge: 767 Registriert: 25.01.2005 02:05
Kontaktdaten:
Beitrag
von smart » 10.05.2005 16:26
Um Zeile 331 sieht es so aus:
Code: Alles auswählen
/**
* Provides the template with path and outputs html
*
* @access public
*/
function get_template( $template=null, $path_only = false )
{
if( ! $this->template = $this->_find_template($template) )
die('No such template found, giving up.');
if($path_only) return $this->template;
global $TEMPLATE_OUT;
ob_start();
if( !file_exists($this->template) ) {
/* in case user changed directory structure and
* has created the session object already */
$this->_build_pathes();
$this->template = $this->_find_template();
}
include_once($this->template);
$content = (TRIM_OUTPUT)? preg_replace('/([\r\n])[\s]+/', "\r\n", ob_get_contents()):ob_get_contents();
ob_end_clean();
$content = '<?xml version="1.0" encoding="'.$_SESSION['translator']->out('CHARACTER_ENCODING').'"?>'.NL.$content;
header('Content-type: '.$this->content_type.'; charset='.$_SESSION['translator']->out('CHARACTER_ENCODING'));
print $content;
flush();
if( $this->cache_it )
{
if( !$this->_put_into_cache( $content ) )
$_SESSION['logger']->debug('Could not cache template',__FILE__,__LINE__);
$this->cache_it = false;
$this->cache_max_age = 0;
}
exit;
}
/**
* Searches for a template in right language, if such template not found
* the template in default language will be returned
*
* @access public
*/
function get_language_template( $template = null )
{
if( ! $this->template = $this->_find_template($template) )
die('No such template found, giving up.');
global $TEMPLATE_OUT;
ob_start();
if( file_exists($this->template.'.'.$_SESSION['chat']->get_language()) )
include_once($this->template.'.'.$_SESSION['chat']->get_language());
else
include_once($this->template.'.'.$_SESSION['chat']->get_default_language());
$content = (TRIM_OUTPUT)? preg_replace('/([\r\n])[\s]+/', "\r\n", ob_get_contents()):ob_get_contents();
ob_end_clean();
$content = '<?xml version="1.0" encoding="'.$_SESSION['translator']->out('CHARACTER_ENCODING').'"?>'.NL.$content;
header('Content-type: '.$this->content_type.'; charset='.$_SESSION['translator']->out('CHARACTER_ENCODING'));
print $content;
exit;
}
/**
* Provides the current choosen theme
*
* @return string
*/
function get_theme()
{
return $this->theme;
}
/**
* Provides content from cache
* @param string maximum age for the cached content
* @return string
*/
function get_cached_content( $max_age )
{
if( !is_object($_SESSION['chat']) || !CACHE_ENGINE ) return false;
$cacheId = $this->_calculate_cacheId();
$_SESSION['chat']->connect();
$cached_content = $_SESSION['chat']->get_template_from_cache($cacheId);
$_SESSION['chat']->disconnect();
if($cached_content == '')
{
$this->cache_it = true;
$this->cache_max_age = intval($max_age);
return false;
}
print $cached_content;
exit;
}
function get_web_root()
{
return $this->web_root;
}
/**
* Provides the path to the current theme
*
* @return string
*/
function get_tmpl_web_path()
{
//path clean up
//$this->tmpl_web_path = preg_replace('#//#','',$this->tmpl_web_path);
return $this->tmpl_web_path;
}
function get_theme_path() {return $this->get_tmpl_web_path();}
/**
* Provides the path to the current theme
*
* @return string
*/
function get_path( $path )
{
if($path=='THEME_PATH')
return $this->get_theme_path();
}
/**
* Provides the web path to POC
*
* @return string
*/
function get_poc_web_root()
{
return 'http://'.$_SERVER['SERVER_NAME'].$this->poc_web_root;
}
/**
* Provides the path to the current theme
*
* @return string
*/
function get_tmpl_sys_path()
{
return $this->tmpl_sys_path;
}
Komme noch immer nicht weiter...
Zyancali
Mitglied
Beiträge: 209 Registriert: 09.01.2005 18:55
Wohnort: Österreich/Stmk
Kontaktdaten:
Beitrag
von Zyancali » 10.05.2005 21:39
Noch nie den Editierenbutton rechts oben beim post geshen ?!
Benutz den gefälligst!
zur Lösung deines Problems: Die meldungen sagen das die/der angeforderte Datei/Order nicht existent ist!
Aber in der datei sehe ich keinen fehler!
Windows Vista Ultimate User
smart
Mitglied
Beiträge: 767 Registriert: 25.01.2005 02:05
Kontaktdaten:
Beitrag
von smart » 11.05.2005 01:40
Hm, es gibt sie aber...
Danke trotzdem, mache mich mal weiter an die Arbeit oder auf die Suche nach einem anderen Chatsystem (nachdem ich in alten Threads schlechte Meinungen gelesen habe).
Natürlich kenne ich die Editier-Funktion, aber ich wollte den Beitrag nicht zu lang machen!