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)

Blaine0002 01-07-2007 03:38 PM

Try this... Open vbtrade.php
find:
PHP Code:

            $userdata =& datamanager_init('user'$vbulletinERRTYPE_STANDARD);
            
$userdata->set_existing($vbulletin->userinfo);
            
$userdata->set($moneyrow,($vbulletin->userinfo[$moneyrow] + $total_offer));
            
$userdata->save(); 

Replace with:
PHP Code:

$db->query("update " TABLE_PREFIX "user set {$vbulletin->options['vbst_moneyrow']}={$vbulletin->options['vbst_moneyrow']}+'{$total_offer}' where userid='{$vbulletin->userinfo['userid']}'"); 


find:
PHP Code:

            $userdata =& datamanager_init('user'$vbulletinERRTYPE_STANDARD);
            
$userdata->set_existing($vbulletin->userinfo);
            
$userdata->set($moneyrow,($vbulletin->userinfo[$moneyrow] - $totalcost_fc));
            
$userdata->save(); 

Replace with:
PHP Code:

$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..

TwinsForMe 01-07-2007 03:42 PM

That new file did the trick.

Thanks. :)

Carl Anderson 01-07-2007 04:37 PM

Quote:

Originally Posted by Blaine0002 (Post 1152680)
ICash works for 3.6.X, but if your modification is not backwards compatable with 3.5.X that would probably be the problem :-/

Hi I am using the latest 3.6.4? It looks like you found a fix for it.....

Blaine0002 01-07-2007 04:39 PM

Quote:

Originally Posted by Carl Anderson (Post 1152741)
Hi I am using the latest 3.6.4?

Did you preform the edit i posted above?

Lionel 01-07-2007 05:06 PM

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!!!!!!

TwinsForMe 01-07-2007 06:23 PM

I also added this ticker:

http://www.tufat.com/s_led_ticker_applets.htm

Carl Anderson 01-07-2007 06:28 PM

Quote:

Originally Posted by Blaine0002 (Post 1152742)
Did you preform the edit i posted above?

No I will use vbux now that I have started a investment contest and gave them all vbux.. When this contest is over I will uninstall vbux and use icash..

Quote:

Originally Posted by Lionel (Post 1152749)
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!!!!!!

This needs to get fixed right away IMO

Blaine0002 01-07-2007 10:06 PM

try this, i simply added a check where each preview was and it puts an error if the stocks entered was less than 1

Lionel 01-07-2007 10:40 PM

Quote:

Originally Posted by Blaine0002 (Post 1152895)
try this, i simply added a check where each preview was and it puts an error if the stocks entered was less than 1

was that the only change?

PHP Code:

  if ($shares 1){
     eval(
standard_error(fetch_error('invalid_shares')));
  } 


Blaine0002 01-07-2007 11:25 PM

no i also stuck one in there when you sell stocks, OH! and i also added the phrase to the XML file.


All times are GMT. The time now is 11:11 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.01579 seconds
  • Memory Usage 1,756KB
  • 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
  • (5)bbcode_php_printable
  • (5)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