no wiec cos takiego bz trzeba zrobic??
Kod:
##
##---Otwórz---
##
posting.php
##
##----Znajdź
##
$message = '[quote="' . $quote_username . '"]' . $message . '[/quote]';
##
##---Zmień na
##
$message = $wrote;
switch ($row['user_gender'])
{
case 1:
if ( $message ) $wrote = '[quote="' . $quote_username . '"]' . $message . '[/quote]';
break;
case 2:
if ( $message ) $wrote = '[fquote="' . $quote_username . '"]' . $message . '[/fquote]';
break;
default:
if ( $message ) $wrote = '[itquote="' . $quote_username . '"]' . $message . '[/itquote]';
break;
}
##
##---Otwórz---
##
language/lang_polish/lang_main.php
##
##---Znajdź
##
$lang['wrote'] = 'napisał';
##
##---Zmień na
##
$lang['wrote'] = 'napisał';
$lang['wrote_f'] = 'napisała';
$lang['wrote_it'] = 'napisało';
##
##-----otwórz
##
includes/bbcode.php
##
##-----[ FIND ]------------------------------------------
##
$bbcode_tpl['quote_username_open'] = str_replace('{USERNAME}', '\\1', $bbcode_tpl['quote_username_open']);
##
##-----[ AFTER, ADD ]------------------------------------------
##
$bbcode_tpl['fquote_username_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['itquote_username_open']);
$bbcode_tpl['fquote_username_open'] = str_replace('{L_WROTE_F}', $lang['wrote_f'], $bbcode_tpl['fquote_username_open']);
$bbcode_tpl['fquote_username_open'] = str_replace('{USERNAME}', '\\1', $bbcode_tpl['fquote_username_open']);
$bbcode_tpl['itquote_username_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['itquote_username_open']);
$bbcode_tpl['itquote_username_open'] = str_replace('{L_WROTE_IT}', $lang['wrote_it'], $bbcode_tpl['itquote_username_open']);
$bbcode_tpl['itquote_username_open'] = str_replace('{USERNAME}', '\\1', $bbcode_tpl['itquote_username_open']);
##
##-----[ FIND ]------------------------------------------
##
// [quote] and [/quote] for posting replies with quote, or just for quoting stuff.
##
##-----[ Before, ADD ]------------------------------------------
##
// [FQUOTE] and [/FQUOTE] for posting replies with quote, or just for quoting stuff.
$text = str_replace("[fquote:$uid]", $bbcode_tpl['fquote_open'], $text);
$text = str_replace("[/fquote:$uid]", $bbcode_tpl['fquote_close'], $text);
// New one liner to deal with opening quotes with usernames...
// replaces the two line version that I had here before..
$text = preg_replace("/\[fquote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['fquote_username_open'], $text);
// [ITQUOTE] and [/ITQUOTE] for posting replies with quote, or just for quoting stuff.
$text = str_replace("[itquote:$uid]", $bbcode_tpl['itquote_open'], $text);
$text = str_replace("[/itquote:$uid]", $bbcode_tpl['itquote_close'], $text);
// New one liner to deal with opening quotes with usernames...
// replaces the two line version that I had here before..
$text = preg_replace("/\[itquote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['itquote_username_open'], $text);
##
##-----[ FIND ]------------------------------------------
##
// [quote] and [/quote] for posting replies with quote, or just for quoting stuff.
##
##-----[ Before, ADD ]------------------------------------------
##
// [FQUOTE] and [/FQUOTE] for posting replies with quote, or just for quoting stuff.
$text = bbencode_first_pass_pda($text, $uid, '[fquote]', '[/fquote]', '', false, '');
$text = bbencode_first_pass_pda($text, $uid, '/\[fquote=\\\\"(.*?)\\\\"\]/is', '[/fquote]', '', false, '', "[fquote:$uid=\\\"\\1\\\"]");
// [ITQUOTE] and [/ITQUOTE] for posting replies with quote, or just for quoting stuff.
$text = bbencode_first_pass_pda($text, $uid, '[itquote]', '[/itquote]', '', false, '');
$text = bbencode_first_pass_pda($text, $uid, '/\[itquote=\\\\"(.*?)\\\\"\]/is', '[/itquote]', '', false, '', "[itquote:$uid=\\\"\\1\\\"]");
##
##-----[ OPEN ]------------------------------------------
##
templates/subSilver/bbcode.tpl
##
##-----[ FIND ]------------------------------------------
##
<!-- BEGIN quote_username_open -->
##
##-----[ Before, ADD ]------------------------------------------
##
<!-- BEGIN fquote_username_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td><span class="genmed"><b>{USERNAME} {L_WROTE_F}:</b></span></td>
</tr>
<tr>
<td class="quote"><!-- END fquote_username_open -->
<!-- BEGIN itquote_username_open --></span>
<table width="90%" cellspacing="1" cellpadding="3" border="0" align="center">
<tr>
<td><span class="genmed"><b>{USERNAME} {L_WROTE_IT):</b></span></td>
</tr>
<tr>
<td class="quote"><!-- END itquote_username_open -->