If you edit the new line in bbcode.html (in styles\...\template) and change it from:xnitelifex wrote: Suggestions:
-message to be in bold, color, etc. to stand out more
Code: Select all
<!-- BEGIN url_hidden -->{L_URL_HIDDEN}<!-- END url_hidden -->
Code: Select all
<!-- BEGIN url_hidden --><span style="background-color:#FAFAFA; border:#D1D7DC solid 1px; color:#444444;"> {L_URL_HIDDEN} </span><!-- END url_hidden -->
That would be excellent.s60Addict wrote:Also, try to include the URL's in [ CODE ] tags..
Code: Select all
case 8:
$this->bbcode_cache[$bbcode_id] = array(
'preg' => array(
'#\[code(?:=([a-z]+))?:$uid\](.*?)\[/code:$uid\]#ise' => "\$this->bbcode_second_pass_code('\$1', '\$2')",
)
);
break;
Code: Select all
case 8:
if ($user->data['user_id'] != ANONYMOUS)
{
$this->bbcode_cache[$bbcode_id] = array(
'preg' => array(
'#\[code(?:=([a-z]+))?:$uid\](.*?)\[/code:$uid\]#ise' => "\$this->bbcode_second_pass_code('\$1', '\$2')",
)
);
}
else
{
$this->bbcode_cache[$bbcode_id] = array(
'preg' => array(
'#\[code(?:=([a-z]+))?:$uid\](.*?)\[/code:$uid\]#ise' => "\$this->bbcode_second_pass_code_hidden('\$1', '\$2')",
)
);
}
break;
Code: Select all
$code = $this->bbcode_tpl('code_open') . $code . $this->bbcode_tpl('code_close');
return $code;
}
Code: Select all
function bbcode_second_pass_code_hidden($type, $code)
{
// when using the /e modifier, preg_replace slashes double-quotes but does not
// seem to slash anything else
$code = str_replace('\"', '"', $code);
switch ($type)
{
case 'php':
// Not the english way, but valid because of hardcoded syntax highlighting
if (strpos($code, '<span class="syntaxdefault"><br /></span>') === 0)
{
$code = substr($code, 41);
}
// no break;
default:
$code = str_replace("\t", ' ', $code);
$code = str_replace(' ', ' ', $code);
$code = str_replace(' ', ' ', $code);
// remove newline at the beginning
if (!empty($code) && $code[0] == "\n")
{
$code = substr($code, 1);
}
break;
}
$code = $this->bbcode_tpl('code_open') . $code = $this->bbcode_tpl('code_hidden') . $this->bbcode_tpl('code_close');
return $code;
}
Code: Select all
));
?>
Code: Select all
'CODE_HIDDEN' => 'CODE is hidden from guests, please register and login to view the code',
Code: Select all
<!-- BEGIN code_open --><dl class="codebox"><dt>{L_CODE}: <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></dt><dd><code><!-- END code_open -->
<!-- BEGIN code_close --></code></dd></dl><!-- END code_close -->
Code: Select all
<!-- BEGIN code_hidden -->{L_CODE_HIDDEN}<!-- END code_hidden -->
Code: Select all
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /forums/includes/bbcode.php on line 600
Isnt that what the title says??shinzo wrote:can be used with PHPPbb3 Olympus?
oo i c.Muad''Dib wrote:Isnt that what the title says??shinzo wrote:can be used with PHPPbb3 Olympus?