I'd like to adapt this [url=http://www.phpbbhacks.com/download/4366]Dice[/url] for phpBB3. I don't want the mods distributed on phpBB.com.
I did this:
In the template file bbcode.html:
Code: Select all
<!-- BEGIN dice_title_open --><blockquote><div><cite>{TITLE}:</cite><!-- END dice_title_open -->
<!-- BEGIN dice_open --><blockquote class="uncited"><div><!-- END dice_open -->
<!-- BEGIN dice_close --></div></blockquote><!-- END dice_close -->
In the includes/bbcode.php I added:
Code: Select all
case 13:
$this->bbcode_cache[$bbcode_id] = array(
'str' => array(
'[/dice:$uid]' => $this->bbcode_tpl('dice_close', $bbcode_id)
),
'preg' => array(
'#\[dice(?:="(.*?)")?:$uid\]((?!\[dice(?:=".*?")?:$uid\]).)?#ise' => "\$this->bbcode_second_pass_dice('\$1', '\$2')"
)
);
break; Â
Code: Select all
'dice_title_open' => array('{TITLE}' => '$1'), Â
My main problem is message_parser.php and the bbcode.php. It must be like the Quote Tag. But it doesn't work.
Thanks per advance.
See you soon,