The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
anyway to do this without loading global.php. I tried to load just init.php and i got
$globaltemplates = array( 'bbcode_code', 'bbcode_html', 'bbcode_php', 'bbcode_quote', ); cache_templates($globaltemplates, $style['templatelist']); unset($globaltemplates); $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); function parse_bbcode($txt, $fid) { global $bbcode_parser; return $bbcode_parser->do_parse($txt, false, true, true, true, true, false); } but it doesnt get put Quote: this was quoted from blahblah or something like that the quoted text Then the post here. It just puts : the quoted text Then the post here. anyway to get this to work without global. As i cant seem to get global to work right the site. It just gives blank pages. Hmm, ok i found a way around it but i dont really like it. Still wondering if there is a way around using global. Right now i am just including global when it shows up as an actually webpage. if (strstr($_SERVER['REQUEST_URI'],'html') === 'html') then i include global otherwise i include the init script instead. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|