Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2008, 04:18 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need Codeing help , I have it designed but i need a coder

I have the code for my header nav in a separate template how do i made it call the template , its named

headernav

i put $headernav in my header above <--logo--->

but its not showing it

Please help i dont really know what im doing

here is my code

Code:
<style type="text/css">
<!--
.networkbarselect {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	color: #333333;
	width: 200px;
	background-color: #F2F2F2;
}
.toolbarlink A{
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 11px;
	color: #333333;
}
.toolbarlink A:hover{
	color: #222222;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<table width="100%" height="30px" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td background="http://www.dieselbombers.com/images/bg.gif" width="29%">
	<p style="margin-top: 0px; margin-bottom: 5px">
	<font face="Verdana"><b>
	<font size="2">&nbsp;&nbsp;
	</font></b></font>
	<a target="_self" href="http://www.dieselbombers.com">
	<font size="2">
	<img border="0" src="http://www.dieselbombers.com/images/home24.png" width="24" height="24" alt="Go To The Home Page"></font></a>
	<a target="_self" href="http://www.dieselbombers.com/About.php">
	<img border="0" src="http://www.dieselbombers.com/images/infoabout24.png" width="24" height="24" alt="About Us"></a><if condition="$show['member']"> <a target="_self" href="http://www.dieselbombers.com/search.php"><img border="0" src="http://www.dieselbombers.com/images/find24.png" width="24" height="24" alt="Search The Forums"></a>
	<a target="_self" href="http://www.dieselbombers.com/all_albums.php">
	<img border="0" src="http://www.dieselbombers.com/images/pictures24.png" width="24" height="24" alt="All Photo Albums"></a>
<a target="_self" href="http://www.dieselbombers.com/awc_ds.php?do=donation"><img border="0" src="http://www.dieselbombers.com/images/money24.png" width="24" height="24" alt="Make a Donation "></a>
	<a target="_self" href="http://www.dieselbombers.com/usercp.php">
	<img border="0" src="http://www.dieselbombers.com/images/configure24.png" width="24" height="24" alt="Edit Your Settings"></a><font size="2">
<a target="_self" href="http://www.dieselbombers.com/search.php?do=getnew"><img border="0" src="http://www.dieselbombers.com/images/chat24.png" width="24" height="24" alt="See All The Newest Posts"></a></font></if>
<if condition="$show['registerbutton']">
<a target="_self" href="http://www.dieselbombers.com/register.php"><img border="0" src="http://www.dieselbombers.com/images/adduser24.png" alt="Join The Bombers" width="24" height="24"></a></td></if>		
    <td align="center" background="http://www.dieselbombers.com/images/bg.gif" valign="top" height="30" width="28%">
<p style="padding-top: 0px; ">
<select name="networkbar" onChange="MM_jumpMenu('window.open()',this,1)" class="networkbarselect">
<option value="javascript://" selected>Diesel Bombers Sites</option>
                <option value="http://www.thedieselclassifieds.com">The Diesel 
				Classifieds</option>
                <option value="http://www.dieselbookmarks.com">Diesel Bookmarks</option>
                <option value="http://www.cafepress.com/DieselBombers">Bomber 
				Gear</option>
		<option value="http://www.dieselswag.com">Diesel Swag</option>
                <option value="http://www.youtube.com/DieselBombers">YouTube 
				Video Channel</option>
              </select></p>
    <td align="right" background="http://www.dieselbombers.com/images/bg.gif" width="42%">
      <form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
  <div>
    <input type="hidden" name="cx" value="partner-pub-6341648289900751:8xsfhg-bh1k" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="Search" style="font-family: Verdana; font-weight: bold" />&nbsp;&nbsp;&nbsp;&nbsp; </div>
</form>

<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>
    </td>
  </tr>
  </table>
I want it to show on top of every page , i have the conditionals set for guest/member

--------------- Added [DATE]1215408358[/DATE] at [TIME]1215408358[/TIME] ---------------

I have stuck it in there manually on the header templete , i want to call it so it dont show up to SEO bots and slow down page loads ,

It should be in header includes maybe?

Thanks For any help
Reply With Quote
  #2  
Old 07-07-2008, 05:50 AM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you have headernav in the cache templates.
Then in a global_start hook use this code.
PHP Code:
eval('$headernav = "' fetch_template('headernav') . '";'); 
Reply With Quote
  #3  
Old 07-07-2008, 04:35 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MoT3rror View Post
Make sure you have headernav in the cache templates.
Then in a global_start hook use this code.
PHP Code:
eval('$headernav = "' fetch_template('headernav') . '";'); 

So i Put $headernav in the HEader Templete where i want it to show ? and Where do i edit the globalstart hook ?

THANKS !!
Reply With Quote
  #4  
Old 07-07-2008, 07:40 PM
MoT3rror MoT3rror is offline
 
Join Date: Mar 2007
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DiesellMinded View Post
So i Put $headernav in the HEader Templete where i want it to show ? and Where do i edit the globalstart hook ?

THANKS !!
Sorry create a plugin at the global_start hook with the code above.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08737 seconds
  • Memory Usage 2,202KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete