PDA

View Full Version : Add-On Releases - vbadvanced stock market


Lionel
01-16-2007, 10:00 PM
This addon requires zethon's stock trader (https://vborg.vbsupport.ru/showthread.php?t=135084)

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
here (http://www.haitiwebs.com/) 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.

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

$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
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 (http://www.haitiwebs.com/emagazine/)

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

Lionel
01-20-2007, 08:40 PM
If you read thru the thread you will see what to do with templates.
for identifier put stocktrader
to correct images look in templates

dholt
01-20-2007, 08:51 PM
[QUOTE=Quantnet.org;1161166]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.

Yes and there was never a how:confused:

Quantnet
01-20-2007, 08:57 PM
Yes and there was never a how:confused:
I posted that and here is how

Upload the images to images/misc/ folder instead of images/

in stocks.php file, look at the top lines where it said
$up = "/forums/images/up.gif";
$down = "/forums/images/down.gif";

change it to
$up = "/forums/images/misc/up.gif";
$down = "/forums/images/misc/down.gif";

change /forums/ to /forum/ if your url is forum

dholt
01-20-2007, 10:57 PM
thanks

buidoi
01-23-2007, 09:34 PM
i'm trying to get this but i'm still a noob...definitely don't get the instructions

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.

who can tell me step by step

buidoi
01-23-2007, 09:40 PM
what is vbadvance

Lionel
01-23-2007, 10:28 PM
go to admincp, Styles & Templates=>Style Manager=>Add new Template
Put the template name in the title box and the content of the template in the template box

Repeat for all 3 of them.

Use ftp to upload the files in the folder where your forum is install. Modules goes in modules

then go to admincp=>vbaCMS=>Add Module=>PHP file.
Give a name to module title.
Select the column where you want it to display
active yes,
update all pages up to you,
file to include: stocks.php
module parent: none
identifier: stocks.
Templates used : put the 3 remplates title separated by a comma.
clean file out put: no
use module shell: yes
Title row span: 3

Lionel
01-23-2007, 10:29 PM
what is vbadvance

you can forget about all instructions until you have http://www.vbadvanced.com installed.

Quantnet
01-27-2007, 11:20 PM
Lionel,

How about a vbadvanced block for top 10 portfolios ?

Lionel
01-28-2007, 12:17 AM
That should be very easy to do. But i am busy doing a video on demand and a song playlist hack (99% done)

Quantnet
02-04-2007, 08:22 AM
Lionel,
Do you know where to change the font color of the CMS block ? For example, the font "Market summary is in black. I want to change it to white.
Is it in the CSS of the style ? It's weird since the who online and Calendar have different color than the rest.

Thanks

Lionel
02-04-2007, 08:27 AM
almost all of them are black. I think it's because they are not linked. Enter the urll address in the module.

Quantnet
02-04-2007, 08:38 AM
Ah ha... you are right....how do I find the correct link to those modules in vbcms ? only online and calendar have proper links...the rests are just...any link ?

Quantnet
02-04-2007, 08:42 AM
Here is what Brian from VBA said
http://www.vbadvanced.com/forum/showthread.php?t=8525

I'm not exactly able to follow his suggestion.

Lionel
02-04-2007, 08:45 AM
you have 2 choices

1-add to your css, tcat or thead whichever it iscolor:#FFFFFF; this way all non links will also be white in there

2-Navigate to the page, e.g. http://www.site.com/forums/vbtrade.php to make sure it's the correct link, then you copy the address from your browser and go back to edit the module. In the Module Shell Template Options, if you are using it, then you put in the link in module link.

Go with the css solution also as sometimes you will not have link. But still link those you can.

Quantnet
02-04-2007, 08:48 AM
Thanks so much, Lionel. You are always there when I need help.

By the way, I found a way to create the application status system using condition and custom pages...very clever way to use vb underlying code.

What are you working on ? Anything we can benefit soon ?

Lionel
02-04-2007, 08:50 AM
check my homepage (http://www.haitiwebs.com/). Main homepage, Videos and Entertainment section :-)

Quantnet
02-04-2007, 08:58 AM
check my homepage (http://www.haitiwebs.com/). Main homepage, Videos and Entertainment section :-)
One word... WOW
Is this your fulltime job ;) ?

The entertainment section is way cool, music loads instantly....the songs kinda remind of my vacation in the Bahamas

Is the scrolling marquee a vb mod ?

Lionel
02-04-2007, 09:05 AM
The scrolling marquee is a vb mod.
I do this as a hobby. In entertainment section, members can go to downloads section and add as many songs they wish on their playlist, and then play them all.

Quantnet
02-04-2007, 09:09 AM
I like the Hot or Not pic section. The girls are really hot.... ;)

Can you point me to the vb mod you use for marquee?

I added your site to my fav to see what new tricks you coming up...hopefully i'll learn a few thing along the way.

Lionel
02-04-2007, 09:17 AM
I modified this one to suit my needs. The original one pulls only the latest sticky

https://vborg.vbsupport.ru/showthread.php?t=108031&highlight=latest+sticky

Quantnet
02-04-2007, 09:24 AM
thanks,
Ok, back to topic. I'm trying to put the SYMBOL LAST CHANGE under the td class=thead

As you can see from my home, it breaks into 3 different blocks. I'm playing with it and trying this in the mainstock module template

<tr><td class="thead"><span class="smallfont"><strong>SYMBOL</strong></span></td><td class="thead"><span class="smallfont"><strong>LAST</strong></span></td><td class="thead"><span class="smallfont"><strong>CHANGE</strong></span></td></tr>$thestocks
<if condition="$vbulletin->userinfo[userid] > '0'">

Lionel
02-04-2007, 09:29 AM
cool. You can do a lot with conditionals. There are plenty of them you can use.

Quantnet
02-16-2007, 05:06 AM
Lionel,

Can you take a look at the background color of the vba cmps block ? All of my styles, the stock block has different color than the background of other blocks....

I think in the template code, the color is set differently from the default vba block.
thanks

Lionel
02-16-2007, 05:19 AM
Give the <td> a class="alt1" or altt2

Quantnet
02-22-2007, 09:13 PM
Lol...was about to remind you, Lionel.

The vba module freaks out today because of the wrong feed....

Thanks for the quick update

JustinBr
03-02-2007, 06:04 AM
Great mod - *installed* @ www.roicommunity.com

A few questions:
Is it possible to remove the gridlines that appear?

I used to use a wordpress plugin that would pop up a mini stockchart of today's action when you hovered over the link. I'm almost certain yahoo provided the stock charts. Perhaps something like that could be integrated into a future version of the mod?

Keep up the great work Lionel!

Lionel
03-02-2007, 06:39 AM
The gridline is from the table cellspacing="1". Set it to zero.
you need to fix your images path.

JustinBr
03-02-2007, 01:39 PM
Thanks for the tip - It looks like the cellspacing is defined in the adv_portal_module_shell template. how do I adjust it to 0 here but no where else on my portal?

Lionel
03-02-2007, 02:09 PM
You would have to edit the adv_portal_module_shell template and set a conditional like

cellspacing="<if condition="$mods[name]=='the_name_of_module'">0<else />1</if>"
The name of the module is what you called it when you added it in Add Module.

I suggest you ask at www.vbadvanced.com (http://www.vbadvanced.com) for the the proper syntax (I am not sure if it's $mods[name])

Quantnet
03-03-2007, 09:41 PM
Someone brought to my attention that my Homepage loads very slowly. After i disable this vba block, the loading time vbMicrostat is 0.18 second compared to around 10-20 seconds before. Testing using Firefox.

Maybe you should take a look and see why ? Something with the yahoo feed ?

djchris
03-05-2007, 12:29 PM
Hi Lionel,

I've downloaded your updated_stocks.zip only to find a stocks.php.
Where are the codes and instructions to create the template files and module?

Please advise on this.

Lionel
03-05-2007, 12:54 PM
Hi Lionel,

I've downloaded your updated_stocks.zip only to find a stocks.php.
Where are the codes and instructions to create the template files and module?

Please advise on this.

I just uploaded again. I forgot to include them when I updated the zip, sorry about that.

djchris
03-05-2007, 01:41 PM
Hi Lionel,

Thanks for the quick response..I think you missed out the images too... :)

Lionel
03-05-2007, 01:43 PM
Hi Lionel,

Thanks for the quick response..I think you missed out the images too... :)

Gee, I am really out of it...

Uploaded.

Quantnet
03-05-2007, 08:39 PM
Are there any changes in this new updated ?

Lionel
03-06-2007, 03:16 AM
Are there any changes in this new updated ?
nope

anupam_luv
03-17-2010, 01:21 AM
is there any related mod for VB4? I run a stock market discussion forum.

vilhiem
05-25-2010, 03:28 AM
I would be interested in a version for vB4 as well. Also, do I need to have vBadvanced installed with this?

Thanks!!!