The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Form Hack question: parsing BBCode in variables
I'm trying to edit the Form Hack mod such that it will parse BBCode and line breaks in the $formpurpose variable. I'll admit right now that while I do have a few years of programming experience under my belt, I'm quite new to PHP, so my apologies if this is a stupid question.
I have found that there is a function called bbcodeparse(), contained in functions.php, that does this. In order to use it, I must include global.php. So, I tried inserting the following code before the eval statement: Code:
require('./global.php'); $formpurpose=bbcodeparse($formpurpose); eval('print_output("' . fetch_template("$maintemplate") . '");'); Your help is appreciated! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|