Version: 0.9.9, by zethon
Developer Last Online: Oct 2020
Category: Add-On Releases -
Version: 3.6.4
Rating:
Released: 12-29-2006
Last Update: 02-22-2007
Installs: 132
DB Changes Uses Plugins Template Edits
Code Changes Additional Files Is in Beta Stage
No support by the author.
Stock Trader
Summary
This add-on gives your users the ability to use the money system on your board to "invest" in stock. Users can purchase and sell stock at market values. This plugin uses a stock feed from Yahoo to get real time stock quotes.
Release Notes
This product is considered to still be in Beta.This should be ending by the end of January.
This add-on is known to be compatible with vBulletin's built-in reputation system, vbBux and iCash.
Product Specifications
two plugins
one cron job
file uploads
one new DB table
one template
several phrases
Installation
Approx 2-5 mins
As always: Back up your Database!
upload the files in the "upload" directory, preserving the directory structure
Go into AdminCP and import the product-stocktrader.xml file.
(OPTIONAL) add a link in the navbar template or wherever your users can find it!
Upgrading/Updating
upload all files in the upload directory, overwriting any existing files
re-import the XML file, setting "Overwrite" to "Yes"
Configuration
vBulletin Options -> Stock Trader Options
Change History
0.9.9 (07-25-01) - fixed problem with trading mutual funds, fixed cheat with buying off hours (I think)
0.9.8 (07-18-01) - added new options and fixed bug with purchasing really cheap stock
0.9.7 (07-15-01) - fixed bug in top portfolios when using a table prefix
0.9.6 (07-15-01) - fixed table prefix issues, fixed portfolio.gif problem
0.9.5 (07-14-01) - added statistics page, ability to view other user portfolios, and postbit friendly variables
0.9.4 (07-09-01) - added a Capital Gains Tax option
0.9.3 (07-02-01) - fixed error with purchasing negative stock, fixed compatibility with iCash
1-one portfolio value is 147,300.700, it displays 130,135.20 in top portfolios
2-In table user I have many values as -9999999.999 in both ambportval and ambportgainamt
3-If you sell all your stocks, the new portfolio value is not updated and it still displays in top portfoloios.
I am not sure I understand the WHERE clause in the cron
Quote:
$symbols = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "stocktrader WHERE 1 GROUP BY symbol");
1-one portfolio value is 147,300.700, it displays 130,135.20 in top portfolios
I will look into this if someone else reports a problem. My test board and my main board, the figures are consistent, as they should be when the market is closed.
Quote:
Originally Posted by Lionel
2-In table user I have many values as -9999999.999 in both ambportval and ambportgainamt
Same as above. The default value for the field is 0.
Quote:
Originally Posted by Lionel
3-If you sell all your stocks, the new portfolio value is not updated and it still displays in top portfoloios.
This is how it's suppose to work. THe cron job updates "Top Portfolio's" everyday. So, you won't see any changes immediatly show up in the "Top Portfolios" page.
Quote:
Originally Posted by Lionel
I am not sure I understand the WHERE clause in the cron
Are you talking about the "WHERE 1"? What's there to understand?
By request, I have added a statistics page to this add-on,the ability to view other user's portfolios, and variables which can be added into the postbit. Upgrade as normal.
How do you access the stat page ? How about postbit instruction ? Are these available yet?
How do you access the stat page ? How about postbit instruction ? Are these available yet?
I like to leave that up to the individual user. You can put the "postbit friendly variables" in postbit wherever you want. Same with the link to the stat page.