View Full Version : New Header For Homepage
paul41598
06-02-2005, 03:54 PM
I cannot get this for the love of god. On my forums I have a side bar and header. However on my homepage, I dont want a sidebar, just a NEW header
I tried this code I found doing a search:
<if condition="THIS_SCRIPT == 'adv_index'">
New Header
</if>
<else />
Forum's header code here
</if>
But it didnt work. Instead I get whats show in the screenshots. The 1st screenshot is what the forums look like with the side bar and header. THe 2nd screenshot is what they look like with that if statement. I want to get rid of the sidebar and completely just have a new header, something totally different.
Brian
06-02-2005, 03:56 PM
<if condition="THIS_SCRIPT == 'adv_index'">
New Header
<else />
Forum's header code here
</if>
paul41598
06-02-2005, 04:06 PM
ok that kinda worked. now it just shows my headinclude, which sux, cuz i want a new one
My goal is to basically make my homepage 100% completely differnet.
Zachery
06-02-2005, 04:20 PM
That works 100% ;) trust me
paul41598
06-02-2005, 04:25 PM
then what your saying is, I need that IF statement in my headinclude template as well? Because Im telling you, its not working. my headinclude graphic is still showing...
Reason your confused is cuz i have a graphic in my headinclude.
<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $versionnumber" />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
// -->
</script>
<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></if>
<table border="0" width="100%" bgcolor="#660033">
<tr>
<td align="center">
<img src="Title.gif" height="85" width="500" align="center" alt="Title.gif">
</td>
</tr>
</table>
ConqSoft
06-02-2005, 04:31 PM
You can't move that to your header, and leave the headerinclude "stock"?
paul41598
06-02-2005, 04:37 PM
ya that worked! :D
Sorry, Im new to Vbulletin. Im converting over from UBB, and its a whole new ballgame with VB. Its going to take some time to get use too ;)
Thanks again
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.