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
$db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['vbst_moneyrow']}={$vbulletin->options['vbst_moneyrow']}+'{$total_offer}' where userid='{$vbulletin->userinfo['userid']}'");
$db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['vbst_moneyrow']}={$vbulletin->options['vbst_moneyrow']}-'{$totalcost_fc}' where userid='{$vbulletin->userinfo['userid']}'");
Hope this works for you..
I wonder why using the User DataManager object broke it. I will go ahead and use the SQL queries instead since that seems to fix this plguin with iCash.
Quote:
Originally Posted by Lionel
a member discovered a major bug.
Try purchasing some stocks and for amount of shares put in -500 (negative). That will increase your points amount. In one case, the guy who had 2900 points ended with 10 billions!!!!!!
Good catch! I will implement the fix that Blaine posted.
Great hack and I got it working fine using vbux at last.. I had already started a contest using vbux and when it is over I will uninstall it and switch to icash...
Here is your list of future features..
Future Features
stock ticker marquee for users
statistics page (most popular stocks, best performers, etc.)
trade stocks with other board users
view other users' portfolios
My suggestion is to not have a trade stocks with other users as there is no need to do so - just sell them.
I would like you to consider a top ten list of % gained. Or most money in portfiolio? Something to see to compare and have contests on...
Also a stocks sold (or history) whatever you want to name it so you can view the winners and losers in your portfolio. Maybe at the time of sale it just moves them into another table for storage that can be brought up by a history or sold link?
This hack is great and I love it as people can learn to trade stocks and I run an investing site so I am a bit biased..
A few people on my board requested the plugin charge a capital gains tax, instead of a commissions for selling stock. I implemented this as another setting in the add-on's setting page.