Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 11-22-2014, 06:34 AM
338Lapua 338Lapua is offline
 
Join Date: Jan 2012
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Header images modification

I'm trying to fix the two trike images in my header on my forum that should be all on the same row, with it being - left image, tpc trikes banner, right image.

Here is my code for my header;

Code:
<!-- content table -->

$spacer_open



$_phpinclude_output



<!-- logo -->

<a name="top"></a>

<div id="header">

	<div id="nav">

		<ul>

		<if condition="$show['member']">

			<li><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li>

		</if>

		<if condition="$show['registerbutton']">

			<li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>

		</if>

			<li><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>

			<li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>

		<if condition="!$show['member']">

			<li><a href="search.php?do=getdaily$session[sessionurl_q]">$vbphrase[todays_posts]</a></li>

		</if>

			<li id="navbar_search"><a 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>

		<if condition="$show['member']">

			<li id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script 

type="text/javascript"> vbmenu_register("usercptools", true); </script></li>

			<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>

	
<table>
<tr>
<td align="left" >

<img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" /></A>
<div style="clear: 


</td><td align = "center">

<A HREF="http://www.tpctrikes.com"><center><img height="96" src="images/banner.jpg" style="border-style: none" alt="" /></center></A>
<div 


</td><td align = "right">

<img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" /></A>

<!-- /logo -->


</td>
</tr>
</table>

<table cellspacing="0" cellpadding="0" border="0" width="100%">

<tr valign="top">

	<td class="main_cell" style="padding: 10px $stylevar[spacersize]px">

$ad_location[ad_header_end]
Here is how it looks right now;



Thanks for helping me since I'm still learning vbulletin.
Reply With Quote
  #2  
Old 11-22-2014, 07:09 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you put the above in code brackets
Reply With Quote
  #3  
Old 11-22-2014, 07:32 AM
338Lapua 338Lapua is offline
 
Join Date: Jan 2012
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like I said before, I'm still learning vbulletin and coding.

What do you mean by putting it in code brackets?

Thanks.
Reply With Quote
  #4  
Old 11-22-2014, 08:49 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does that actually work? you have two malformed DIVs with no conclusion? you also have misplaced and malformed <a>'s

Replace all of
HTML Code:
<table>
 <tr>
 <td align="left" >
 
<img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" /></A>
 <div style="clear: 


</td><td align = "center">
 
<A HREF="http://www.tpctrikes.com"><center><img height="96" src="images/banner.jpg" style="border-style: none" alt="" /></center></A>
 <div 


</td><td align = "right">
 
<img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" /></A>
 
<!-- /logo -->
 

</td>
 </tr>
 </table>
with this
HTML Code:
<table align = "center">
 <tr>
  <td>
 
   <a href="http://www.tpctrikes.com" border="0"><img height="96" src="images/IMG_1545.jpg" style="border-style: none" alt="" />
   <img height="96" src="images/banner.jpg" style="border-style: none" alt="" />
   <img height="96" src="images/TPC Air.jpg" style="border-style: none" alt="" /></a>
 
<!-- /logo -->
 

  </td>
 </tr>
</table>
but you'll have to add your css...etc for background, padding and whatever else to the containers. It's a good idea to include your alternative texts for the images before you add the code.
Reply With Quote
  #5  
Old 11-22-2014, 10:06 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 338Lapua View Post
Like I said before, I'm still learning vbulletin and coding.

What do you mean by putting it in code brackets?

Thanks.
The way Simon has just done as it is easier to read
Reply With Quote
  #6  
Old 11-22-2014, 03:37 PM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After you save a copy of your header template to have as a backup incase there is an issue, Replace your header template with the following:

You will have to edit your image width to fit the page...


Code:
<!-- content table -->

$spacer_open



$_phpinclude_output



<!-- logo -->

<a name="top"></a>

<div id="header">

<div id="nav">

<ul>

<if condition="$show['member']">

<li><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></li>

</if>

<if condition="$show['registerbutton']">

<li><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></li>

</if>

<li><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></li>

<li><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></li>

<if condition="!$show['member']">

<li><a href="search.php?do=getdaily$session[sessionurl_q]">$vbphrase[todays_posts]</a></li>

</if>

<li id="navbar_search"><a 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>

<if condition="$show['member']">

<li id="usercptools"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script 

type="text/javascript"> vbmenu_register("usercptools", true); </script></li>

<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>


<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center">
<img height="96" src="http://www.tpctrikes.com/forum/images/IMG_1545.jpg" style="border-style: none" alt="" />
</td>
<td align="center">
<a href="http://www.tpctrikes.com" border="0"><img height="96" src="http://www.tpctrikes.com/forum/images/banner.jpg" style="border-style: none" alt="" />
</td>
<td align="center">
<img height="96" src="http://www.tpctrikes.com/forum/images/TPC Air.jpg" style="border-style: none" alt="" /></a>
</td></tr></table>

<!-- /logo -->


</td>
</tr>
</table>

<table cellspacing="0" cellpadding="0" border="0" width="100%">

<tr valign="top">

<td class="main_cell" style="padding: 10px $stylevar[spacersize]px">

$ad_location[ad_header_end]
Reply With Quote
  #7  
Old 11-22-2014, 03:48 PM
338Lapua 338Lapua is offline
 
Join Date: Jan 2012
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much! I'm a Network Administrator and not a programmer. I'm still learning this stuff :-)
Reply With Quote
Благодарность от:
TheLastSuperman
  #8  
Old 11-23-2014, 04:40 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@blind-eddie it might be worth setting the table to Auto instead of 100% for fluidity (fluidity? is that a word? lol )
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 08:22 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.04800 seconds
  • Memory Usage 2,250KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete