The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Brain freeze on vB_Template::preRegister
I have a custom template cportal, this is simple a head and footer template, and i use a php script to fill in between the lines fro outside forum pages. In the php file i have a meta section that i add meta data such as OG: and twiter card info.
I then have it al saved as $mymeta, then i run this vB_Template:reRegister('headinclude', array('mymeta' => $mymeta)); inside the top of the headinclude template i have {vb:raw mymeta} this is not displaying any of the data though? I have spent a couple of hours looking at this, somthing I thought I had working all along but not so. |
#2
|
||||
|
||||
if you are trying to inject the data into your cportal template, then you need to add the vb:raw to that template, and change your Register to cportal instead of headinclude.
Code:
vB_Template::preRegister('cportal',array('mymeta' => $mymeta)); Code:
$globaltemplates = array( 'cportal', ) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|