Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Stock Trader for vBulletin Details »»
Stock Trader for vBulletin
Version: 0.9.9, by zethon zethon is offline
Developer Last Online: Oct 2020 Show Printable Version Email this Page

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
  1. two plugins
  2. one cron job
  3. file uploads
  4. one new DB table
  5. one template
  6. several phrases

Installation
Approx 2-5 mins
  1. As always: Back up your Database!
  2. upload the files in the "upload" directory, preserving the directory structure
  3. Go into AdminCP and import the product-stocktrader.xml file.
  4. (OPTIONAL) add a link in the navbar template or wherever your users can find it!

Upgrading/Updating
  1. upload all files in the upload directory, overwriting any existing files
  2. re-import the XML file, setting "Overwrite" to "Yes"

Configuration
  1. 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
  • 0.9.2 (07-05-01) - bug fixes
  • 0.9.1 (06-30-12) - added AJAX stock info lookup
  • 0.9.0 (06-29-12) - initial Beta release

Future Features
  • stock ticker marquee for users

Official Support
http://code.google.com/p/vbtrade/
PLEASE CLICK INSTALL!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
ivanov73

Comments
  #222  
Old 01-19-2007, 12:42 AM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh oh I like this.

Thanks. I will click installed when I get my site back on.
Reply With Quote
  #223  
Old 01-19-2007, 01:45 AM
sportsoutlaw sportsoutlaw is offline
 
Join Date: Nov 2004
Location: Texas
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dabble in the stock market, and not use any of my own real money. I like this.

*Installed
Reply With Quote
  #224  
Old 01-19-2007, 07:35 AM
Carl Anderson's Avatar
Carl Anderson Carl Anderson is offline
 
Join Date: Apr 2003
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
This is not the real world. In day trading you can buy and sell within 1 second apart.

True but you must have a margin account to do so...

It takes three business days for stocks to settle.... Brokers do not allow you to do this without a margin account - hence day traders have margin accounts.
Reply With Quote
  #225  
Old 01-19-2007, 07:43 AM
d8tabyte's Avatar
d8tabyte d8tabyte is offline
 
Join Date: Nov 2005
Location: Michigan
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Quantnet.org View Post
Seems like a bug with rounding small gain/loss. When someone has a very small negative gain, the percentage gain should be -0.00%. Also, we need more decimal places instead of only 2

19.00 0.00%
-27.50 0.00%

Another request: when we view member portfolio, is it possible to display the amount of cash not invested of that member along with the portfolio value ?
You can do this with vbplaza/vbux by entering this where ever you want it to appear:

Code:
<phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]
As once stock is bought it deducts from total point anyway, until stocks are sold again.
Reply With Quote
  #226  
Old 01-19-2007, 08:10 AM
Carl Anderson's Avatar
Carl Anderson Carl Anderson is offline
 
Join Date: Apr 2003
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see no way of having contests that are fair and equal unless this uses its own money system. You need to enter a set amount as your cash starting point. If you don't do this some people may win the contest by making vbux for posts or reputation and buy stocks with it so it shows in their portfolio - whatever?

There are a lot of things that need to be considered for this to end up really good. I bet your head is spinning from all of the suggestions. Personally I want to see the contest part as the primary objective of your hack and add from there. Get that right and then add on some of the other suggestions. Contests will make it fun and get people to use it IMO - lots of people come to sites with games and contests and it keeps them interested to see how they are doing..

I would like to ask the other posters here if they feel the same and contests be the core and build from there?

I am going to send you a small donation for your work and efforts on this... However it turns out you deserve something from me and the users on my site..
Reply With Quote
  #227  
Old 01-19-2007, 08:33 AM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by d8tabyte View Post
You can do this with vbplaza/vbux by entering this where ever you want it to appear:

Code:
<phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]
As once stock is bought it deducts from total point anyway, until stocks are sold again.
I only use reputation as money and I don't see any reason to install another vbux, cash. As far as i can see, giving member 100K reputation is as good as 100K in cash.
Reply With Quote
  #228  
Old 01-19-2007, 10:57 PM
xxxsaint's Avatar
xxxsaint xxxsaint is offline
 
Join Date: Jun 2002
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Carl Anderson View Post

I would like to ask the other posters here if they feel the same and contests be the core and build from there?
I personally do not want this to become a " stock competition " hack. If that does become the case , then notify us on when it becomes a time-set competition only thing so I can stop upgrading at that point. Nothing wrong with fun competitions , but nothing wrong with having a blast just trading stocks as this has been designed to do.


P.S. Please add Mutual Funds , it gives us the quotes from mutual funds , but doesn't let us buy them!
Reply With Quote
  #229  
Old 01-20-2007, 04:59 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was wondering if you could make this hack handle stocks splits?
Reply With Quote
  #230  
Old 01-20-2007, 07:49 AM
d8tabyte's Avatar
d8tabyte d8tabyte is offline
 
Join Date: Nov 2005
Location: Michigan
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Quantnet.org View Post
I only use reputation as money and I don't see any reason to install another vbux, cash. As far as i can see, giving member 100K reputation is as good as 100K in cash.
Code:
				<if condition="$show['reputation']"><div><span>Reputation: $post[reputation]</span></div></if>
Reply With Quote
  #231  
Old 01-20-2007, 01:19 PM
Carl Anderson's Avatar
Carl Anderson Carl Anderson is offline
 
Join Date: Apr 2003
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xxxsaint View Post
I personally do not want this to become a " stock competition " hack. If that does become the case , then notify us on when it becomes a time-set competition only thing so I can stop upgrading at that point. Nothing wrong with fun competitions , but nothing wrong with having a blast just trading stocks as this has been designed to do.


P.S. Please add Mutual Funds , it gives us the quotes from mutual funds , but doesn't let us buy them!
I would suspect that most sites will feel the same as you do. At my site most of my users are stock traders for real stocks and many of the posts are already about stocks. So it is important to me that it works right with no way to win in a contest other than picking the best stocks.

I can see how other sites may want to use this along with reps or posts to build up a portfolio and maybe reward users. We all have different sites and different users - I just hope this add on can have the options to fit most of our needs so we can present it the way we want to our users.

Zethon consider this for the contest part of it..

Add a table that can import the money from vbux, icash etc. In the contest set up area place the amount that can be imported into that table for the contest from vbux etc.. This will be your portfolio starting point and you can't add more than what is set in the contest set up. Have a start date for contest and end date and the one with the most bux at the end date is the winner.

You could also set it to so there is no limit for the sites that want their users to be able to use all of their bux they earn in the contest.

This a great add on and all of us have different visions of how we want to present it to our users. My hope is that their will be enough options that we all can set this up to work for our sites in a way that will be best for each site...

Thanks zethon for all your efforts!:up:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:37 AM.


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.04947 seconds
  • Memory Usage 2,323KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete