![]() |
Bitcoin price in Header
Hello
I want to show data from JsonFeed in the Header, but can't make it work. The code what I put in the Header file: Code:
<? Thank you |
You need to create a plugin, then register the variables to the header template. Then in your header template you would inset tags where you want the data to appear.
Maybe something like this: create a new plugin using hook location parse_templates and this code: PHP Code:
Then in the header template you would use something like Code:
BTC: {vb:raw BTC_USD.ticker.last}, LTC: {vb:raw LTC_USD.ticker.last}, {vb:raw LTC_BTC.ticker.last} LTC/BTC <br /> Note: this is a very simple implementation. You may not want the plugin to get the feeds every time someone views a page on your site, in which case you'd need to change the code to get the feeds every so often and cache the results. |
Quote:
Thank you so much! |
yeah its work brother can you help me with another code ?
https://vborg.vbsupport.ru/showthrea...53#post2517853 |
if we want to show price in NOTICE then same method ?
|
All times are GMT. The time now is 03:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|