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

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2010, 02:26 PM
Ken Sanders Ken Sanders is offline
 
Join Date: May 2010
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to add this to header?

Greetings everyone. I am wanting to add an image link to my header that gives the current gold and silver market price. Can someone please steer me how to do this?
I would like to add it here.


Here is the html code
HTML Code:
<A HREF="http://www.kitco.com/connecting.html">
  <IMG SRC="http://www.kitconet.com/images/quotes_2a.gif" BORDER="0" ALT="[Most Recent Quotes from www.kitco.com]">
</A>
Thanks
Reply With Quote
  #2  
Old 05-24-2010, 02:40 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ken Sanders View Post
Greetings everyone. I am wanting to add an image link to my header that gives the current gold and silver market price. Can someone please steer me how to do this?
I would like to add it here.


Here is the html code
HTML Code:
<A HREF="http://www.kitco.com/connecting.html">
  <IMG SRC="http://www.kitconet.com/images/quotes_2a.gif" BORDER="0" ALT="[Most Recent Quotes from www.kitco.com]">
</A>
Thanks

Any reason as to why you are using depricated tags? And the img tag is not closed properly either btw. Anyway, try this:

At the header template find the following code:

HTML Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
And after it add the following code:

HTML Code:
<div style="float:right;"><a href="http://www.kitco.com/connecting.html">
  <img src="http://www.kitconet.com/images/quotes_2a.gif" alt="[Most Recent Quotes from www.kitco.com]" />
</a></div>
I cleaned up the code, made it xtml valid.

Like that you will have the image like you wanted. If the image is big and overlaps the header,
use the width attribute to resize it.

If you want, you can also create a class for the second image
and define its properties at the additional.css template rather than applying them at the style tag like I did.
Whatever you want. Hope it helps.
Reply With Quote
  #3  
Old 05-24-2010, 02:50 PM
Ken Sanders Ken Sanders is offline
 
Join Date: May 2010
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Any reason as to why you are using depricated tags? And the img tag is not closed properly either btw. Anyway, try this:
Many thanks Barbole. Not sure what you mean by depreciated tags. This is all new to me. I am using the code supplied by that site.
I'll give your suggestion a shot.
Thanks again.
Reply With Quote
  #4  
Old 05-24-2010, 03:51 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ken Sanders View Post
Many thanks Barbole. Not sure what you mean by depreciated tags. This is all new to me. I am using the code supplied by that site.
I'll give your suggestion a shot.
Thanks again.
You are welcome.

That code was using old dashioned html tags which are not xtml valid and shouldn''t be used. Anyway, use the ones I posted above as they are cleaned up.
Reply With Quote
  #5  
Old 05-24-2010, 04:08 PM
Ken Sanders Ken Sanders is offline
 
Join Date: May 2010
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked like a charm Barbole. Thanks again!
Sending you a little change for your help.
Regards,
Ken
Reply With Quote
  #6  
Old 05-24-2010, 04:21 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ken Sanders View Post
Worked like a charm Barbole. Thanks again!
Sending you a little change for your help.
Regards,
Ken
You are welcome. Glad to have been of help.

Thanks, I really appreciate your gesture
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 01:50 AM.


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.04104 seconds
  • Memory Usage 2,215KB
  • 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
  • (4)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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