What's the syntax for this dice bbcode?
Would it be [dice] ?
The quickest way to achieving just the above would be adding a str_replace() in the parse_bbcode function, like:
PHP Code:
function parse_bbcode($bbcode, $forumid = 0, $allowsmilie = 1, $isimgcheck = 0, $parsedtext = '', $parsedhasimages = 0, $iswysiwyg = 0)
{
// $parsedtext contains text that has already been turned into HTML and just needs images checking
// $parsedhasimages specifies if the text has images in that need parsing
global $vboptions, $parsed_postcache;
$donl2br = 1;
$bbcode = str_replace('[dice]', dice_function_that_returns_string(), $bbcode); // look for dice