vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to add this to header? (https://vborg.vbsupport.ru/showthread.php?t=243203)

Ken Sanders 05-24-2010 01:26 PM

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.
https://vborg.vbsupport.ru/external/2010/05/16.jpg

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

borbole 05-24-2010 01:40 PM

Quote:

Originally Posted by Ken Sanders (Post 2042708)
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.
https://vborg.vbsupport.ru/external/2010/05/16.jpg

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.

Ken Sanders 05-24-2010 01:50 PM

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.

borbole 05-24-2010 02:51 PM

Quote:

Originally Posted by Ken Sanders (Post 2042717)
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.

Ken Sanders 05-24-2010 03:08 PM

Worked like a charm Barbole. Thanks again!
Sending you a little change for your help.
Regards,
Ken

borbole 05-24-2010 03:21 PM

Quote:

Originally Posted by Ken Sanders (Post 2042739)
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 :)


All times are GMT. The time now is 06:51 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.02057 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete