The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Trying to auto build a Foum block
Hello,
I'm trying to automatically build a Forum block for one of my mods, using the code: 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); Thank you Maria |
#2
|
|||
|
|||
if you have able to create block in forumblockmanager then there maybe something wrong with php code.
in php type you need to use Code:
return $var; For ex: PHP Code:
|
#3
|
|||
|
|||
Quote:
Maria |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|