vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBa CMPS Stock Addon (https://vborg.vbsupport.ru/showthread.php?t=77044)

02-24-2005 10:00 PM

vBa CMPS Stock Addon
 
Compatibility: 3.0.x
Tested On: 3.0.3

What does the hack do?


This is an addon for vBadvanced CMPS, it uses AN-NET's stock hack to provide a module for your portal.

You must have vB Stocks already installed, this includes all required templates, files, and database changes.

Install Process
:

(1) New File
(2) New Templates
(1) New CMPS module

Install Time
: Quick, Less then 5 Minutes

Screen Shots Can Be Seen Below


Please click https://vborg.vbsupport.ru/ ;)

Updates:
Reduce one query, template error
Now the module's "change" color depends on whether it's a negative or postive change. Screen Shot's below

KW802 02-25-2005 10:10 PM

Ah, you got it working. Looks nice.

interfx 02-25-2005 10:19 PM

Awesome, works great...

Guest190829 02-26-2005 03:54 AM

Found a bug that adds an additional query. For those who installed this hack please add

stocks_dropdown

into the templates used section of the module. I edited the zip file too. Sorry about that.

interfx 02-28-2005 09:49 PM

I'm getting a connection refused error on line 15 of stocksmanager.php... Bringin my site to a "crawl"...

Anyone else have this issue? I posed this on VBStocks, but not sure where this coming from... I installed this add on for VB CMPS, maybe I'm pullign to much from Yahoo???

Anyone seen this?

It still works fine on the stocks.php page, but when I add module onto home page, it says connection refused...

Guest190829 03-01-2005 02:12 AM

That's odd, it's working for me. If the actual stocks hack works, so should the addon since there both doing the same exact thing...have you narrowed it down to this addon or are there others that can be causing this?

Also, the stocksmanager.php is part of AN-net's stock hack, so I think he'll be able to fix it for you.

Guest190829 03-13-2005 05:49 PM

I updated the addon so the font-color of the "change" is green if the change is postive and it's red if the change is negative.

For those who have this installed change adv_portal_stocksbits

to this

HTML Code:

<tr>
<td class="alt1" nowrap="nowrap"><a href="http://finance.yahoo.com/q?s=$quote[sym]" id="stock$quote[sym]">$quote[sym]</a>$dropdown</td>
<td class="alt2" nowrap="nowrap" align="center">$quote[lasttrade]</td>
<td class="alt1" nowrap="nowrap" align="center">$quote[open]</td>
<if condition="$quote[change]< 0"><td class="alt2" nowrap="nowrap" align="center" style="color:red">$quote[change]</td><else /><td class="alt2" nowrap="nowrap" align="center" style="color:green">$quote[change]</td></if>
<td class="alt1" nowrap="nowrap" align="center">$quote[day_lowrange] - $quote[day_highrange]</td>
<td class="alt2" nowrap="nowrap" align="center">$quote[volume]</td>
<td class="alt1" nowrap="nowrap" align="center">$quote[update_date] - $quote[update_time]</td>
</tr>

and for those who want to install it, I updated the zip so it will work.

-Danny.

YLP1 03-29-2005 02:02 PM

Hi everyone... I am running ver 3.0.7 and when I activate this mod this is the error I am getting:

Quote:

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT stockname FROM vb3_stocks WHERE active=1
mysql error: Table 'ylpforums.vb3_stocks' doesn't exist

mysql error number: 1146
I am fairly new to VB and PHP so any guidance on how to fix this is greatly appreciated.

Guest190829 04-01-2005 02:24 AM

You need AN-NET's Stock Hack for this to work, it seems from the error you didnt run the query needed in his hack.

Here's a link to AN-net's hack, here

SRuvbnhad 04-07-2005 08:39 PM

Is there any reason that this should interfere with a RSS Newsfeed module? After I installed the two stock hacks it basically shut down the news feed. When I disabled the stock module it works perfectly again.


All times are GMT. The time now is 10:04 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.01120 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_html_printable
  • (1)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
  • (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