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)

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

Quote:

Originally Posted by merk_aus (Post 1667930)
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

Quote:

Originally Posted by zethon (Post 1668176)
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

Quote:

Originally Posted by Quantnet.org (Post 1668189)
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.

Quote:

Originally Posted by zethon (Post 1750977)
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

Quote:

Originally Posted by ArchangelX (Post 1760324)
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:

PHP Code:

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

And change the first line to:

PHP Code:

            if ($mktval != && $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:

PHP Code:

$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

Quote:

Originally Posted by merk_aus (Post 1667930)
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.

Quote:

Originally Posted by zethon (Post 1668176)
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

Quote:

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

case 'gallery':
                        $userinfo['action'] = $vbphrase['viewing_gallery'];
                        break;

Add below
Code:

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

Then find
Code:

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

Add below
Code:

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

Quote:

Originally Posted by zethon (Post 1899941)
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

Quote:

Originally Posted by zethon (Post 1899941)
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

Quote:

Originally Posted by ArchangelX (Post 1772223)
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
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.

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

Quote:

Originally Posted by BirdOPrey5 (Post 2046504)
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

Quote:

Originally Posted by vilhiem (Post 2055061)
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

Quote:

Originally Posted by zethon (Post 1147258)
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

Quote:

Originally Posted by DrackosNGU (Post 2252063)
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 ?


All times are GMT. The time now is 04:26 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.01673 seconds
  • Memory Usage 1,848KB
  • 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_code_printable
  • (5)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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