vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Common template - header (https://vborg.vbsupport.ru/showthread.php?t=121768)

chrisj8221 07-21-2006 05:11 PM

Common template - header
 
As we all know the existing code in the common templates - header reads like this...

PHP Code:

<!-- logo -->
<
a name="top"></a>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
    <
td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]border="0" alt="$vboptions[bbtitle]/></a></td>
    <
td align="$stylevar[right]">
        &
nbsp;
    </
td>
</
tr>
</
table>
<!-- /
logo -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output 

It is my userstanding that we can simply overright everything with our own code to create a functional header. Is the correct? and being such a newbie it seems like if i were to just erase the above and replace with my own code - some of the good stuff above would be missing?

I'm just trying to figure out what a am going first before leaping in.

Thanks in advance!

Chris

peterska2 07-21-2006 05:22 PM

You can replace everything inbetween the two logo comments. The bottom lines
Code:

$spacer_open

$_phpinclude_output

need to stay intact otherwise your site will not function correctly, and you will have major style issues

chrisj8221 07-21-2006 09:12 PM

is it possible to utilize php "included" within here to reference a few templates that I have already created. And if so, would the format for the code be the same as in a traditional .php file>

peterska2 07-21-2006 09:25 PM

No, you cannot put php code in your header template.

You will need to create some plugins to do that.

chrisj8221 07-22-2006 03:23 AM

one last quick question on headers. is it possible to "turn-off" the header graphic and just have the info inluded in your header template shown?

peterska2 07-22-2006 10:15 AM

Yes, the code
Code:

<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a>
refers to the logo in the header and makes it a link. You can remove either all of this, or the image section, or move it around a bit.

Basically as long as you don't touch the two lines highlighted earlier then you can do what you want with it in html.

chrisj8221 07-24-2006 05:37 PM

it took a while for me to get right - but it worked.

THANKS!


All times are GMT. The time now is 10:57 PM.

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.00978 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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