The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Trying to figure out an update from 3.6 to 3.7.4...
I recently received a BBCode modification, and I tried to install it. I got errors. It worked in vBulletin 3.6.x, but not in 3.7.x. What I need to do is get it up and running. It gave my two plugin codes to install:
The first one went in 'BBCode Fetch Tags' Code:
$tag_list['no_option']['mana'] = array( 'callback' => 'handle_external', 'strip_empty' => true, 'external_callback' => 'handle_bbcode_manacost' ); |
#2
|
||||
|
||||
The function (handle_bbcode_manacost) should ideally be inside its own PHP file in the includes directory. That file should be included at the hook bbcode_start.
|
#3
|
|||
|
|||
bbcode_start doesn't exist. I tried putting it into bbcode_parse_start and it gives me
Fatal error: Cannot redeclare handle_bbcode_manacost() (previously declared in <snip>/forums/includes/class_bbcode.php(343) : eval()'d code:5) in <snip>/forums/includes/class_bbcode.php(343) : eval()'d code on line 5 And this just confuses me to no end... I'm not redeclaring it; this function has never been declared! |
#4
|
||||
|
||||
Sorry, I meant bbcode_create. But also, PHP doesn't lie. (Meaning it has already been declared.)
|
#5
|
|||
|
|||
k. Either way, I got it. My solution was to edit the function explanation itself into the class_bbcode_alt.php file, then drop this as a plugin into BBCode_fetch_tags:
Code:
$tag_list['no_option']['mana'] = array( 'callback' => 'handle_bbcode_manacost', 'strip_empty' => true, 'stop_parse' => true, ); Oh wait. There is one thing left: How can I add a clickable image for it like I would a normal bbcode? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|