vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to place a banner between head and body (https://vborg.vbsupport.ru/showthread.php?t=287580)

Macsee 09-07-2012 07:30 PM

How to place a banner between head and body
 
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 01:38 AM

Put it in the navbar template as shown below

HTML Code:

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 07: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 Code:

<?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-22-2013 12:50 AM

Maybe try it without the start and close Php tags....

PHP Code:

include ("/path/to/filename.shtml"); 


Digital Jedi 03-22-2013 06:58 AM

Quote:

Originally Posted by Avros (Post 2411502)
Maybe try it without the start and close Php tags....

PHP Code:

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.


All times are GMT. The time now is 11:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01167 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete