Seite 1 von 1

bbencode_strip

Verfasst: 23.11.2002 10:45
von camerino
Hallo zusammen,
diese fehlermeldungen kommen von einem Fullymodded
Fatal error: Call to undefined function: bbencode_strip() in /usr/local/psa/home/vhosts/leu.it/httpdocs/forum/viewforum.php on line 649
viewforum.php sieht so aus :
if( $total_topics )
{
for($i = 0; $i < $total_topics; $i++)
{
$topic_id = $topic_rowset[$i]['topic_id'];

$topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_rowset[$i]['topic_title']) : $topic_rowset[$i]['topic_title'];

$topic_content = $topic_rowset[$i]['post_text'];
$bbcode_uid = $topic_rowset[$i]['bbcode_uid'];
Dass ist die 649
==>
$topic_content = bbencode_strip($topic_content, $bbcode_uid);
if (strlen($topic_content) > 200)
{
$topic_content = substr($topic_content, 0, 200) . "...";
}
else
{
$topic_content = $topic_content;
}

$replies = $topic_rowset[$i]['topic_replies'];

$topic_type = $topic_rowset[$i]['topic_type'];

if( $topic_type == POST_ANNOUNCE )
{
$topic_type = $lang['Topic_Announcement'] . ' ';
}
else if( $topic_type == POST_GLOBAL_ANNOUNCE )
{
$topic_type = $lang['Topic_global_announcement'] . ' ';
}
else if( $topic_type == POST_STICKY )
{
$topic_type = $lang['Topic_Sticky'] . ' ';
}
else
{
$topic_type = '';


und noch ein Fehler:
Fatal error: Call to undefined function: generate_full_pagination() in /usr/local/psa/home/vhosts/leu.it/httpdocs/forum/viewtopic.php on line 773
die dazugehörenden lines:
// If we've got a hightlight set pass it on to pagination,
// I get annoyed when I lose my highlight after the first page.
//
$pagination = ( $highlight_active ) ? generate_full_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=" . $HTTP_GET_VARS['highlight'], $total_replies, $board_config['posts_per_page'], $start) : generate_full_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);
Kan mir jemand helfen?

Verfasst: 24.11.2002 01:01
von Markocat
wegen den ersten Fehler öffne mal die Datei includes/bbcode.php

und füge ganz unden ein vor den Code

Code: Alles auswählen

//
// Mouse hover topic preview MOD - BEGIN
//

function bbencode_strip($message, $uid)
{

	$message = strip_tags($message);

	// url #2
	$message = str_replace("[url]","", $message);
	$message = str_replace("[/url]", "", $message);

	// url /\[url=([a-z0-9\-\.,\?!%\*_\/:;~\\&$@\/=\+]+)\](.*?)\[/url\]/si
	$message = preg_replace("/\[url=([a-z0-9\-\.,\?!%\*_\/:;~\\&$@\/=\+]+)\]/si", "", $message);
	$message = str_replace("[/url:$uid]", "", $message);

	$message = preg_replace("/\[.*?:$uid:?.*?\]/si", '', $message);
	$message = preg_replace('/\[url\]|\[\/url\]/si', '', $message);
	$message = str_replace('"', "'", $message);
	return $message;

}

//
// Mouse hover topic preview MOD - END
//
hierbei hantelt es sich nähmlich um den Mouse hover topic preview Mod

wegen den 2 Fehler muss ich erstmal schauen
falls der erste sich so nicht beheben lässt setz ich mal den gesammten Mod rein

Verfasst: 24.11.2002 12:48
von camerino
xxx markocat vielen Dank, ein Schritt weiter geht's jetzt.

Es bleibt noch dieser Error:
Fatal error: Call to undefined function: generate_full_pagination() in /usr/local/psa/home/vhosts/leu.it/httpdocs/forum/viewtopic.php on line 773