vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Stocks 1.0.0 for vB 3.0.3 (https://vborg.vbsupport.ru/showthread.php?t=71445)

AN-net 11-06-2004 10:00 PM

vB Stocks 1.0.0 for vB 3.0.3
 
vB Stocks 1.0.0
by Antonbomb22(Anthony Scudese)

Compatiability:
Compatiable with 3.0.x(Tested on 3.0.3)

Description:
This hack uses Yahoo Finance's external CSV feature. It converts the CSV to a readable array. This allows you to get stock quotes(not realtime but updated daily) for whatever stocks Yahoo Finance provides via stock symbols(Google = GOOG). You can also get quotes on the DowJones. Also this hack allows your users to look up stocks that you may not have already being pulled from Yahoo Finance.

Author(s):
-AN-Net
-joeaic(developed code basis)

Code Based Off Of:
http://www.phpbuilder.com/snippet/de...snippet&id=163

Live Demo:
http://www.animationation.net/community/stocks.php

Support:
Any modification to the provided files is not supportable. I also hold the right to deny support to anyone at anytime.

Where to Get Support:
-Official vB Stocks Forum
-Aim: Antonbomb22
-Email: antonbomb22@animationation.net
-this thread

Special Thanks To:
Yahoo Finance for providing the CSV and great service;)

Zip Includes:
-install.txt
-stocks.php
-stocksmanager.php

Guest190829 11-07-2004 01:49 AM

Great Job AN-NET, keep up the great hacks!

bendigo-tech 11-07-2004 02:50 AM

I have no use for this but still a very nice hack.

Good work! :)

AN-net 11-07-2004 03:01 AM

Thanks for the positive feedback:)

Ted S 11-07-2004 03:14 AM

Very nice hack, quick install (under 10 minutes) and it works great! Hopefully my users will find this as useful as I think it is.

One small suggestion/question... would it be possible to get the company name from Yahoo so a stock shows up Google - GOOG instead of just the ticker symbol? Thanks!

xware 11-07-2004 04:23 AM

can you make a virtue stock market that users can buy and sell stock by their bbs money?

Amavisca 11-07-2004 04:45 AM

I dont use this buy , but great work an

BarHopper 11-07-2004 05:57 AM

Quote:

Originally Posted by bendigo-tech
I have no use for this but still a very nice hack.

Good work! :)

dito, but very good hack.

AlexanderT 11-07-2004 12:04 PM

A nice hack, but it should really cache the stock information unless you want to hammer Yahoo.

Your example sites features 13 stocks. With the current implementation, that means every time someone accesses your stock page, your server is hitting Yahoo 13 times. Imagine 20 users accessing your stock page - your server would be hitting Yahoo 260 times. Imagine 200 users accessing your stock page - Yahoo gets hit 2600 times!

AN-net 11-07-2004 02:35 PM

Quote:

Originally Posted by AlexanderT
A nice hack, but it should really cache the stock information unless you want to hammer Yahoo.

Your example sites features 13 stocks. With the current implementation, that means every time someone accesses your stock page, your server is hitting Yahoo 13 times. Imagine 20 users accessing your stock page - your server would be hitting Yahoo 260 times. Imagine 200 users accessing your stock page - Yahoo gets hit 2600 times!

they can handle it lol! anyways maybe ill look into some caching in a future version but i was really just planning on making this a one version script

Lionel 11-07-2004 03:27 PM

It would have been super to allow members to create their portfolio. Stocks would display per member basis

GamerJunk.net 11-07-2004 08:30 PM

That's awesome!

AN-net 11-07-2004 10:25 PM

Quote:

Originally Posted by Lionel
It would have been super to allow members to create their portfolio. Stocks would display per member basis

possible if i make a second version;)

Lionel 11-08-2004 03:19 AM

Quote:

Originally Posted by AN-net
possible if i make a second version;)

will be anxiously waiting... Guys like you, with your skills could knock it down in 2 hours. :smoke:

secret1980 11-08-2004 09:19 AM

good hack :D

Guest190829 11-08-2004 09:53 AM

I smell advanced coder!!!

G-khan 11-09-2004 02:53 AM

Quote:

Originally Posted by AN-net
possible if i make a second version;)


Please do it..... please please please......

Great hack and I will use it..............

johnnyb 11-09-2004 08:52 PM

Are these live? Or 20 minute delay?

AN-net 11-10-2004 02:04 AM

Quote:

Originally Posted by johnnyb
Are these live? Or 20 minute delay?

i believe their daily, it depends when yahoo updates them. check the last updated coulmn on each stock and it will say when yahoo last updated it. for real time info that would require access to yahoo's premium membership...

fiber1 11-10-2004 03:25 AM

Most of the time Yahoo updates are between 12 and 15 minutes. Any less time than that your site would be getting overkill!

amc 11-10-2004 03:29 AM

How do I put a link on the vBStocks page to the symbol list in yahoo?

Thanks.

theArchitect 11-10-2004 08:16 AM

*theArchitect Clicks Install*.

As always impressive work. Keep it up.

Lionel 11-10-2004 05:38 PM

Whenever it can't connect to Yahoo for whatever reason, it displays an ugly message at the very top, coming from the fopen("http://finance.yahoo. ....

can we put something like if !$yahoo {echo "";}

?

AlexanderT 11-11-2004 11:49 AM

I am not using the hack, but perhaps if you put a @ in front of 'fopen(...' it should help.

Lionel 11-11-2004 11:52 AM

Thanks for the tip.

fiber1 11-19-2004 09:30 PM

Found a small bug on this... If you go to ADMINCP > MANAGE STOCKS and try to edit any symbol other than the first one listed it brings up the first symbol to edit. Thus, no matter which one you try to "EDIT" it always edits the first one.

AN-net 11-19-2004 10:28 PM

ill look into this:)

G-khan 11-20-2004 02:13 PM

Great hack Thanks - I installed it................

G-khan 11-22-2004 11:28 PM

Could you add multiple pages - like say I want one that has some major tech stocks and another on Gold stocks....

I tried putting in about thirty stocks and it really bogs down so if you could add stock sectors...... I know I am asking a lot....

Great hack............

AN-net 11-23-2004 12:14 AM

i really am busy right now but i might eventually just cache the information in the database eventually thus making the page more optimized and faster;)

Madacc 12-02-2004 05:13 AM

Perfect for my board.. I did a little manipulation and added the Stock Lookup feature at the top of the page, and the "Stocks To Watch" on my FORUMHOME template.

Check it out www.stocktradingtalk.com

fiber1 12-02-2004 09:41 AM

Nice mod! Always good to see more competition out there and discusion boards for the market.

AN-net 12-02-2004 10:17 AM

very nice functionality added;)

dwh 01-17-2005 07:29 AM

Any screenshots?

AN-net 01-17-2005 03:01 PM

there is a live demo so need to for screenshots

FASherman 01-18-2005 12:25 AM

Strictly speaking, the name for this hack is wrong. If this were truely stock oriented, there is a set of minimal information that is absolutely necessary such as 52-week highs and lows, 20-week moving averages, P/E ratios, etc.

This hack should rightly be called vbDailyMarketReport or something to that effect.

AN-net 01-18-2005 12:55 AM

well I do not involve myself in stocks at all, so i would not really know alot about this information except for those terms you defined. found this code snippet thought it would be a great addon for sites dealing with the market and poof i released it. i had no knowledge of a more technical term and since this is the only hack relating to stocks so far i think it fits it right;)

dwh 01-18-2005 01:40 AM

I like the name and think it's appropriate even if more info might be nice. RE: screenshot, it seems to be practice to put up screenshots, because live sites change (e.g. guests not allowed to see feature, domain change etc..) and screens give a quick and easy look.

AN-net 01-18-2005 02:20 AM

well currently that is the only info Yahoo offers and i dont know of any other sites that provide CSV OR external source stock information

rajc007 01-27-2005 04:54 PM

Not sure if I missed something on the install but my stock info is not updating. www.hospitality-forum.com/forums/stocks.php


All times are GMT. The time now is 04:50 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.01473 seconds
  • Memory Usage 1,791KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete