The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Created new page ... How do I get the footer in it?
Hello,
I'm sorry if this is a FAQ. I've searched a bit and haven't been able to glean an answer from what I've read. Per management, I've added a new page to a development site. Everything looks great, but the page isn't rendering a footer when displayed. Here's my render code, including a recent attempt to force a footer to show up... PHP Code:
I welcome any assistance anyone can offer (apart from suggestions about job hunting ) - thanks! |
#2
|
||||
|
||||
REmove this stuff:
HTML Code:
// Can't get the footer to show!! This apparently will NOT work: $myfooter = vB_Template::create('footer'); $myfooter->register_page_templates(); print_output($myfooter->render()); HTML Code:
print_output($templater->render()); If it's not showing, then perhaps you have some error in it somewhere. |
#3
|
|||
|
|||
Yes, global.php is required, and we get past that point.
And no lint issues: $php -l pfs.php No syntax errors detected in pfs.php I will check the server logs, though --- thanks. --------------- Added [DATE]1330456767[/DATE] at [TIME]1330456767[/TIME] --------------- Nothing in the logs. I can workaround this by pasting the footer template code in the template I'm calling for my new page, but it feels so dirty :erm: I'll be making one more page/script tomorrow (or perhaps I'll be able to start later today). I'll post if I can make anymore headway. --------------- Added [DATE]1330456922[/DATE] at [TIME]1330456922[/TIME] --------------- Doesn't seem to be an error in the footer, as it works elsewhere throughout the site. But thanks anyway..... |
#4
|
||||
|
||||
kkinsey, this might be a stupid thing to ask, but are you certain you have a {vb:raw footer} bit in your template?
Here's what I use as a "generic" template, in cae it might help: HTML Code:
{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> {vb:raw headinclude} <title>{vb:raw vboptions.bbtitle}<vb:if condition="$pagetitle"> :: {vb:raw pagetitle}</vb:if></title> <vb:if condition="$show['sidebar']"> <script type="text/javascript" src="{vb:stylevar yuipath}/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script> <script type="text/javascript"> var sidebar_align = '<vb:if condition="$vboptions['sidebarposition'] == 0">left<vb:else />right</vb:if>'; var content_container_margin = parseInt('{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}}'); var sidebar_width = parseInt('{vb:stylevar forum_sidebar_width}'); </script> <script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-sidebar.js?v={vb:raw vboptions.simpleversion}"></script> </vb:if> {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} <div id="pagetitle"> <h1>{vb:raw vboptions.bbtitle}</h1> <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p> </div> <vb:if condition="$show['sidebar']"> <div id="content_container"<vb:if condition="$vboptions['sidebarposition'] == 0"> class="contentright"</vb:if>> <div id="content"> </vb:if> <!-- main --> {vb:raw main} <!-- /main --> <vb:if condition="$show['sidebar']"> </div> </div> <div id="sidebar_container"<vb:if condition="$vboptions['sidebarposition'] == 0"> class="sidebarleft"</vb:if>> <a id="sidebar_button_link" href="#"> <vb:if condition="$vboptions['sidebarposition'] == 0"> <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" /> <vb:else /> <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" /> </vb:if> </a> <ul id="sidebar"> {vb:raw sidebar} </ul> </div> </vb:if> {vb:raw footer} </body> </html> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|