Hai
I use the Hide bbcode from IM 41 but when a member use the Quote than the Hide is not visible thats oke
But when a member use the Quick Quote than de hide code is visible
the code from the mod for de normal Quote is
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;
}
How can i do it for the Quick Quote
Greetz Dungeon