Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 10-11-2009, 12:58 PM
jas1159 jas1159 is offline
 
Join Date: Nov 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Style logo / Header arrangement Help

I have been looking at this code for a while now and it is so frustrating not being able to understand what it is doing so i hope somebody here can help me get what i am looking for.

Basically i have been trying to makie my logo.gif random so i can have different headers appearing but it moves my navbar and i am not sure why.

Here is the code can somebody help me bring my 'nav' header back up level on the right hand side? www.swcruise.com/forum to see the problem

The code is below thanks in advance

Code:
<!-- logo -->
<a name="top"></a>
<div id="header_outer">
	<div id="wrapper">
		<div id="header">

<!-- logo -->
<a href="$vboptions[forumhome].php$session[sessionurl_q]"> <script>
var logo=new Array()
logo[0]='<img src="$stylevar[imgdir_misc]/logo.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[1]='<img src="$stylevar[imgdir_misc]/logo.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[2]='<img src="$stylevar[imgdir_misc]/logo.gif" border="0" alt="$vboptions[bbtitle]" />'
logo[3]='<img src="$stylevar[imgdir_misc]/logo.gif" border="0" alt="$vboptions[bbtitle]" />'
var displaylogo=Math.floor(Math.random()*(logo.length))
document.write(logo[displaylogo])
</script></a>
<!-- /logo -->

<div id="nav">
				<ul>
					<li><a href="$vboptions[forumhome].php$session[sessionurl_q]">Home</a></li>
<li><if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a>
		<else /><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></if></li>
<if condition="$show['communitylink'] AND $show['popups']">
			<li><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community",true); </script></li>
		<else />
			<if condition="$show['memberslist']">
				<li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>
			</if>
			<if condition="$show['quick_links_groups']">
				<li><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></li>
			</if>
		</if>
					
					<li><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>
			<li><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></li>
	<li><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a><if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search",true); </script></if></li>
				</ul>
			</div>
		</div>
	
		<div id="container">
<div id="border">

				<div id="subnav">
					<ul>
						<if condition="$show['registerbutton']">
			<li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>
		</if>
					
						<li><a href="#">Rules</a></li>
					
						<li><if condition="$show['member']">
				<a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a>
				<else />
				<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a>
				</if></li>
<if condition="$show['member']"><li><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a><script type="text/javascript"> vbmenu_register("usercptools",true); </script>
			</li></if>	
		<if condition="$show['member']">
			<li><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></li>
		</if>		
					</ul>
					<div id="searchbar">
<form action="search.php?do=process" method="post">
	<input type="hidden" name="do" value="process" />
					<input type="hidden" name="quicksearch" value="1" />
					<input type="hidden" name="childforums" value="1" />
					<input type="hidden" name="exactname" value="1" />
					<input type="hidden" name="s" value="$session[sessionhash]" />
					<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
						<strong>Search:</strong> <input type="text" class="searchinput" name="query" /><input type="submit" value="" class="searchgo" /> <a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a>
<input type="hidden" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />
</form>
					</div>
				</div>
<!-- content table -->
$_phpinclude_output

$ad_location[ad_header_end]
--------------- Added [DATE]1255269686[/DATE] at [TIME]1255269686[/TIME] ---------------

here is how it is supposed to look

http://vbskinworks.com/forum/index.php?styleid=442
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:34 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.08058 seconds
  • Memory Usage 2,201KB
  • 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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)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)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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