Tarih: 2005-06-10, 10:59:01 Mesaj konusu: Re: 20.15 kurulu buna hide arıyorum
sayfayı açınca böle şeykler çıkıyor
$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']); Add Below $bbcode_tpl['show'] = str_replace('{HTEXTE}', '\\1', $bbcode_tpl['show']); *Before* this text /** * Does second-pass bbencoding. This should be used before displaying the message in * a thread. Assumes the message is already first-pass encoded, and we are given the * correct UID as used in first-pass encoding. */ Add this functions function hide_in_quote($text) { $text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","--- phpBB : The Protected Message is not copied in this quote ---", $text); return $text; } function bbencode_third_pass($text, $uid, $deprotect) { global $bbcode_tpl; // pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0). // This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it. $text = " " . $text; // First: If there isn't a "[" and a "]" in the message, don't bother. if (! (strpos($text, "[") && strpos($text, "]")) ) { // Remove padding, return. $text = substr($text, 1); return $text; } // Patterns and replacements for URL and email tags.. $patterns = array(); $replacements = array(); if ( $deprotect ) { $patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si"; $replacements[0] = $bbcode_tpl['show']; } else { $patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si"; $replacements[0] = $bbcode_tpl['hide']; } $text = preg_replace($patterns, $replacements, $text); // Remove our padding from the string.. $text = substr($text, 1); return $text; } 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); Add Below //[hide]message[/hide] $text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","[hide:$uid]\\1[/hide:$uid]", $text);
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\keyforum.com\httpdocs\kf\includes\bbcode.php:801) in C:\Inetpub\vhosts\keyforum.com\httpdocs\kf\includes\page_header.php on line 475
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\keyforum.com\httpdocs\kf\includes\bbcode.php:801) in C:\Inetpub\vhosts\keyforum.com\httpdocs\kf\includes\page_header.php on line 477
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\keyforum.com\httpdocs\kf\includes\bbcode.php:801) in C:\Inetpub\vhosts\keyforum.com\httpdocs\kf\includes\page_header.php on line 478
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız