MaryTheG(r)eek
07-17-2011, 04:52 PM
Hello,
I'm trying to automatically build a Forum block for one of my mods, using the code:
require_once(DIR . '/includes/class_block.php');
require_once(DIR . '/includes/functions_misc.php');
$blockmanager = vB_BlockManager::create($vbulletin);
$setting = Array();
$setting[html_type] = 'php';
$setting[html_content] = $output;
$setting[html_template] = 'block_html';
$blockmanager->saveNewBlock(1, $title, 'Classifieds', 15, $setting);
I can see the Block in the Forum Blocks, is active, all fields are correct, but the block is not appearing on the sidebar. Attached is a screenshoot from the Block Manager. Does someone knows what maybe is wrong?
Thank you
Maria
I'm trying to automatically build a Forum block for one of my mods, using the code:
require_once(DIR . '/includes/class_block.php');
require_once(DIR . '/includes/functions_misc.php');
$blockmanager = vB_BlockManager::create($vbulletin);
$setting = Array();
$setting[html_type] = 'php';
$setting[html_content] = $output;
$setting[html_template] = 'block_html';
$blockmanager->saveNewBlock(1, $title, 'Classifieds', 15, $setting);
I can see the Block in the Forum Blocks, is active, all fields are correct, but the block is not appearing on the sidebar. Attached is a screenshoot from the Block Manager. Does someone knows what maybe is wrong?
Thank you
Maria