Seite 1 von 1

Problem:hide hack

Verfasst: 28.11.2003 17:04
von Olaf
Hi Hab den Hide Hack installiert:
Folgende Probleme:

Auf der Portal.php erscheint das
Parse error: parse error in /home/webuser/web2/html/includes/bbcode.php on line 332

Warning: Cannot add header information - headers already sent by (output started at /home/webuser/web2/html/includes/bbcode.php:332) in /home/webuser/web2/html/includes/page_header.php on line 511

Warning: Cannot add header information - headers already sent by (output started at /home/webuser/web2/html/includes/bbcode.php:332) in /home/webuser/web2/html/includes/page_header.php on line 513

Warning: Cannot add header information - headers already sent by (output started at /home/webuser/web2/html/includes/bbcode.php:332) in /home/webuser/web2/html/includes/page_header.php on line 514
Fatal error: Call to undefined function: make_clickable() in /home/webuser/web2/html/portal.php on line 396

Der hide hack an sich funzt auch nit... der button is zwar da aber sonst..

Verfasst: 28.11.2003 17:07
von Olaf
Posten kann ich auch nich...
$text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text);

// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
//[hide]message[/hide]
$text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","[hide:$uid]\\1[/hide:$uid]", $text)
// Remove our padding from the string..
return substr($text, 1);;

} // bbencode_first_pass()

/**
* $text - The text to operate on.
* $uid - The UID to add to matching tags.
* $open_tag - The opening tag to match. Can be an array of opening tags.
* $close_tag - The closing tag to match.
* $close_tag_new - The closing tag to replace with.
* $mark_lowest_level - boolean - should we specially mark the tags that occur

Verfasst: 28.11.2003 17:08
von olaf
das war Zeile 332 in bbcode

Hier ist Zeile 194, die is auch fehlerhaft
// prepare array for use in regexps.
$bbcode_tpl = prepare_bbcode_template($bbcode_tpl);
}

//

Code: Alles auswählen

 and 
for posting code (HTML, PHP, C etc etc) in your posts.
$text = bbencode_second_pass_code($text, $uid, $bbcode_tpl);

//
and
for posting replies with quote, or just for quoting stuff.
$text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text);
$text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text);

// New one liner to deal with opening quotes with usernames...
// replaces the two lin

Verfasst: 28.11.2003 17:31
von Olaf
Also irgendwo muss ich ja den Fehler eingebaut haben...
Zusätzliches Problem... ich bin völlig neu in der Board-branche :(
Bitte um schnelle Hilfe,thx