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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2006, 12:44 AM
dodgeboard.com's Avatar
dodgeboard.com dodgeboard.com is offline
 
Join Date: Nov 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Please help this noob with an easy html question on banner code

I have been searching the fourms for the answer to this to no avail..

I have a three peice logo and want to set it up so that the banner is fluid and adjusts for all screen widths

All I know is that defaultheader3pc_left.png should be aligned left
defaultheader3pc_center.png shoud be repeated to take up any space
defaultheader3pc_right.png should be aligned at the right side

Can anyone help me with the header code for this?

Thanks in advance to the genius that helps me with the code!
Attached Images
File Type: png defaultheader3pc_left.png (9.8 KB, 0 views)
File Type: png defaultheader3pc_right.png (26.8 KB, 0 views)
Reply With Quote
  #2  
Old 10-24-2006, 01:24 AM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At the top of my head this should work:
HTML Code:
<table width="100%">
	<tr>
		<td><img src="defaultheader3pc_left.png" alt="" /></td>
		<td width="100%" style="backround-image: url(defaultheader3pc_center.png); background-repeat: repeat-x;">&nbsp;</td>
		<td><img src="defaultheader3pc_right.png" alt="" /></td>
	</tr>
</table>
Reply With Quote
  #3  
Old 10-24-2006, 02:45 AM
dodgeboard.com's Avatar
dodgeboard.com dodgeboard.com is offline
 
Join Date: Nov 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to thank you IMMENSLY for helping me with this.

So,,, I pasted the code in my header...

Code:
<!-- logo -->
<table width="100%">
	<tr>
		<td><img src="http://dodgeboard.com/images/defaultheader3pc_left.png" alt="" /></td>
		<td width="100%" style="backround-image: url(http://dodgeboard.com/images/defaultheader3pc_center.png); background-repeat: repeat-x;">&nbsp;</td>
		<td><img src="http://dodgeboard.com/images/defaultheader3pc_right.png" alt="" /></td>
	</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
And I am close....but the center tiled image is missing. Did I do something wrong? Any ideas?

example:
http://www.dodgeboard.com/?styleid=1
Reply With Quote
  #4  
Old 10-24-2006, 03:21 AM
Primeval Primeval is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
url ('http://dodgeboard.com/images/defaultheader3pc.png')
try that one.
Reply With Quote
  #5  
Old 10-24-2006, 03:35 AM
dodgeboard.com's Avatar
dodgeboard.com dodgeboard.com is offline
 
Join Date: Nov 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I reverted the headinclude template, shrunk the images down to 100 pixels high and made the syntax change (per above- thanks Primeval)...... But it's still not showing the center image.

Main table width settings are set to 100% so I used the phrase variable - trying all kinds of different things.

current header template:

Code:
<!-- logo -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
	<tr>
		<td><img src="http://dodgeboard.com/images/defaultheader3pc_left100.png" alt="" /></td>
		<td width="100%" style="backround-image: url('http://www.dodgeboard.com/images/defaultheader3pc_center100.png'); background-repeat: repeat-x;">&nbsp;</td>
		<td><img src="http://dodgeboard.com/images/defaultheader3pc_right100.png" alt="" /></td>
	</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
To the one who figures this out...

PM me your paypal addy for a cool ten spot!!

http://www.dodgeboard.com/?styleid=1 <-- this is the style I am testing with
Reply With Quote
  #6  
Old 10-24-2006, 04:14 AM
Primeval Primeval is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL I just figured it out

Code:
<!-- logo -->
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
	<tr>
		<td><img src="http://dodgeboard.com/images/defaultheader3pc_left100.png" alt="" /></td>
		<td width="100%" style="background-image:url('http://www.dodgeboard.com/images/defaultheader3pc_center100.png'); background-repeat: repeat-x;">&nbsp;</td>
		<td><img src="http://dodgeboard.com/images/defaultheader3pc_right100.png" alt="" /></td>
	</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output
Tried and tested true.
Reply With Quote
  #7  
Old 10-24-2006, 04:19 AM
dodgeboard.com's Avatar
dodgeboard.com dodgeboard.com is offline
 
Join Date: Nov 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That DID it YEAHHHHHHHHHH!!!!

PM me your paypal addy - you the winner!!

I'm so happy!!

I am looking at the code and can't see whats different
Reply With Quote
  #8  
Old 10-24-2006, 04:21 AM
Primeval Primeval is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apparnetly sebbe just simply mispelled background. I was looking at that line specifically to figure out wtf is wrong with it.
Reply With Quote
  #9  
Old 10-24-2006, 04:35 AM
dodgeboard.com's Avatar
dodgeboard.com dodgeboard.com is offline
 
Join Date: Nov 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been racking my brain for hours over this. Guess I need to learn to spell too!

Thanks bud! $ sent

Lets see if you can answer this one...

Is there a way to get the right image to kind of center itself over the background space (so it doesn't go all the way to the right) when displayed on high resolutions? so it doesn't go all the way to the right unless the resolution is low. In other words, center itself over the background (so ther are equal parts og the background image on each side of the image that is currently on the right) but not overlap the left image.

If not, I am happy with this...

(The solutoins worth another ten spot)
Reply With Quote
  #10  
Old 10-24-2006, 10:40 AM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hahhah sry, because I misspelt it you had to go crazy over it! :knockedout:

This should work for your second thingy, and I've checked already for spelling mistakes!

HTML Code:
<table width="100%">
	<tr>
		<td><img src="defaultheader3pc_left.png" alt="" /></td>
		<td width="50%" style="background-image: url(defaultheader3pc_center.png); background-repeat: repeat-x;">&nbsp;</td>
		<td><img src="defaultheader3pc_right.png" alt="" /></td>
		<td width="50%" style="background-image: url(defaultheader3pc_center.png); background-repeat: repeat-x;">&nbsp;</td>
	</tr>
</table>
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 11:09 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.05357 seconds
  • Memory Usage 2,291KB
  • Queries Executed 14 (?)
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
  • (4)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete