View Full Version : vb4 custom footer
April 30th, 2013, 04:31 PM
Ive attempted to use a custom footer 2 different ways with no effect.
eval('$vbfooter = "' . fetch_template('footer') . '";');
eval('$vbfooter = "' . fetch_template('gallery_footer') . '";');
Ive also attempted this via footer.htm, but im using the vb integration, so this shouldnt work.
How do we use a custom template to produce a customer footer?
April 30th, 2013, 04:46 PM
well what you would modify depends on what type of vb your using.
We simply pull the $footer variable from vbulletin which is already predefined in vbulletin.
The code your noting is for vbulletin 3 I beleive.
You can try adding this code where noted in the header-inc.php file but this is not tested so not sure if it works.
$templater = vB_Template::create('gallery_footer');
$footer = $templater->render();
define( "VB40", 'on' );
April 30th, 2013, 05:36 PM
That worked Chuck, thanks, could of swore i tried that too, maybe i ordered it wrong....
1 issue though, the style chooser is broke, it just shows blank, not a huge deal, kinda odd though...
Can i also call a customer navbar this way?
Did test it out, but the navbar is blank, even with a copy of the default navbar template copied in....
It also appears all the footer links for vb are linked wrong as well admincp & modcp, which i could simply re-code the links, looks like this make an incorrect call to global or missing it.
April 30th, 2013, 06:15 PM
Ok, as this wasnt working out to well in the sense of manipulating the pp code & calling templates, i simply changed strategies & instead im using vb:if's, vb:else & THIS_SCRIPT ! to manipulate my ads based on being on a pp page.
April 30th, 2013, 06:38 PM
Like I said I have no idea what else would be needed to do nothing I ever tried.
You probally need to register variables in that template
That would probally need to be called after the create line
You can do if things in the vb footer that works also.
April 30th, 2013, 06:43 PM
Yea, i just returned header-inc to default & went the other direction, seems to be to much in the sense of code changing & additions to keep it separated & use its own templates for pp.
April 30th, 2013, 06:49 PM
whatever works right. ;)
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.