Yahoo Stock Quote - FAQs, Troubleshoot and Tips & Techniques
Written by kksou   
Thursday, 03 September 2009

This is the FAQ for the Yahoo Stock Quote (AJAX module version).

Troubleshooting

  1. First of all, please make sure you have done the following:
    • Make sure you're using the latest version of Yahoo Stock Quote (v1.5.8 or higher). I've made some major changes to the library since v1.5.8.
    • Go to Module Manager and make sure the module is enabled.

  2. Q: I modified the stylesheet. But the new styles do not seem to take effect.
  3. A: Note that after you have modified the stylesheet yahoostockquote.css, you have to reload the page so that the stylesheet is reloaded.

    I've also found that for some browsers, they still use the "cached" version of stylesheet even when you click the "Reload" button. In such case, you need to clear the cache so the the modified stylesheet gets reloaded.

  4. Q: I changed the format from Style 1 to Style 2. But the stock quotes are still displayed as Style 1.

    A: After you have changed the style in Modules Manager from Style 1 to Style 2, make sure you click the "Reload" button on the page in which the stock quotes are displayed.

  5. Q3: When I use the module, I need to press once on 'Get Quotes' before the quotes are retrieved. In your demo on this site I see the quotes are immediately available. How can I achieve this ?
  6. A: Just pass in the parameters in the url.

    a = the symbols
    process = 1 (to get the stock quote immediately)
    

    For example, for the "Yahoo Stock Quote in content item - sample 2 ", you can use the following to give a direct stock quote:

    http://www.kksou.com/php-gtk2/Joomla-samples/
    Yahoo-Stock-Quote-in-content-item-sample-2.php?
    a=YHOO,GOOG,MSFT&process=1
    

    Note: Starting from version 1.01/1.51, the stock quotes will be displayed when the module is first loaded — without the need to press the Submit button.


  7. Q: How to display the quotes for the indexes, e.g. NYSE, NASDAQ, NIKKEI 225, etc.
  8. A: You can just enter the symbols for the respective indexes. For example, for NYSE, NASDAQ, NIKKEI 225, enter the following:

    ^NYA,^IXIC,^N225
    

    If you do not know the symbols for the indexes, you can look up the respective symbols from http://finance.yahoo.com/.

  9. Q: Which method should I use to retrieve data from Yahoo Finance?
  10. A: There are now three methods to retrieve data from Yahoo Finance.

    • The default method uses fread().
    • You can also use file_get_contents(). Note that file_get_contents() is only available in PHP5 and above.
    • Use the cURL library. For this method, you need to make sure your PHP has the cURL library installed.

    Use the default method fread() first. If it doesn't work, then try file_get_contents(), and then the cURL library.

Module Conflicts

If you've tried all of the above, and it still does not work, it might be because of conflicts with some other plugins or modules. To ascertain this,

  • Please try the module on a fresh install of Joomla. This will allow you to know if the module works on your machine at all.
  • If the module works on your fresh install of Joomla, then you could try add in the rest of the plugins and modules one by one until you find the one that causes the conflict.


User contributed Tips & Techniques
  1. kksou
    September 07, 2009 8:39am
    How do I remove the get quote form?

    Please refer to Forum TOPIC: Re:how do I remove the get quote form? by Jon73.

  2. kksou
    September 07, 2009 8:47am
    Time offset in half hours

    Please refer to Forum TOPIC: Time and Date by Redback.

Note: You have to be a registered member to leave a comment. Free registration here.

 
< Prev   Next >

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved