PDA

View Full Version : Add-On Releases - Stock Trader for vBulletin


Pages : 1 [2]

Lionel
01-22-2007, 02:20 PM
I am afraid that restricting the buying time will not help. You will aways be able to cheat, no matter what with the 15 minutes delay (which is how everyone displays it, unless you pay for a live feed)

MorrisMcD
01-22-2007, 02:28 PM
I am afraid that restricting the buying time will not help. You will aways be able to cheat, no matter what with the 15 minutes delay (which is how everyone displays it, unless you pay for a live feed)

What I meant is if I could restrict them to buying say 10am-3pm AND make them hold for a day at least.. Then there is still risk on their part for holding it for a day without getting that quick 5 dollar increase thats possible at open.. I am no stock genious.. I just figured that way cheating would not necessarily always benefit you as much as if you couldnt get that big jump between open and close

Lionel
01-22-2007, 02:30 PM
The only way would be to hold the buy/sell in a temporary table and have a cron to execute it 15 minutes later, but that gets complicated and kills the purpose

At 10:00 AM they still will be able to read the report for 15 minutes later.

RyanDe680
01-22-2007, 04:30 PM
I'm still receiving an error...

My navbar has the links to Stock Trader and Top Investors, but those pages won't even show up.

I am running vb 3.6.4 and using iCash. I made sure that both money rows show "money" in them to match and still nothing. I just downloaded the program for this 2 days ago, so I don't think I missed any fixes....

Quantnet
01-22-2007, 05:39 PM
I have some members who has Bloomberg terminal at work so of course, 15 minutes delay is what they will exploit. Just look for the big movers and you can make huge profit.

My members request to have historical purchases. I guess this will add another talbe ?

Lionel
01-22-2007, 05:43 PM
Lucky for me my members use this as training. So cheating will only harm themselves.

xxxsaint
01-22-2007, 08:11 PM
all you have to do is look at the biggest " after hours " movers and buy those up , and sell at the next day's opening. People are going to cheat regardless , let's not get too carried away and handicap the rest of us that aren't.

Any new news on the mutual funds part ?

buidoi
01-23-2007, 03:14 AM
i did everything and i got "Invalid Action Specified"

Lionel
01-23-2007, 03:16 AM
i did everything and i got "Invalid Action Specified"

you need to specify the usergroups in the settings

buidoi
01-23-2007, 03:20 AM
also above it "there is a money row" that i left blank..i didn't noe

well 0 for all users

Lionel
01-23-2007, 03:23 AM
you need to put something in the money row (uttpoints,vbux,icash, reputation etc... whatever you are using)

buidoi
01-23-2007, 03:27 AM
ok i put vbux...then

"Get Stock Quote"
___________
Buy Stock
Cash on hand
Stock Symbol________

is there sumthing that show u how to use it

Lionel
01-23-2007, 03:28 AM
Do you know what this hack is for?

buidoi
01-23-2007, 03:30 AM
play stock?

Lionel
01-23-2007, 03:32 AM
Do you see a value for cash in hand? If yes, then you play by putting in the stock sympol, the # of shares you wish to purchase, then you click on preview purchase.

If you have nothing for cash in hand, then you have a problem.

You also need to click install to show appreciation to the coder.

buidoi
01-23-2007, 03:37 AM
<a href="http://img163.imagevenue.com/img.php?image=30582_untile_122_442lo.JPG" target="_blank">http://img163.imagevenue.com/img.php..._122_442lo.JPG</a>

there is what it looks like
Put in a stock symbol.....like wat

Magz
01-23-2007, 03:37 AM
My users all asked the same question, so i made a very basic video tutorial for them.

This may help you understand a little better.

please note, i know very little about the stockmarket :)

http://www.the-hunting-ground.com/tutorials/trader/trader.html

Lionel
01-23-2007, 03:38 AM
1-Your money row is incorrect

2-Do you know what the stock market is?

buidoi
01-23-2007, 03:40 AM
My users all asked the same question, so i made a very basic video tutorial for them.

This may help you understand a little better.

please note, i know very little about the stockmarket :)

Click here to view ("http://www.the-hunting-ground.com/tutorials/trader/trader.html)

first of video is messed up....

i don't noe anything about the stockmarket!!!

also the money row...is that mean like wat kind of $ i'm using ... cuz i have vbux & vbplaza

Lionel
01-23-2007, 03:43 AM
make the money row vbbux

buidoi
01-23-2007, 03:45 AM
nice...ok

RyanDe680
01-23-2007, 03:46 AM
I have the money row in the stock add-on as icash and the same goes for the money row in icash... still nothing.

Lionel
01-23-2007, 03:47 AM
I have the money row in the stock add-on as icash and the same goes for the money row in icash... still nothing.

I suggest if you have phpadmin to look at the user table and to verify what the money row is. In the case above, he was missing a "b" in vbbux

Lionel
01-23-2007, 03:53 AM
I just looked at icash. The money row is named "money" without the quotes.

RyanDe680
01-23-2007, 03:58 AM
which i now changed back to

looking at my phpadmin, i dont even see the money row

Lionel
01-23-2007, 04:00 AM
if you don't see a column named "money" in table_prefix."user then you haven't got icash installed.

zethon
01-23-2007, 04:08 AM
I hate to do this to you guys, but this project is getting a little bigger than I anticipated. I created a section on my board for the plugin, which I check daily and where I can pay more attention.

The direct link will be: http://www.anothermessageboard.com/forumdisplay.php?f=35

I'm trying to fix it so Guests will have "Read Only" to the bug list and the discussion. You will have to register to submit new bugs and make new posts.

Also, if someone could explain the buy-off-hours-sell-first-thing-in-the-am cheat to me, I would be greatful. How and why does it work?

Thanks!

Edit: I will continue to post the new releases on here.

Lionel
01-23-2007, 04:13 AM
Zethon, there are reports which are real time and indicates the biggest market movers at the opening of the day and throughout the day. Say you look at report and it shows that MSFT was one of them and went up 5 points. Since our stocks are 15 minutes delayed, as of 9:44 AM it will still show the same value from the day before. So you buy at that old value. At 9:45 AM the market opens for us for the value that was at 9:30 in real time. So right there you make 5 points profit.

The only way, in my opinion, to prevent it would be to make the purchase pending and then execute it 15 minutes later with a cron.

zethon
01-23-2007, 02:04 PM
There is an option from the Yahoo feed to grab info labeled as "Last Trade (With Time) Real-Time". I was monitoriing this, and it seems that this gets updated constantly. I'm gonna update the script to use this instead of the one it's been using and see if that solves the problem with the cheat.

I will post an update shortly. Once this is up, can someone please let me know if this resolves the issue. I understand we may have to wait a day for the market to close and open to see.

Also, please remember that I'm eventually going to stop checking this thread as often. ANy real issues, discussion, suggestions, please post at the new "official" support site:

http://www.anothermessageboard.com/forumdisplay.php?f=35

RyanDe680
01-23-2007, 03:57 PM
I re-installed icash 3 times, still no luck.

Where should i be looking for this then?

zethon
01-23-2007, 05:15 PM
Could those of you who have seen the after-hours-trading-cheat in action please try this fix to see if this resolves the problem?

I've attached one file to this post. Simply upload this file to your /includes directory, overwriting the already existing file. If this does fix the cheat, I will include this in an official update.

zethon
01-23-2007, 05:29 PM
Any new news on the mutual funds part ?I have a fix for this. I will include this in the next update which should come some time tomorrow night (EST).

Marko777
01-23-2007, 07:15 PM
Today I'm getting an error (it worked perfectly for two days. I haven't changed a thing):

Warning: file() [function.file]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /includes/class_stocktrader.php on line 65

Warning: file(http://quote.yahoo.com/d/quotes.csv?s=GOOG+AAPL+SPY+&f=snl1vc1p2d1t1xp) [function.file]: failed to open stream: Connection timed out in /includes/class_stocktrader.php on line 65

Warning: implode() [function.implode]: Bad arguments. in /includes/class_stocktrader.php on line 65

Warning: Division by zero in /vbtrade.php on line 112

Warning: Division by zero in /vbtrade.php on line 112

Warning: Division by zero in /vbtrade.php on line 112

zethon
01-23-2007, 07:32 PM
Today I'm getting an error (it worked perfectly for two days. I haven't changed a thing):Looks like your server is having issues connecting to the Yahoo feed. Contact your host.

xxxsaint
01-23-2007, 08:31 PM
Could those of you who have seen the after-hours-trading-cheat in action please try this fix to see if this resolves the problem?

I've attached one file to this post. Simply upload this file to your /includes directory, overwriting the already existing file. If this does fix the cheat, I will include this in an official update.

Just out of curiosity , this doesn't prevent us from buying after the market has closed does it ? Because I work in retail management and I'm rarely home when the markets are open :)

zethon
01-23-2007, 11:14 PM
Just out of curiosity , this doesn't prevent us from buying after the market has closed does it ? Because I work in retail management and I'm rarely home when the markets are open :)No, it does not. I changed the plugin to grab slightly different info from Yahoo. I believe it's a "real time" feed.

In theory, if a user tries to buy something early in the morning, it should use the current price and not the previous day's price.

RyanDe680
01-24-2007, 05:24 PM
Should there be something for icash on my forumhome that would work with the stock trader? My stock trader links are in the navbar, but they lead to non-existent pages

zethon
01-25-2007, 01:22 PM
I've posted a new update which includes two fixes:

1) mutual funds can now be bought/sold
2) the after-hours-purchasing cheat should be fixed

MorrisMcD
01-25-2007, 02:04 PM
2) the after-hours-purchasing cheat should be fixed

What is it that you did to make this the case?

Quantnet
01-26-2007, 03:21 PM
i heard report from my users today that when they buy before market opens, vbtrader shows the market is already open. This is by design right ?

zethon
01-27-2007, 03:26 AM
i heard report from my users today that when they buy before market opens, vbtrader shows the market is already open. This is by design right ?it's based on however Yahoo is getting it's information. I am using a the "real time" price from Yahoo, and not the price that is 15 minutes behind.

At least this is what I suspect. I don't know enough about stocks, live quotes, etc, to know for sure. The data field of Yahoo's I'm using seems to change by the second, so I'm guessing it actually is the "real time" quote.

Actually, now that I think about it... this won't fix the cheat. Crap! I will have to think on this again.

QUESTION: From where can I get after hour stock quotes?

MorrisMcD
01-27-2007, 03:37 AM
it's based on however Yahoo is getting it's information. I am using a the "real time" price from Yahoo, and not the price that is 15 minutes behind.

At least this is what I suspect. I don't know enough about stocks, live quotes, etc, to know for sure. The data field of Yahoo's I'm using seems to change by the second, so I'm guessing it actually is the "real time" quote.

Actually, now that I think about it... this won't fix the cheat. Crap! I will have to think on this again.

QUESTION: From where can I get after hour stock quotes?

If its real time, why wouldn't it fix the cheat? Or do you suspect now that it really isnt on real time?

Lionel
01-27-2007, 03:40 AM
I sincerely doubt that this is real time, as you need to pay for those. I remain convinced that the only way to get around it would be to put the trade on hold and to execute it 15 minutes later, making sure that user still has enough money to do transaction (price variance)

zethon
01-27-2007, 03:53 AM
I think you're confusing "getting real time quotes" with "displaying real time quotes". However, you may be right -- I wonder if there's anyway to tell? Let me ask you, does it cost money for you to view real time quotes?

The old field I was using, the price would only update every 10-15 minutes or so. The new field I'm using, the price seems to change by the second. I suspect it is a real-time quote. Streaming the data and polling the data are two very different things.

Let me ask a stupid question. I'm trying to figure out a way to determine if the market is open based on the data of one specific stock. I'm thinking of using the "Last Trade Date" and "Last Trade Time" fields. If a stock hasn't been traded in say the last 30 minutes, is it "safe" to assume the market is closed? Or is it possible a stock may go hours, days or even longer without ever being traded?

Lionel
01-27-2007, 03:58 AM
I get real time quotes from my broker, or when I was doing daytrading, it cost me a hefty penny to see the market live. I believe they do it like that in order to protect the brokerage firms.

It's very possible for a low volume stock to remain idle (no transactions) while legitimately open for trade.

Market is open Monday to Friday from 9:30 sharp to 4:00 PM EST. And there again it will not be foolproof because of holidays.

RyanDe680
01-29-2007, 01:04 AM
*clicks uninstall*

Good idea, but I can't get it to work with iCash on 3.6. I reinstalled everything 3+ times and still nothing.

sinisterpain
01-29-2007, 01:19 AM
*clicks uninstall*

Good idea, but I can't get it to work with iCash on 3.6. I reinstalled everything 3+ times and still nothing.

Works fine for me on 3.6.4 Icash installed

punchbowl
01-30-2007, 10:29 AM
any feeds for uk stock exchange?

TJFweb
02-03-2007, 10:51 AM
Hi. Is there any point in changing the exchange rate of forum points -> USD?

Additionally, might I suggest the option of adding a multiplier to any gains, as it would provide faster short term gains for forum users?

TJFweb
02-04-2007, 10:45 AM
Additionally, there seems to be a bug with one of the rows in the table on the 'Sell Preview' screen.

See here: http://img239.imageshack.us/img239/640/vbtraderscreengd5.jpg

When you have capital gains tax set, the row for capital gains tax pops out instead.

brvheart
02-10-2007, 07:51 PM
I tried to install this on 3.6.4....but when I got the the vbtrade page it is nothing but jibberish meaning:

"symbol", "n" => "name", "l1" => "lasttrade", "v" => "volume", "c1" => "change", "p2" => "perchange", "d1" => "lasttradedate", "t1" => "lasttradetime", "x" => "exchange", ); var $service_url = 'http://quote.yahoo.com/d/quotes.csv'; var $format = null; var $request = null; function StockRequester() { foreach ($this->request_formats as $code => $key) $this->format .= $code; $this->request = $this->service_url."?s=%1&f=".$this->format; } function BuildHash($string) { $retval = null; $string = str_replace("\"","",$string); $stack = explode(',',$string); foreach ($this->request_formats as $code => $key) { $retval[$key] = trim(array_shift($stack)); } return $retval; } function GetSingleQuote($symbol) { $request = str_replace('%1',$symbol,$this->request); $response = implode ('', file($request)); return $this->BuildHash($response); } function

The entire page looks like this, can someone help me get this working? I love the idea behind this would love to have it up and running :)

zethon
02-11-2007, 06:01 PM
I tried to install this on 3.6.4....but when I got the the vbtrade page it is nothing but jibberish meaning:

"symbol", "n" => "name", "l1" => "lasttrade", "v" => "volume", "c1" => "change", "p2" => "perchange", "d1" => "lasttradedate", "t1" => "lasttradetime", "x" => "exchange", ); var $service_url = 'http://quote.yahoo.com/d/quotes.csv'; var $format = null; var $request = null; function StockRequester() { foreach ($this->request_formats as $code => $key) $this->format .= $code; $this->request = $this->service_url."?s=%1&f=".$this->format; } function BuildHash($string) { $retval = null; $string = str_replace("\"","",$string); $stack = explode(',',$string); foreach ($this->request_formats as $code => $key) { $retval[$key] = trim(array_shift($stack)); } return $retval; } function GetSingleQuote($symbol) { $request = str_replace('%1',$symbol,$this->request); $response = implode ('', file($request)); return $this->BuildHash($response); } function

The entire page looks like this, can someone help me get this working? I love the idea behind this would love to have it up and running :)Re-install. Your files have been corrupted somehow. This is not a problem with the script.

brvheart
02-11-2007, 08:39 PM
I did reinstall 3 times, even download the files again :(

brvheart
02-11-2007, 09:41 PM
I fixed it, at the top of the php page, you have this:

<?

<?php


99% of the time this does not matter, in this case it does....seems ok now :)

Quantnet
02-22-2007, 07:14 PM
it stops working today...something wrong with the yahoo feed ?

Lionel
02-22-2007, 07:22 PM
it stops working today...something wrong with the yahoo feed ?


you saved the day for me. I was getting lots of emails about site being unaccessible. After your message I disabled the vbadvanced stock trader and all is fine. Yahoo probably closed the feed.

zethon
02-22-2007, 07:25 PM
Looks like Yahoo change the subdomain of their feed, which is causing Stock Trader not to work at all. Upload the attached class_stocktrader.php file to your /includes directory, overwriting the existing one, and this should fix the problem.

Quantnet
02-22-2007, 07:34 PM
Glad I spotted this early.
Overwrite with new file and all is fine.

Thanks Zethon for the quick fix. I posted a bunch on your board about this ;)

Quantnet
02-23-2007, 03:50 AM
A quick question

How would I use template conditional to show in the postbit the $post[ambportval] only for members whose portfolio > 0

Otherwise, don't display that since I have lot of people with portfolio = 0

Something like this (not quite right yet)

<if condition="$post[ambportval] == 0">

don't display anything here

Else

<if condition="$show['reputation']" >
<div class="pbit" align="left">
Portfolio: $$post[ambportval] <br>
Change: $post[ambportgainper]%</span></div></if>
</if>

Quantnet
02-23-2007, 04:03 AM
After playing with it for a couple of minutes...I found out a way to do this. Hope this helps

<if condition="($show['reputation']) AND ($post[ambportval] != 0)"><div class="pbit" align="left">Portfolio: $$post[ambportval] <br>
Change: $post[ambportgainper]%</span></div></if>

djchris
03-05-2007, 03:06 PM
Hi zethon,

Love your mod. Is there any I could use this mod with other stock exchange? I'm thinking of using it with the Singapore Stock Exchange (SGX).

Please advise.

gsnindia
03-08-2007, 01:21 PM
I have problem i do not have the icash and money ,

i am using reputation , but that is not increasing , can you provide any option so that i can give all a single amount so that can use the same for trading amount putting all on parity with starting amount.

newhere
03-16-2007, 01:00 AM
I had this installed and it was working great. But now I am receiving intermittent problems which will last for hours at a time. It seems it is unable to retrieve the CSV file from finance.yahoo.com despite the fact that you can browse directly to the url it passed to file() and the CSV file is served up just fine. What's the deal?

The error looks like:

Warning: file(http://finance.yahoo.com/d/quotes.csv?s=PLA+CVX+MEDI+HAL+JBLU+F+HMC+VZ+HPQ+&f=snl1vc1p2d1t1xpk1): failed to open stream: HTTP request failed! in /includes/class_stocktrader.php on line 74

Warning: implode(): Bad arguments. in /includes/class_stocktrader.php on line 74


Does anyone else have this problem or know what is going on?

dashed
03-20-2007, 01:36 AM
Can you make the plugin not to be viewed by guests/not logged-in users?

forumrating
06-18-2007, 05:17 AM
all working fine..

just found a bug for one stock

Infy.ns if i buy it , it works fine,
but if i sell it then the status of the stock shows 0 value.

error message
Warning: Division by zero in /vbtrade.php on line 112

Warning: Division by zero in /vbtrade.php on line 112

masons
06-26-2007, 11:10 AM
Hi,

I installed it using REPUTATION field and it works fine
2 questions

1) How would we put "a" yahoo stock runner in there
2) How can we see the other players stats

Centrix
07-20-2007, 03:24 PM
Well its already july... where is the full version o.O

- edit

I cant buy some stocks... does it only allow a few stocks to buy?

websiteking532
07-21-2007, 04:20 AM
how can i add it to navbar?

kylek
08-21-2007, 06:50 PM
how can i add it to navbar?

It says how to in the install file.

Just installed stock trader with the new vbcredits and it works good, had to put credits for the money row.

Only negative thing is it shows 12 decimal spots for the amount of cash on hand.

wickland
08-21-2007, 10:27 PM
I'm having a problem, I just installed it and pressed "stock trader" and it goes to a blank page, nothing is happening. It's turned on and everything too from the options.

Anhyeu12000
08-24-2007, 01:44 PM
Is this Modification Developing ? Why hadn't update from 23. Feb 2007 ? Now : 24-8-2007 !

Quantnet
08-24-2007, 07:14 PM
Is this Modification Developing ? Why hadn't update from 23. Feb 2007 ? Now : 24-8-2007 !
Official Support

This thread until Feb 1st

After Feb 1st: http://www.anothermessageboard.com/f...splay.php?f=35

nsusa
08-31-2007, 02:54 AM
Script is broken:

Warning: Division by zero in /vbtrade.php on line 112

Any idea what is going on?

kelly6139
08-31-2007, 03:16 AM
is this stock trader program can only apply for US market? can it be other country?

energetic
10-04-2007, 04:02 AM
It will be great if it can be used in other market such as Hong Kong.

vAsia
10-21-2007, 08:03 PM
Is this script still being supported?

hubix
10-29-2007, 12:44 PM
Hello,

I need help! After an update on 3.6.8 the Stock Trader cronjob fills the database table with 0 an no depot appears in the "top depot" listing.
But everyone can furthermore manage his own depot, it's just that the toplist isn't showing.
Has anybody else this problem?

rungok
11-02-2007, 05:39 PM
Official Support

This thread until Feb 1st

After Feb 1st: http://www.anothermessageboard.com/f...splay.php?f=35
Doesn't seem that much is happening over there either. Anyone seen any chart-addon to this mod?

rungok
11-02-2007, 11:46 PM
Small hack that lists the symbols in your portfolio as a link to Yahoo's new beta chart.

OPEN VBTRADE.PHP
FIND (LINE 147):
$stocktable .= "<tr class='alt$alt'><td title='$shareinfo[name]'>$info[symbol]</td><td align=center>". ( number_format($info[shares]) ) ."</td><td align=right>$lastprice</td><td align=right>$change</td><td align=right>$purchase_price</td><td align=center>$timetxt</td><td align=right>". number_format($costbasis,2) ."</td><td align=right>". number_format($mktval,2) ."</td><td align=right>$gaintxt</td><td align=right>$gainpertxt</td>$qtyfield</tr>\n";


REPLACE WITH:
$stocktable .= "<tr class='alt$alt'><td title='$shareinfo[name]'><A href=http://finance.yahoo.com/charts#chart1:symbol=$info[symbol];range=5d;indicator=volume;charttype=line;crosshai r=on;logscale=on;source=undefined target=_new>$info[symbol]</A></td><td align=center>". ( number_format($info[shares]) ) ."</td><td align=right>$lastprice</td><td align=right>$change</td><td align=right>$purchase_price</td><td align=center>$timetxt</td><td align=right>". number_format($costbasis,2) ."</td><td align=right>". number_format($mktval,2) ."</td><td align=right>$gaintxt</td><td align=right>$gainpertxt</td>$qtyfield</tr>\n";

vAsia
11-03-2007, 12:46 AM
Does this mod still work? I don't see the mod author anywhere.

Shazz
11-03-2007, 03:10 AM
This is NICE
Sort of like stocksquest.com
shortsell would be a nice feature as well! :)

rungok
11-07-2007, 09:07 AM
Does this mod still work? I don't see the mod author anywhere.
It works in 3.6.5 at least.

mmllc
11-10-2007, 04:11 PM
show of hands, how many think the instructions on how to make this work are LAME...???

Nzarect
11-13-2007, 04:19 PM
Just installed on 3.6.8 and works fine with vbcredits 1.4rc1

Rahuldhanpat
11-25-2007, 07:30 PM
hey thanks for this hack...

But can you just tell me y it is not working in my forum?????????
when ever i click stock trader then one pag opens and this msg comes " Error 404 - Not found

Your browser can't find the document corresponding to the URL you typed in....

I m not using Icash.......

and also what to do with these coloums in admin panel( See the attachment)

Digbijoy
11-30-2007, 02:21 PM
good solution friend

NFLfbJunkie
12-06-2007, 03:52 AM
My 'Cash on Hand' at the moment displays as 42.7000000000007.

I use vBCredits as my money system and have the number of decimal places set to zero. Prior to the above display of cash on hand, it displayed an amount with one digit to the right of the decimal. Is there a way to display the cash on hand with no digits to the right of the decimal?

mmllc
12-07-2007, 03:18 AM
sorry if this was answered already, but how can we make the TOP PORTFOLIOS page update more often? As is, its once a day right? I searched through all of the PHP files for vbtrade but its not there, that I know of.

MrGoodbyte
12-31-2007, 06:07 PM
Hi there ...

I didn't find a similar problem, so .. here I am:

Pressing the Stock-Trader button (or, as it is named on my board the 'FeeEssen Aktienmarkt') I get this amazing message:

http://img204.imageshack.us/img204/4030/tradeswu1.jpg (http://img204.imageshack.us/img204/4963/tradeep2.png)

In English it means something like: An illegal opperation should be executed! :eek:

In my navbar I performed the changes as listed in the install.txt; in my ACP I granted access to the stock trader to every usergroup, and the error occures either if I give a yes or a no to the 'Turn the vBulletin Stock Trader system on or off'-option.

So, what could be the mistake?

Thanks for Your help ...

http://www.forum-feeessen.de/greetz.gif

AWJunkies
01-11-2008, 04:51 AM
There is an issue with selling with 3.6.8 and vbcredits 1.4rc1. It won't give the user the money from selling. It is random it doesn't happen to me the admin but has happened to at least 3 people with over 100 people using it daily. Also any plans on integrating a search for stock ID? Instead of the user going to msn or yahoo to get the letters that make up the stock there will be a search to get it?

AWJunkies
01-11-2008, 04:55 AM
0.9.9 (07-25-01)

says the latest release but when you dled the file it is 0.9.8 any ideas or did you forget to change that? seems the same as old version 0.9.8

Trigr
01-18-2008, 02:10 PM
im getting this error when you try to view one of my members stocks page.

Unable to add cookies, header already sent.
File: /home/united/public_html/includes/class_core.php
Line: 3142


Its weird because I can vew other members profile pages with no errors except for this one. I am running vB3.7.0 Beta3 but everything else works from the mod so I cant think its becuase of that.


Any Ideas from anyone?

http://www.unitedgodz.com/vbtrade.php?do=viewportfolio&userid=3873

http://www.unitedgodz.com/vbtrade.php?do=topportfolios


Thanks to anyone with ideas or the cure.

ArchangelX
01-21-2008, 09:31 AM
I wouldn't expect any support from the author...it's a promising hack, and it's unfortunate he's dropped support from it.

Still...it works well on my board. I'd like that comments system Lionel figured out though...that looks like good stuff.

amroawad
01-22-2008, 08:24 PM
Can you use this to sell stocks of your own forum? Or is it only based on true stocks?

ArchangelX
01-23-2008, 05:46 AM
true stocks only...

lordbinder
01-29-2008, 02:33 PM
can you sell stocks that you dont currently have? that would be great and more rallistic

lordbinder
01-29-2008, 02:39 PM
one more thing can the portfolio get the ability to put a link , so when you click the stock youll get the chart? if possible a link choosen by the admin, so youll use your own charting script or a yahoo link

socketmail3
01-29-2008, 03:24 PM
A Major issue here...is if you say you have 100$ ..and you buy US stock scripts...woth 30$, and then you buy Indian or other stocks (it actually lets you outside the US market) ... you actually pay 10$ for a 10 Rupee (25 cents)...is there a way to stop certain stocks or work out a conversion rate for intl stocks or something...

What that means is even though your supposed to be paying 25 cents (10 rupees) per indian share...it takes it as 10$... I wouldnt mind paying someone to help me update and modify the script to serve purpose. Anyone interested let me know :)

Mr President
02-11-2008, 03:48 PM
I have looked through here trying to see if anyone else has found this bug but i don't see it. if i have missed it please accept my apology for posting it again.. Anyway, one of my members found a bug for selling stocks.

if you sell 1 more stock then you have and put a + sign at the beginning and the end, it will give you the money but not sell your stock.

example, i have 1000 stocks of GE valued at 1.00 each. If i go in and put +1001+ and sell them, it will give me $1000.00 but my stocks do not sell.. So someone could cash out all day long on this and it would be very hard to figure out.

Wasn't sure if there was a fix for this, and if not i just wanted to let you know about it.

nsusa
03-07-2008, 01:09 AM
This broke today in my 3.6.8 PL2 forum.

Warning: Division by zero in /vbtrade.php on line 112

This is the error. Any idea?

ArchangelX
03-07-2008, 07:21 PM
Yepz...broke here, too. Did the Yahoo account access change?

Mys
03-07-2008, 07:49 PM
Broken here too!:(

ArchangelX
03-07-2008, 08:24 PM
Wow...did it happen to alot of people on one day? Crap. :(

Theoldwiz
03-08-2008, 01:40 AM
Broke here too

Kalina
03-08-2008, 02:49 AM
Weird, ours is broken too, I thought maybe it doesn't like PHP5, but we upgraded to PHP5 awhile back.

kylek
03-09-2008, 11:32 PM
Another 3 sites added to the list - Warning: Division by zero in /vbtrade.php on line 112
Hopefully someone can figure out whats wrong.

sandt38
03-10-2008, 11:47 PM
Warning: Division by zero in /vbtrade.php on line 112

Same here. Some stocks are showing up [Like Sony (SNE)] but most others are dead...

nsusa
03-11-2008, 01:07 AM
Time to consider an install soon I guess. :(

kylek
03-11-2008, 03:43 AM
Anyone know what the cron settings for this should be? I just went and check my settings and to me they seem blank, when run manually some of the info came back like stock price, etc.

kotlt99
03-11-2008, 12:35 PM
I dont want to use yahoo. I just want to add imaginary stock codes.

Then with that stock codes, users can buy those.
And everyday the admin (that's me) will update changes manually and randomly.

And we can create a list of stock codes for those stock codes?

So zethon, is there anyway to create my own stock rather than use Yahoo feed??

sandt38
03-12-2008, 04:08 PM
Maybe this should be listed as "unsupported". My board is still broke.

Mys
03-12-2008, 10:30 PM
Maybe this should be listed as "unsupported". My board is still broke.

Ditto ~

sandt38
03-13-2008, 02:26 AM
He isn't supporting it on his site apparently either.

Maybe if we post it enough HERE (http://www.anothermessageboard.com/showthread.php?t=12244) he will at least respond.

ArchangelX
03-17-2008, 06:52 PM
It's got to be something that changed in Yahoo, then...does anyone know how to access or where they get their feeds?

ProAzn
03-19-2008, 07:28 PM
same error here. this happened right after the markets plunged. hmm, any relation?

stamos2003
03-20-2008, 10:00 AM
you guys have just to change the new yahoo url for the feed, the new one is:
http://download.finance.yahoo.com/d/quotes.csv

change this in the file class_stocktrader.php

the other problem is, that the stock overview quotes only one stock right, I guess this is some kind of misplaced variable in the code.

kylek
03-20-2008, 05:51 PM
you guys have just to change the new yahoo url for the feed, the new one is:
http://download.finance.yahoo.com/d/quotes.csv

change this in the file class_stocktrader.php

the other problem is, that the stock overview quotes only one stock right, I guess this is some kind of misplaced variable in the code.

That URL is already there in class_stocktrader.php

stamos2003
03-21-2008, 07:15 AM
no, the existant url is:

var $service_url = 'http://finance.yahoo.com/d/quotes.csv';

there is a "download" in front

kylek
03-21-2008, 09:12 AM
Thank you many times over stamos2003 for the right url!!!

You were right, I was blind, didn't see the change in the link. Just switched it and everything is back to normal and working like it did before.

Thanks again!!:up:

Quantnet
03-21-2008, 08:55 PM
Thanks stamos,
After I changed it and rerun the cron job, it still shows

Warning: Division by zero in /vbtrade.php on line 112

And some of the profile still has () in the change column..Is there anyway to fix the warning and refresh all the accounts ?

ArchangelX
03-24-2008, 01:17 PM
*sigh*

Same here... http://download.finance.yahoo.com/d/quotes.csv simply doesn't change anything. :(

sandt38
03-25-2008, 07:56 PM
I attempted the same thing with no change in results. There is a variable missing in the string, but I can't figure it out. In searching google for the url I found it will work when you add ticker symbols to it... But how do you add the variable, which must be a part of the program?

ProAzn
03-28-2008, 08:53 PM
Is there no more support for this mod? No one has a new file/code to correct the issue??

Sigh.. :(

kylek
03-29-2008, 04:45 AM
I did change the link that Stamos2003 provided and it works fine, its been running since March 21 and allows us to get quotes, buy, and sell the stock, shows stock prices, etc.

Stuff we did for it:
1 - reupload the stock trader files,
2 - import the product-stocktrader.xml file and selected overwrite
3 - checked the cron, changed it to run once every hour
4 - changed the url for the feed to the one Stamos2003 provided.

After this its been working fine.

rungok
03-29-2008, 11:27 AM
*deleted*

Quantnet
03-29-2008, 01:57 PM
kylek
I did what you did and it didn't help. it just wipe out everything and still the same error

ArchangelX
03-31-2008, 06:07 AM
Damn. Tried the same thing...no dice. This sucks.

romanticyao
03-31-2008, 02:07 PM
My 'Cash on Hand' at the moment displays as 42.7000000000007.

I use vBCredits as my money system and have the number of decimal places set to zero. Prior to the above display of cash on hand, it displayed an amount with one digit to the right of the decimal. Is there a way to display the cash on hand with no digits to the right of the decimal?


open up vbtrade.php and change

$cashonhand = $vbulletin->userinfo[$moneyrow];to

$cashonhand = round($vbulletin->userinfo[$moneyrow],2);This will only show 42.70 . you can change 2 to 0 if you wish to show 42 only.

Quantnet
04-04-2008, 12:23 AM
Anyone got any feedback from the author ?

rungok
04-04-2008, 07:20 PM
My ISP har disabled the fopen-function and says that I should rewrite the code to use curl instead. Can anyone help me with this modifications?

powerful_rogue
04-05-2008, 10:22 AM
Cant seem to get this to work with vb 3.7.0 RC1

Comes up witht he following error at the top of the page:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of togglealt(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /mnt/web3/33/26/51532726/htdocs/vbtest/vbtrade.php on line 323

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of togglealt(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /vbtest/vbtrade.php on line 326

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of togglealt(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /vbtest/vbtrade.php on line 329

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of togglealt(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in vbtest/vbtrade.php on line 332

Kalina
04-05-2008, 12:41 PM
It's not for version 3.7, it's 3.6.

Mys
04-05-2008, 04:54 PM
Anyone got any feedback from the author ?

I wish...:( I'm about to trash it since it does not work. Too bad, my members liked the stock market challenges we set up when it worked.

powerful_rogue
04-05-2008, 08:52 PM
It's not for version 3.7, it's 3.6.

I know, but if you dont try then you dont know.

Im simply posting to save anyone else with 3.7 the hassle of installing to see if it works.

ProAzn
04-06-2008, 07:28 PM
We disabled ours until a new updated file can be done. Says this hack is supported but the developer seems to have left. :(

joopster
04-07-2008, 01:20 PM
I have read through most of this thread, I have one stock SIRI which shows change updates etc. But any other stock I buy and put in the hack displays () under change and never updates. I set the cron to run once and hr.

I also updated the feed.

Any suggestions?

odeezie
04-07-2008, 08:03 PM
The first page says:

Official Support
This thread until Feb 1st
After Feb 1st: http://www.anothermessageboard.com/f...splay.php?f=35

However, it is not supported there either. Also it says that version 0.9.9 is available but when i downloaded the zip file, it shows up as 0.9.8. This is a cool hack and I wish I could implement it, but it doesnt look like support is going to happen. :(

ProAzn
04-13-2008, 03:58 AM
Appears this mod is done. No solution, developer is gone. Might as well uninstall it. :(

Gimmick
04-22-2008, 11:56 AM
This sucks, anyone know for a stock trader mod for 3.6.8 ?

odeezie
04-23-2008, 04:32 PM
Appears this mod is done. No solution, developer is gone. Might as well uninstall it. :(

Yes, I did. I will just keep my eye out for another. :D

FiMeTi
05-16-2008, 09:22 AM
So there is noone who finally made this work for vBB 3.7.0?

I´d love to install this onto vBB 3.7.0 and also would like to donate some cash for a working version.

PLEASE try to fixx this!!

BlitzSports
05-17-2008, 09:16 AM
Contacted the developer at his site and he just played games. We set up a time to fix my issues and when the time came he just ignored me, even after sending several pm's to him. Good thing about yahoo messenger is that you see when the user comes on/off and I always sent the pms when he 1st came online.

Anyways several days passed and he finally pm's me back telling me that he has more important things to do rather than some message board. So I tell him he should have never set up a time-line with me then and that was the end of it, well at least I thought.

I uninstalled his hack and then he had the nerve to come back a week later and pm me via yahoo saying: "Hey Numnuts... I have finished school so now I can look at the hack". He obviously likes to play head games and has problems with concentrating with his responsibilities he takes on.

Because of my experience with him I will NEVER install another one of his hacks again and I strongly warn everybody else with the "Buyer Beware" saying.

FiMeTi
05-19-2008, 08:50 PM
Hey guys .. check this post!

https://vborg.vbsupport.ru/showthread.php?t=179848


cheers

RedeemedWarrior
06-19-2008, 04:25 PM
I have it running on my testVB, thats a 3.7x, over the weekend i'm running a few tests then going live (main forum) with it, I can link to the demo then if anyone wishes

edit it works great with Vbcredits and 3.7x

dsav90
06-26-2008, 01:56 AM
I have it running on my testVB, thats a 3.7x, over the weekend i'm running a few tests then going live (main forum) with it, I can link to the demo then if anyone wishes

edit it works great with Vbcredits and 3.7x

Definatly!!!!

curse-1
08-08-2008, 08:47 PM
Is it possible these beautiful Hack, with this Hack HERE (https://vborg.vbsupport.ru/showthread.php?t=185318&highlight=news) to combine. If no, that could try someone? pls pls pls

nsusa
08-09-2008, 01:00 AM
Is it possible these beautiful Hack, with this Hack HERE (https://vborg.vbsupport.ru/showthread.php?t=185318&highlight=news) to combine. If no, that could try someone? pls pls pls

THis hack is definitely dead. I wonder why mods still leave it open?!

dt_truck11
08-11-2008, 06:55 PM
ya this mod is dead. i tried the fix that RedeemedWarrior sent me but it didnt work for me:(

RedeemedWarrior
09-02-2008, 06:18 AM
Was working right up till 3.7.3 for me, yet members grew bored of it, so its meeting the cull today

edytwinky
10-08-2008, 09:50 PM
Is there anything similar to this that is working?

merk_aus
11-17-2008, 11:01 AM
It really is a shame I was hoping for a change or two which on his website said was coming in a few days and then never heard off again.

If the changes had come through (such as allowing admins to create stock that could be traded instead of using yahoo stock trade) i was willing to pay for it, or make a sizeable donation - is there anything simular around that is actually working.

stickskills
11-17-2008, 11:28 PM
Oh wow, just heard about this mod.. sad to see no support for it. I'm guessing it doesn't work on 3.7.3?

merk_aus
11-18-2008, 05:59 AM
no but i am currently in talks with a coder who is willing to code it for a price so we are speaking to him about coding it and releasing it as a premium mod just like $10 to get it and support for it.

zethon
11-18-2008, 04:59 PM
no but i am currently in talks with a coder who is willing to code it for a price so we are speaking to him about coding it and releasing it as a premium mod just like $10 to get it and support for it.

You are? I would be the coder in question and this is the first I've heard of this.

Quantnet
11-18-2008, 05:17 PM
Welcome back zethon.
I hope you are back with some good news ;)

stickskills
11-18-2008, 10:28 PM
You are? I would be the coder in question and this is the first I've heard of this.

Really hoping to see some progress on this mod zethon, from what I've seen it's GREAT.

dt_truck11
11-19-2008, 08:32 PM
i am also hoping to see some progress

zethon
02-21-2009, 08:51 PM
Welcome back zethon.
I hope you are back with some good news ;)

I posted another hack this weekend and started looking into this hack. It works just fine on my board and the code uploaded here is the same code I'm running.

What is broken?

curse-1
02-22-2009, 01:22 PM
hey zethon,:):):):)

nice to see/read you here! Thanks a lot for your support. Im still waiting for your another hack.

I posted another hack this weekend and started looking into this hack. It works just fine on my board and the code uploaded here is the same code I'm running.

What is broken?

ArchangelX
03-04-2009, 04:57 PM
The error I'm getting is this...but for the most part, it seems to be working...it's just that some it doesn't like some stocks.

Warning: Division by zero in /vbtrade.php on line 114

dt_truck11
03-04-2009, 09:49 PM
this is what i get when i try to run vbtrade.php.

im running 3.8.1

see attached screenshot

zethon
03-05-2009, 12:41 AM
The error I'm getting is this...but for the most part, it seems to be working...it's just that some it doesn't like some stocks.

Warning: Division by zero in /vbtrade.php on line 114

In vbtrade.php search for:

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

And change the first line to:

if ($mktval != 0 && $gain!= 0)

ArchangelX
03-05-2009, 01:15 AM
zethon, I'm sorry, but that line doesn't exist in my copy of vBtrade...there are some similar versions but nothing exactly like that?

I downloaded the package here, and it's not in there either. Could you take another look at it?

ArchangelX
03-05-2009, 01:18 AM
The only thing I could find that resembles that line is this:

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

ArchangelX
03-19-2009, 10:18 PM
Any help here? *sigh*

vAsia
03-20-2009, 03:03 AM
I thought this MOD was dead. Please confirm.

ArchangelX
03-20-2009, 05:53 AM
Umm...he posted only a few weeks ago.

cvac01
04-01-2009, 05:54 AM
Will this work with Canadian Stocks that trade on the TSXV and TSX?

If so I am very interested in getting this setup on my new site.

I would also like a plugin or tweek that allows my members to search by canadian stock symbols, but with them being 3 letters and sometimes 2 it doesn't work well.

I added a list of popular symbols to the search options of the forum, but no luck.

Anyone have this problem? I am more interested in the Vbtrade working with Canadian Stocks.

Cheers,

cvac01

powerful_rogue
04-03-2009, 05:22 PM
Seems to be working great on 3.8.1! Reading back it looks like I tried this mod previously on 3.7 without any luck!

Anyway, great to have it working! What would be cool is a page that shows all stocks available and their ticker symbols. I like the idea of investing, but havent got any clue about their symbols!

cvac01
04-03-2009, 05:52 PM
Hi,

With your question regarding symbols.....For example the companies I would like to use with the Stock Trader are Canadian Stocks.

Their symbols depending on where you get your stock quote from are.

Example for Toronto Stock Exchange Venture = ABC.V
Example for Toronto Stock Exchange = ABC.T

US stocks are differnt symbols and I am hoping that this Mod works for Canadian Companies specially Mining Companies and I would be willing to help develop this mod (i.e. provide sources of information) with the coder.

Cheers,

cvac01

merk_aus
04-04-2009, 07:11 AM
no but i am currently in talks with a coder who is willing to code it for a price so we are speaking to him about coding it and releasing it as a premium mod just like $10 to get it and support for it.

You are? I would be the coder in question and this is the first I've heard of this.

Zethon incase you forgot it says in talks with A Coder not THE Coder so it has nothing to do with you, you are not the coder in question as you claim and that would be why you have heard nothing of this.

BucShot
04-14-2009, 03:22 AM
However , the " who's online " page shows " unknown location when someone is trading on my forum
This is a pretty simple fix. Edit functions_online.php (includes directory)
Find
case 'gallery':
$userinfo['action'] = $vbphrase['viewing_gallery'];
break;

Add below
case 'vbtrade':
$userinfo['action'] = $vbphrase['viewing_stock_trader'];
break;

Then find
case 'gallery.php':
$userinfo['activity'] = 'gallery';
break;

Add below
case 'vbtrade.php':
$userinfo['activity'] = 'vbtrade';
break;


Next go to your Phrase Manager and add a phrase.
Phrase Type: Who's Online
Product: vBulletin
Varname: viewing_stock_trader
Text: Viewing Stock Trader

Save it and your Who's Online should now show Viewing Stock Trader.

BirdOPrey5
05-07-2009, 05:58 PM
Installed and working on 3.8.0 but now not so much...

I installed this 2 days ago on my forum and tested it myself, it worked fine... I made a couple of modifications- I set the cron job to run twice per hour - and I turned the postbit stock portfolio info into a hyperlink that would display that user's portfolio if you clicked on it- working well.

Today is the 3rd day and now more members are using it and adding stocks to it... The stocktrader table in the database has almost 400 entries... but today things are acting screwy.

The cron job runs without any errors reported, the 'top portfolio' page opens without any errors- but there are also no portfolios listed... In the postbit eveyone's portfolio value is listed as $0.000 even though many have portfolios with real values, including myself.

When I click on my portfolio (or view another users) it seems to display fine/correctly- I can still buy/sell stocks and lookup symbols... it's just the calculation of portfolio value that isn't working right.

I ran the cron job manually several times but the abportfolio values and gains columbs in the user table are all listed as 0.000 and the gain is all -1 (100%) since the current value is zero.

I didn't make any changes to the code... it wasn't working this morning, then worked for an hour maybe? then went away again...

Any ideas?

BirdOPrey5
05-08-2009, 02:33 PM
I returned the cron job to the middle of the night... no help.

Checked the error logs, none have been recorded.

BirdOPrey5
05-09-2009, 12:55 PM
Well for whatever the reason it's just not working because there are too many stocks in the stocktrader table in the database... (currently at 412 entries)... when I delete them down to about 300 or less it runs fine... somwhere are 350 entries it just doesn't run at all (or at least it just doesn't do the correct calculations). I don't think it's a bad stock symbol or such because I visually checked the table, it all looks well, and it doesn't matter which stocks I delete, as long as I get that table below a certain size it will work.

I checked the php settings on max execution time and such, but I can't change the settings on my hosting plan at the moment- but in either case ~400 stocks shouldn't really time out I don't think.

I'm wondering if the cron job file can be edited to run a 100 to 200 operations at a time and repeat until its finished? I will look at it but honestly that is probably above my skill level.

How many stocks do the people that have this working have in their databases?

zethon
10-14-2009, 08:25 PM
I would be interested to have a copy your data. If you can supply me with that, I can take a look.

I've recently come back to this mod and am about to release a version 1.0. Support will be on a site I'm setting up. I just can't check this site all the time to keep track of the bugs.

I'm also going to move this project to the 3.8 modifications.

TJ3
11-17-2009, 12:34 AM
I would be interested to have a copy your data. If you can supply me with that, I can take a look.

I've recently come back to this mod and am about to release a version 1.0. Support will be on a site I'm setting up. I just can't check this site all the time to keep track of the bugs.

I'm also going to move this project to the 3.8 modifications.

Great to hear!

Looking forward to that :up:

vilhiem
05-06-2010, 04:25 AM
Does this work in vB4?

TheChaosFactor
05-15-2010, 01:46 PM
So has nobody tried this on VB4? This is an amazing mod that I would love to have. It'd be super sweet if somebody could make it work for 4.x. I know I'd be down to donate for it.

vilhiem
05-25-2010, 03:30 AM
Any word yet on whether this can be installed on vB4 ...?

Thanks!!!

BirdOPrey5
05-26-2010, 09:26 PM
I would be interested to have a copy your data. If you can supply me with that, I can take a look.

I've recently come back to this mod and am about to release a version 1.0. Support will be on a site I'm setting up. I just can't check this site all the time to keep track of the bugs.

I'm also going to move this project to the 3.8 modifications.

zethon,

Sorry, a few hours after I made my last post I was rushed to the Hospital and have been out of it for almost a year, going home finally tomorrow in fact. If you're ever back on and willing to check this out again please PM me i will get you whatever data you need- Basically members are still using it just without the listing of other portfolios... individual portfolios work fine. Now running 3.8.4 PL2.

BirdOPrey5
06-01-2010, 05:27 AM
Any help here? *sigh*

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

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


and replace with:

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.

vilhiem
06-01-2010, 11:23 AM
Any word yet on whether this can be installed on vB4 ...?

Thanks!!!

BirdOPrey5
06-01-2010, 01:11 PM
Why not just try to install it and see what happens? Obviously don't make a template edit until you know it works, but you can browse to it manually if the install doesn't give errors.... http://www.yourdomain.com/forums/vbtrade,php - It seems in every 3.8 mod there's a dozen people asking if it will work on 4, sometimes for months... yet no one ever seems to want to try... I doubt vB would successfully install it if it didn't work and even so that is what test forums are for.... then report back an be a hero.

vilhiem
06-04-2010, 08:58 PM
Why not just try to install it and see what happens? Obviously don't make a template edit until you know it works, but you can browse to it manually if the install doesn't give errors.... http://www.yourdomain.com/forums/vbtrade,php - It seems in every 3.8 mod there's a dozen people asking if it will work on 4, sometimes for months... yet no one ever seems to want to try... I doubt vB would successfully install it if it didn't work and even so that is what test forums are for.... then report back an be a hero.

Like many others here ... of course I tried installing it! I wouldn't ask if for a vB4 update if it didn't need it.

So to answer the question: NO ... it does not work in vB4
But would certainly like it to!

vilhiem
06-17-2010, 03:20 PM
Any word yet on this one ...? Is it being converted to vB4.03 ...?

merk_aus
07-25-2010, 08:14 AM
Any word yet on this one ...? Is it being converted to vB4.03 ...?

OMG dude - I am sure the coder of this will be racing in here to let you know when/if it is updated for vBulletin 4.

Posting every couple days isn't going to be doing anything.

Jhonnyf
12-10-2010, 12:02 PM
I want to Update this mod to vb4.x for my personal use, but it's the first time that i see and I don't know how exactly work

If someone can help me be the "tester" (preferent speak spanish), I can share the mod with him/her

DrackosNGU
10-01-2011, 07:01 PM
Reserved.

Zethon, can you give your 3.8 version of Stock Trader? The 3.6 version does not work.

acast
01-13-2012, 10:17 PM
Zethon, can you give your 3.8 version of Stock Trader? The 3.6 version does not work.

Do you get it working?

Anybody get working this on v4 ?

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

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


and replace with:

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