The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
3rd party site including vbulletin framework can't display templates
Hey
I'm trying to create my own page with vbulletin vars being available according to this guide: https://vborg.vbsupport.ru/showthread.php?t=228112 I'm using a cms on the domain root http://example.tld/ and the forum being at http://example.tld/forum I created a "bridge class" which gets included to initialize the vB bridge: PHP Code:
the init_vB() function gets called somewhere down the road, inside the cms like this: PHP Code:
BUT: now I'm trying to get a simple vbulletin template, "cms_toplinks". To accomplish this, my test code looks like this: PHP Code:
The output in the CMS is this: HTML Code:
string(74) "<!-- BEGIN TEMPLATE: cms_toplinks --> <!-- END TEMPLATE: cms_toplinks -->" I created the template with the same name (yes, case-sensitive) as a child template to the MASTER-STYLE as suggested in the guide, but still. Doesn't find the template. Any ideas? |
#2
|
|||
|
|||
You need to add "global $bootstrap" where you are including global.php.
|
#3
|
|||
|
|||
Sent you a PM - for some reason when I try to post my response the post is being moderated.
|
#4
|
||||
|
||||
Here kh's post:
Quote:
BUT... now I seem to have the template, but the template parse function does some really weird stuff i only can explian via screenshot. Look at this... Attachment 134626 This happens as soon as I include the $templater->parse() call, no matter if it actually outputs something or not. My code now is like this: PHP Code:
I have no idea where this could come from. maybe an issue with output buffering? But why dump all the php code un-rendered? Is this maybe a vbulletin-related bug? |
#5
|
||||
|
||||
Approved posts. I'm not sure what was catching those posts. :/
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|