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)

benesanchez 08-09-2012 08:50 AM

is this hack still alive? i need a 4.x version badly for my forum :l

acast 12-21-2012 12:10 AM

Finally, anybody makes it work in 4.x?

Also, it will be great if you can sell before buying, like in real.

ArchangelX 01-27-2014 09:42 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2046376)
OK I posted this, then deleted it, now reposting after I read the topic a little closer, seems it was never resolved.

To get rid of the divide by zero errors on the current vbtrade application:
open vbtrade.php

on line 112 find
PHP Code:

     $gainper number_format((($gain/$mktval)*100),3); 

and replace with:
PHP Code:

      if ($mktval != 0)
           
$gainper number_format((($gain/$mktval)*100),3);
      else
           
$gainper 0

Everything else seems to work, make a backup of the original file just in case.

Wow! I just want to thank you, I recently came back to check this out, and I guess I missed this. It works! Thanks so much!

BucShot 10-13-2014 04:21 AM

I agree, it works! Couldn't remember what I tried to get it working before but the post above by BirdOPrey5 and quoted by ArchangelX brought this great mod back to life in 3.8x! I would like to thank you guys for posting the fix!

You will need a monetary system for Stock Trader to work but all that can be searched in this thread. Go for it, it's working..!

BirdOPrey5 10-13-2014 11:11 AM

Quote:

Originally Posted by BucShot (Post 2518622)
I agree, it works! Couldn't remember what I tried to get it working before but the post above by BirdOPrey5 and quoted by ArchangelX brought this great mod back to life in 3.8x! I would like to thank you guys for posting the fix!

You will need a monetary system for Stock Trader to work but all that can be searched in this thread. Go for it, it's working..!

Just remember when a stock splits anyone holding it will lose money. When Apple split earlier this year a lof of members were upset to lose all that money even though I warned them ahead of time to sell.


All times are GMT. The time now is 02:57 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.01688 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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