seelview scrie:man, nush ce ai facut acolo, dar nu exista fisierul overal_header.php ci doar page_header.php.
Iar daca ai facut vreo modificare in bbcode.php ai gresit cu siguranta, pentru ca nu are ce cauta <begin> acolo. Vezi daca nu cumva modificarea trebuia facuta in templates/subSilver/bbcode.tpl (ceea ce chiar trebuia probabil).
Eu zic asa, reia mod-ul, si uita-te foarte atent la ceea ce trebuie sa faci si la fisierele in care trebuie sa faci.
Spor la treaba.
5 - In bbcode.php // in the "/includes" directory
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);
In ce fisier trebuie executat^^???