The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I've got a problem I've been working on for the past few days to no avail. I wanted to give it a shot myself before taking the easy way out and just posting here.
I'm trying to create a new custom bbcode that will display the contents of a template when it's called. I tried to edit the class_bbcode.php file and add it in there but I couldn't seem to get it to work. I somewhat copied a few of the existing codes and modified them but in the end the template would never display even though I didn't get any errors. This is what I tried: Added the following after the // [QUOTE] code on line 2171 of class_bbcode.php Code:
// [RIBBONS] $tag_list['no_option']['ribbons'] = array( 'callback' => 'handle_bbcode_ribbons' ); Code:
function handle_bbcode_ribbons($ribbontext) { global $vbulletin, $show; $template = 'tgribbons_display'; eval('$html = "' . fetch_template($template) . '";'); return $html; } Any ideas what i'm missing/forgetting? EDIT/UPDATE: Okay, my code above actually works. It was the template I was calling that had the problem as it relies on another set of plugins to operate. I answered my own question, but it seems others were looking to do something similar so this may help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|