View Full Version : How to place a banner between head and body
Macsee
09-07-2012, 06:30 PM
I raised this question elsewhere, but I realise it may have been the wrong section.
I wish to add certain information between the head of the site and the body (just under the nav bar). It needs to be 90 pixels high and extend the whole width of the page and it needs to appear on all pages in the forum, CMS, blog.
It was going to be an SSI (server side include).
Any suggestion on which template I need to edit to insert the <include> code?
nerbert
09-08-2012, 12:38 AM
Put it in the navbar template as shown below
tabindex="100"/></span></span>
</form>
<ul class="navbar_advanced_search">
<li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
</ul>
</div>
</vb:if>
</div>
</div><!-- closing div for above_body -->
<!--############### PUT IT RIGHT HERE ################-->
<div class="body_wrapper">
<div id="breadcrumb" class="breadcrumb">
<ul class="floatcontainer">
<li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
{vb:raw navbits.breadcrumb}
{vb:raw navbits.lastelement}
</ul>
<hr />
</div>
Macsee
09-10-2012, 06:29 PM
Thanks, nerbert.
I found that location in the navbar template and I added this, but the contents of test.htm don't seem to seem to show on the forum homepage.
<?php include 'test.htm'; ?>
Just to make sure the code itself works and there isn't a server related issue (conf files settings), I created a new php page in the /forums/ folder and tried this SSI in there and it works.
Any suggestions?
Avros
03-21-2013, 11:50 PM
Maybe try it without the start and close Php tags....
include ("/path/to/filename.shtml");
Digital Jedi
03-22-2013, 05:58 AM
Maybe try it without the start and close Php tags....
include ("/path/to/filename.shtml");
Old thread to be bumping, but in any event, you can't use PHP in a templates. You can use it in plugins that reference the external file you want to use, then pack it inside a variable and put that in the templates. Alternatively, if it's just regular HTML code in the file, you could just put that code in the templates.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.