Where Oh Where is the Body Tag in the Footer?
Collapse
X
-
-
It's not in the footer template. Each page template has the closing </body> and </html> tags at the bottom. Here's the code for the shell_blank template, which is a simplified version of a complete page. If you put your code at the end of the footer template, it will fall just before the </body> tag.
Code:{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> {vb:raw headinclude} <title>{vb:raw pagetitle}</title> {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} {vb:raw html} {vb:raw footer} </body> </html>
-
Comment
-
Thanks @ Twood
So just toss in the code after the Facebook div?
Code:{vb:raw vboptions.copyrighttext} </div> <vb:if condition="$vboptions['enablefacebookconnect']"> {vb:raw facebook_footer} </vb:if> </div>
FF w/ Web Dev / Firebug / DWComment
-
Yeap, right at the very bottom of the template, add a few lines, put your code in.Comment
-
Tell me about it. I've been struggling for weeks trying to get a bit of Javascript working. It needed the value for a search variable, but the instructions for its placement was to put it in the header, so it would be global. Makes sense, except the value for the variable that it needed wasn't calculated that early in the rendering of the page. Moving it down the template hierarchy solved the problem.
If I understand this right, the php files are the 'command' files, and they call in the templates, which in turn render the page.Comment
-
Comment
-
Comment
-
Have you opened one to check it? Or are you talking about how to include a PHP file in your own custom page?Comment
-
Mostly I'm just trying to grok how the php files depend on each other as they execute. I'm still fairly new to php itself, and I'm trying to grasp the interaction. For example, Lynne pointed me to a php file that is buried a couple of folders deep into the file folders structure, but which impacts the results in tags.php, in order to make a change to a sort order. Other than reading up on basic php programming, is there a resource that shows how all these files connect to each other?Comment
-
Related Topics
Collapse
-
by GuestI like the idea of having the breadcrumbs on the top of the page, but I would also like to have them at the bottom of the page.
With vB5 it is very simple to do. I love the way hooks work....-
Channel: vBulletin 5 Tutorials
-
Comment