vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Stock Trader for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=135084)

soletrader 12-30-2006 08:10 AM

I have another request. Perhaps a simpler version where the users can retreive stock quotes only instead of buying and selling shares. Thanks

Lionel 12-30-2006 01:57 PM

You need to fix the sql insert from VALUE to VALUES

zethon 12-30-2006 02:02 PM

Quote:

Originally Posted by Lionel (Post 1147528)
You need to fix the sql insert from VALUE to VALUES

Good catch. Thanks. I will have this change and a couple other minor changes in a release I'm going to put up in a coupe hours.

Lionel 12-30-2006 02:05 PM

A vbadvanced module displaying the major indices to all, 5 user's top stocks with a link to complete portfolio would be nice.

Total portfolio value would be nice too.

Lionel 12-30-2006 02:06 PM

This has a lot of potentials, congratulations.

zethon 12-30-2006 02:53 PM

I've uploaded a small update which includes the change of "VALUE" to "VALUES" and also includes a few more instructions about updating the navbar template (this was asked by a couple people).

For anyone who has already installed this add-on, to update, simply upload the vbtrade.php file to your forum's root directory, overwriting the old one. Also, import the product's XML file, setting "Overwrite" to yes.

Lionel 12-30-2006 03:34 PM

in the function function GetStockTable I did:

Quote:

$portfolio[] = ($info['shares'] * $shareinfo['lasttrade']);
and before the submit button in main, I did

Quote:

$tot=array_sum($portfolio);

$stocktable .= "
<tr class='alt$alt'><td colspan=7 align=right>$tot</td><td colspan=3></td></tr>";
Now I get the portfolio value

zethon 12-30-2006 04:50 PM

Quote:

Originally Posted by Lionel (Post 1147575)
in the function function GetStockTable I did:



and before the submit button in main, I did



Now I get the portfolio value

I've added similar code in the update I posted earlier.

UltimateOreo! 12-30-2006 07:25 PM

I get it now, Im going to install it. Go to phpmyadmin and see the table name that your cash system uses for its money. If you dont have any kind of points system or reputation system, I believe you will have to install one or make one just for this.

leo1977 12-30-2006 09:03 PM

I am not getting any yahoo feed, just the options to purchase stocks. running 3.6.0 and vbux. Any ideas?


All times are GMT. The time now is 08:10 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.01489 seconds
  • Memory Usage 1,734KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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