Seite 1 von 1

Hide hack Probleme mit 2.06 und News Archive

Verfasst: 26.12.2003 13:54
von Gast
hi @all,

folgendes Problem hab ich hier.

Hidehack funktioniert soweit alles Prima... aber wenn ich aufs News Archive klicke wir der Text zwischen [hide] versteckter Text [/hide] in der form auch angezeigt.... hat da einer eine Loesung wir ich es so abaendere das die Hide funktion auch in den News funktioniert ?

Verfasst: 07.01.2004 15:46
von numskull
Ich bekomme nicht mal den Hide Hack zum laufen, da in der Version 2.0.6 anscheinend was mit dem php code nicht mehr stimmt.

Die Zeile:
Find in function "bbencode_first_pass"

// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\](([a-z]+?)://([^ \"\n\r]+?))\[/img\]#si", "[img:$uid]\\1[/img:$uid]", $text);
in der bbcode.php existiert so nicht :o

Kann mir da jemand helfen? Gibt es mittlerweile n Update für 2.0.6 ? Der Hack ist ja laut Page nur bis 2.0.4...

Verfasst: 07.01.2004 16:51
von digij
@numskull,
Es funktioniert mit dem Version 2.0.6

Finde

Code: Alles auswählen

// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
	$text = bbencode_first_pass_pda($text, $uid, '[quote]', '[/quote]', '', false, '');
	$text = bbencode_first_pass_pda($text, $uid, '/\[quote=(\\\".*?\\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=\\1]");
Füge danach

Code: Alles auswählen

//[hide]message[/hide]
$text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","[hide:$uid]\\1[/hide:$uid]", $text);  

Verfasst: 07.01.2004 17:26
von numskull
Super! Danke nu klappts. :D