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


All times are GMT. The time now is 05:49 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.01413 seconds
  • Memory Usage 1,746KB
  • 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
  • (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