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
The proper link should be: vbtrade.php?do=topportfolios
This link, along with the link in the installation text file, both give me a database error
Code:
Database error in vBulletin 3.6.3:
Invalid SQL:
SELECT user.userid,user.username,user.ambportval, user.ambportgainamt, user.ambportgainper FROM vb_user WHERE (user.ambportval > 0) ORDER BY user.ambportgainamt desc LIMIT 20;;
MySQL Error : Unknown column 'user.userid' in 'field list'
Error Number : 1054
Date : Sunday, January 14th 2007 @ 07:44:55 PM
Script : mywebsite /vbtrade.php?do=topportfolios
Referrer :
IP Address : nope
Username : sorry
Classname : vB_Database
I am using MySQL 5.0.20. Playing around with it and removing the user. in the field list and in the WHERE and ORDER BY temporarily issues a fix, but nothing is displayed for users.
Second, I just purchased stocks yet it shows a change - even though no change is displayed. Screenshot for clarification.
Third, just trivial, but why 3 digit decimal places?
Thanks so much , we all really appreciate your hard work
** Noticed though , that we now have commas in place on the amount of stock quantities owned. If you copy and paste your quantity into the " sell " box , it's not reading all of the digits past the 2nd comma, just a heads up , almost sold 7.2 million worth of stock for 7,200
This link, along with the link in the installation text file, both give me a database error
Code:
Database error in vBulletin 3.6.3:
Invalid SQL:
SELECT user.userid,user.username,user.ambportval, user.ambportgainamt, user.ambportgainper FROM vb_user WHERE (user.ambportval > 0) ORDER BY user.ambportgainamt desc LIMIT 20;;
MySQL Error : Unknown column 'user.userid' in 'field list'
Error Number : 1054
Date : Sunday, January 14th 2007 @ 07:44:55 PM
Script : mywebsite /vbtrade.php?do=topportfolios
Referrer :
IP Address : nope
Username : sorry
Classname : vB_Database
I am using MySQL 5.0.20. Playing around with it and removing the user. in the field list and in the WHERE and ORDER BY temporarily issues a fix, but nothing is displayed for users.
Second, I just purchased stocks yet it shows a change - even though no change is displayed. Screenshot for clarification.
Third, just trivial, but why 3 digit decimal places?
Quote:
Database error in vBulletin 3.6.4:
Invalid SQL:
SELECT user.userid,user.username,user.ambportval, user.ambportgainamt, user.ambportgainper FROM vb3_user WHERE (user.ambportval > 0) ORDER BY user.ambportgainamt desc LIMIT 20;;
This link, along with the link in the installation text file, both give me a database error
Code:
Database error in vBulletin 3.6.3:
Invalid SQL:
SELECT user.userid,user.username,user.ambportval, user.ambportgainamt, user.ambportgainper FROM vb_user WHERE (user.ambportval > 0) ORDER BY user.ambportgainamt desc LIMIT 20;;
MySQL Error : Unknown column 'user.userid' in 'field list'
Error Number : 1054
Date : Sunday, January 14th 2007 @ 07:44:55 PM
Script : mywebsite /vbtrade.php?do=topportfolios
Referrer :
IP Address : nope
Username : sorry
Classname : vB_Database
I am using MySQL 5.0.20. Playing around with it and removing the user. in the field list and in the WHERE and ORDER BY temporarily issues a fix, but nothing is displayed for users.
I wonder, are you using a table prefix? I will have to go through the code and make sure everything is set up properly to work with table prefixes.
Quote:
Originally Posted by christianb
Second, I just purchased stocks yet it shows a change - even though no change is displayed. Screenshot for clarification.
Yes, that is how it's suppose to work. That change is the market change based on the last trade. Take a look at: http://finance.yahoo.com/q?s=twx
Even though the market is closed today, it still shows a "change". What you want to pay attention to to se how much you've made is the "Gain" and "Gain %" fields.
Quote:
Originally Posted by christianb
Third, just trivial, but why 3 digit decimal places?
Some of my users trade "penny stocks" where one share might cost .045 cents. WIth only two decimal places, it was impossible to make a profit all these stocks, so I took the mod to 3 decimal places.
When I load up the top portfolio screen, it's not populated at all. I get a nice header for members, portfolio value, total earning and percentage but nothing else is listed.