![]() |
I tried to install this on 3.6.4....but when I got the the vbtrade page it is nothing but jibberish meaning:
"symbol", "n" => "name", "l1" => "lasttrade", "v" => "volume", "c1" => "change", "p2" => "perchange", "d1" => "lasttradedate", "t1" => "lasttradetime", "x" => "exchange", ); var $service_url = 'http://quote.yahoo.com/d/quotes.csv'; var $format = null; var $request = null; function StockRequester() { foreach ($this->request_formats as $code => $key) $this->format .= $code; $this->request = $this->service_url."?s=%1&f=".$this->format; } function BuildHash($string) { $retval = null; $string = str_replace("\"","",$string); $stack = explode(',',$string); foreach ($this->request_formats as $code => $key) { $retval[$key] = trim(array_shift($stack)); } return $retval; } function GetSingleQuote($symbol) { $request = str_replace('%1',$symbol,$this->request); $response = implode ('', file($request)); return $this->BuildHash($response); } function The entire page looks like this, can someone help me get this working? I love the idea behind this would love to have it up and running :) |
Quote:
|
I did reinstall 3 times, even download the files again :(
|
I fixed it, at the top of the php page, you have this:
PHP Code:
PHP Code:
99% of the time this does not matter, in this case it does....seems ok now :) |
it stops working today...something wrong with the yahoo feed ?
|
Quote:
you saved the day for me. I was getting lots of emails about site being unaccessible. After your message I disabled the vbadvanced stock trader and all is fine. Yahoo probably closed the feed. |
Looks like Yahoo change the subdomain of their feed, which is causing Stock Trader not to work at all. Upload the attached class_stocktrader.php file to your /includes directory, overwriting the existing one, and this should fix the problem.
|
Glad I spotted this early.
Overwrite with new file and all is fine. Thanks Zethon for the quick fix. I posted a bunch on your board about this ;) |
A quick question
How would I use template conditional to show in the postbit the $post[ambportval] only for members whose portfolio > 0 Otherwise, don't display that since I have lot of people with portfolio = 0 Something like this (not quite right yet) Code:
<if condition="$post[ambportval] == 0"> |
After playing with it for a couple of minutes...I found out a way to do this. Hope this helps
Code:
<if condition="($show['reputation']) AND ($post[ambportval] != 0)"><div class="pbit" align="left">Portfolio: $$post[ambportval] <br> |
All times are GMT. The time now is 10: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|