View Single Post
  #1  
Old 07-25-2005, 04:58 PM
imported_delta9 imported_delta9 is offline
 
Join Date: Mar 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to use Phrases/Variables on header template

Ok i'm a big n00b cause i can't get the variables to work. I've made my own header and included this in the header template as seen below:

Code:
<!-- logo -->
<a name="top"></a>
<title>Site</title>
<script language="JavaScript" type="text/javascript">
<!-- Hide from older browsers
function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} //end

// end hiding contents -->
</script>
<link href="style.css" rel="stylesheet" type="text/css">
</head><center>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="750" height="*" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td><img src="images/index_02.gif" width="335" height="102" alt="" border="0"></td>
<td background="images/index_03.gif" width="415" height="102">

-- USERINFO --

</td>
</tr>
<tr valign="top">
<td colspan="2"><img src="images/index_05.gif" width="19" height="27" alt="" border="0"><img src="images/index_06.gif" width="115" height="27" alt="" border="0"><img src="images/index_07.gif" width="14" height="27" alt="" border="0"><img src="images/index_08.gif" width="115" height="27" alt="" border="0"><img src="images/index_09.gif" width="14" height="27" alt="" border="0"><img src="images/index_10.gif" width="115" height="27" alt="" border="0"><img src="images/index_11.gif" width="14" height="27" alt="" border="0"><img src="images/index_12.gif" width="115" height="27" alt="" border="0"><img src="images/index_13.gif" width="229" height="27" alt="" border="0"></td>
</tr>
<tr valign="top">
<td colspan="2"><img src="images/index_14.gif" width="750" height="25" alt="" border="0"></td>
</tr>
<tr valign="top">
<td width="100%" height="*" valign="top" bgcolor="#ffffff" colspan="2">

<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
I did this with the adminCP Edit Templates. I really want the userinfo and welcome screen between:

Code:
<td background="images/index_03.gif" width="415" height="102">

-- USERINFO --

</td>
The TD's where it says -- USERINFO --, this must be extremely simple...

Can someone help me?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01166 seconds
  • Memory Usage 1,777KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete