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 - vbadvanced stock market (https://vborg.vbsupport.ru/showthread.php?t=136734)

Lionel 01-16-2007 10:00 PM

vbadvanced stock market
 
This addon requires zethon's stock trader

Create the 3 included templates, name of the file is name of template. Replace the hardcoded links /forums/ with yours. Upload the modules folder and the images folder in your forum root. Create the vbadvanced module as you normally would.

Quantnet 01-17-2007 04:43 AM

super. Thanks.
click installed

Update I think you should put the images under images/misc/
Anyway, i put it there and change the stocks.php accordingly.

Questions: When i create vbadvanced template, which vba_portal_ template i need to include

Lionel 01-17-2007 05:15 AM

you mean vbavanced module? you need to include all 3 of them, and select the stocks.php
yeah, you are right about those images.

Lionel 01-17-2007 05:36 AM

About your other question, you need to put "3" in the colspan value of the module. I see they are getting populated now.

Quantnet 01-17-2007 05:39 AM

Got it. However, in IE7 when expanded, the size of the module is a bit off, when minimize, it's ok, can you check a look. The link is in my sig

Lionel 01-17-2007 05:41 AM

You need to either adjust the left column width in vbadvanced settings or move it to the right. The long numbers will not wrap

Lionel 01-17-2007 05:42 AM

You could also try using smallfont for the headings

Lionel 01-17-2007 05:45 AM

cool, looks good now

Quantnet 01-17-2007 05:46 AM

Nice and dandy now. I change the left column width from pixel to percentage and it is much better now.

Only IE has this problem, Firefox does not. Can you check in IE6 and see if all is fine ?

Thanks so much. This is exactly what I need

Lionel 01-17-2007 05:47 AM

It's all fine with IE6. You might want to change the font for the headings. Mine are set to smallfont

Lionel 01-17-2007 05:52 AM

<a href="http://www.haitiwebs.com/" target="_blank">here</a> is how mine show in smallfont

Quantnet 01-17-2007 05:53 AM

Quote:

Originally Posted by Lionel (Post 1161196)
here is how mine show in smallfont

Can you please show me where to edit to get smallfont ? Thanks

Lionel 01-17-2007 05:56 AM

in template adv_portal_stockmain enclose <span class="smallfont">...</span> around the strong tags.

Quote:

<tr><td><strong>SYMBOL</strong></td><td><strong>LAST</strong></td><td><strong>CHANGE</strong></td></tr>

Quantnet 01-17-2007 05:57 AM

I have these errors.

Uncached templates: adv_portal_stockmain (1)
Uncached templates: adv_portal_stocks (4)
Uncached templates: adv_portal_stocksymbols (2)

I think i did not do this properly. I created 3 templates in VBA CMPS each with the content of your txt file. Then I create a PHP code module in VBA CMPS that includes those 3 templates.

What i did is set the 3 templates to inactive, only the php code module is active. If i set the 3 templates to active, i don't have the uncached errors but the templates will show.

What did i miss ?

Lionel 01-17-2007 05:59 AM

No. You need to create only one module with the php and in templates used you put

adv_portal_stockmain,adv_portal_stocks,adv_portal_ stocksymbols

Quantnet 01-17-2007 06:07 AM

fixed smallfont, fixed uncached template. I should have added the template via Style manager instead of VBA CMPS.

A small suggestion: maybe you can add a little space between the up/down arrows and the -/+ numbers...the - and 0.00 are very close

Lionel 01-17-2007 06:09 AM

so are you ok now? I see that you got rid of the excess template.

Lionel 01-17-2007 06:12 AM

Quote:

Originally Posted by Quantnet.org (Post 1161208)
A small suggestion: maybe you can add a little space between the up/down arrows and the -/+ numbers...the - and 0.00 are very close

you could add a non breaking space if you wish. I did not so I save space.

Quote:

$image = "<img src='$up'>& nbsp;";
for the down too.

Quantnet 01-17-2007 06:19 AM

I have your mod working as it should now. Thanks for all the help, Lionel. I appreciate it very much.

I didn't know you run the Haiti site...it's a huge site. I visited it couple of time before when I still had joomla and phpbb on my site. It's too much work to get joomla bridge to work so i moved my site to vb.

Look forward to learning from you.

Lionel 01-17-2007 06:21 AM

Quote:

Originally Posted by Quantnet.org (Post 1161218)
I have your mod working as it should now. Thanks for all the help, Lionel. I appreciate it very much.

I didn't know you run the Haiti site...it's a huge site. I visited it couple of time before when I still had joomla and phpbb on my site. It's too much work to get joomla bridge to work so i moved my site to vb.

Look forward to learning from you.

I have joomla and vb perfectly integrated 100%, same users, same sessions, 100% the same

here

Quantnet 01-17-2007 06:33 AM

Yes, I know about the emagazine section. in fact, i was pointed there from joomla.org site as an example of joomla brigde. I guess I didn't have much time to take on such a project.

Is it joomla 1.0.12 or 1.5 ? And the theme is custom one ?

Lionel 01-17-2007 06:38 AM

I did the theme myself, but for magazine section I use a joomla plugin which also has many different displays. So every issue the magazine has a different look (just one click to select css and layout)

I never updated 1.011. I am running 1.11 and 3.60 vb. Time has come to change server. I am getting killed with hits. Site has always been busy, but those past two months it's like everyone discovered me again. And those people from Europe comes at night with the time difference. We get tons of hits from France.

The integration is as easy as uploading a product, and overwrite a couple joomla files.

Quantnet 01-17-2007 03:21 PM

Lionel,
any chance you can make a top 10 portfolio vba module ?
Thanks

Lionel 01-17-2007 03:25 PM

based on what criteria? Value, amount of shares, gain? The way zethon has it is great. It allows you to select criteria and it also paginates after 20 (u can change that)

Quantnet 01-17-2007 04:35 PM

I think what i really meant is to display the top 10 portfolio by gain on Forum Home. I have the Cyb-advanced stat mod https://vborg.vbsupport.ru/showthread.php?t=122986 where i have top 10 posters, top 10 thanked, latest 10 threads, etc...it would be perfect if somehow i can put top 10 performers there

Maybe you can show me where in zethon's code i can extract to get the top 10 out.

NFLfbJunkie 01-19-2007 07:21 PM

Would it be possible to have done where a user can see a daily history of the stocks they own to see trends with the stock's performance. I guess you could get this information on the web, but it would be cool to have it display on the portfolio page.

Lionel 01-19-2007 07:23 PM

It's possible to do charting using yahoo. I have done some. I simply did not integrate it with vb.

NFLfbJunkie 01-19-2007 07:26 PM

I said in an earlier post that I have this MOD installed and it's working perfectly, but after adding the code to put the link on the navbar, I do not get anything.

Lionel 01-19-2007 07:28 PM

You need to look for support on the mod's thread. My mod (which you have not installed) has nothing to do with navbar

TheFocusElf 01-19-2007 09:20 PM

Lionel, I am having some issues with this Module as well. I see you are a very helpful chap and would like to see if you would take a look:

http://www.wscotthinds.com/

I should also mention that for compliance reasons users are not going to be permitted to register on my site. Clients, perhaps in the future MIGHT be allowed to have accounts that I create for correspondence purposes. I want this module to simply display the stocks to an unregistered user (and myself, the admin of course) with little interference.

It appears now to display in FIREFOX perfectly wether or not I am logged in, and the TITLE section seems to be parsed in the IE version only now... wierd!

Lionel 01-19-2007 09:24 PM

ok, in the vbadvanced module you need to set colspan to "3"

as far as images, looks like your main forums are at site root. So you need to adjust that in your templates by removing /forums

Quantnet 01-19-2007 09:25 PM

reserved

TheFocusElf 01-19-2007 10:11 PM

Quote:

Originally Posted by Lionel (Post 1163052)
ok, in the vbadvanced module you need to set colspan to "3"

as far as images, looks like your main forums are at site root. So you need to adjust that in your templates by removing /forums

That bit fixed the situation and yes the images were coded correctly initially, but the correct corresponding edited file was not uploaded to overwrite the default one. Even placed the images in the <misc> directory.

So many thanks are owed to you my friend for this modification. As a new financial rep I am trying to develop ways to market myself and add interactivity.

TTG 01-19-2007 11:10 PM

Nice addition .. thanks Lionel
Clicked install

Martyh 01-20-2007 03:26 AM

Hi,

Could someone tell me or point me to some instructions that tell me how to create templates and an advancedvb module,

Thanks in advance,

sorry I'm new to this.

Lionel 01-20-2007 03:45 AM

just create the templates Styles and Templates/Style Manager/Add New Templates

Lionel 01-20-2007 03:52 AM

Do you have vbadvanced installed?

Martyh 01-20-2007 11:15 AM

No, not if it didn't come with Vbulletin 3.6.4.

Lionel 01-20-2007 12:59 PM

then this is not for you until you do. You can get download and instructions over at
www.vbadvanced.com

dholt 01-20-2007 08:23 PM

Ok I'm a noob I created the 3 templates.

Not sure as far as the Identifier and Templates Used/what to put in there. do I put the 3 template used and what do I use for Identifier is Question 1

Also what line of code do I change in the php file to add the images to the misc directory is Question 2.

Thanks in Advanced


All times are GMT. The time now is 07:48 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.01524 seconds
  • Memory Usage 1,809KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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