vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   RSS Ticker AIticker V1.0 (https://vborg.vbsupport.ru/showthread.php?t=132663)

mpage 11-28-2006 07:18 PM

make sure the following code is in the exact format (copy and paste from the installation Instructions):

Quote:

</applet></td>
<td width=70 class='vbmenu_control' style='font-size:11px'><center><a
href='http://www.ai-stockmarketforum.com'>AI Investing</a></center></td></tr></table>
<!-- ai stock ticker end-->
after you have done this you need to open the page up twice (the first run will download the feed, the 2nd run will display it) after this the applet will automaticaly update



Is the file tempRSSFeed.txt found in your local files, if so open it up, if it is empty I suspect this is the problem. This means you may have run the first install without the TickerInfo.txt set to an invalid RSS feed (one that will not allow you to download the feed).

To solve this, make sure TickerInfo.txt is filled out (use the example:
RSS = "http://p.moreover.com/cgi-local/page?c=Top%20finance%20stories&o=rss002"
you can change this later)

and once again just delete the tempRSSFeed.txt, this should solve the problem

(if there is no tempRSSFeed.txt found in your local files see my post below)

If this doenst work PM me your sites details so I can see where the problem is.

- the big white box is an issue that I am currently dealing with, it sticks around for a few seconds and doesnt need to.
Quote:

Ill be updating this applet, It could run allot better (that white background could be avoided), so I will work on this when I have time.

mpage 11-28-2006 08:48 PM

ok ive found a possible problem with fresh installs of this version, let me fix it and Ill put a working version up

kofoid 11-28-2006 09:30 PM

where's the install txt? :)

mpage 11-28-2006 10:05 PM

Ok I have uploaded, and tested the new zip version above, and it worked

1.For fresh installs the first time you run this it will look like it hasnt worked (since the downloading of the RSS feed occurs after the page has loaded), so the applet will not run

after you have opened it the first time wait a few seconds, then close all of the windows (all!).

2. Then open a new window, goto your forum and it should be working now. (if you have followed the installation instructions)

If you change the RSS = "http://p.moreover.com/cgi-local/page?c=Top%20finance%20stories&o=rss002"

To an RSS feed of your choice, if you want to see the change immediately, delete the file tempRSSFeed.txt if it is available in your local dir.

Then once again like it was a fresh install go to step 1. Above and then step 2.

if you have found there is no tempRSSFeed.txt file in you local dir, this could be due to 3 reasons
1. The RSS feed was not available to download, try the RSS feed given as default to see if this was the case
2. In your FORUMHOME Template you have forgotten to replace <body> with:
<BODY onLoad="javascript:sndReq()" >
<script type="text/javascript" src="JSsource.js"></script>
-Please make sure you follow the instructions
3 You have not yet visited the FORUMHOME page to allow the 1st download to occur, or have not uploaded all of the files

Foxsake 11-29-2006 07:01 AM

Quote:

Originally Posted by mpage (Post 1127495)
make sure the following code is in the exact format (copy and paste from the installation Instructions):



after you have done this you need to open the page up twice (the first run will download the feed, the 2nd run will display it) after this the applet will automaticaly update



Is the file tempRSSFeed.txt found in your local files, if so open it up, if it is empty I suspect this is the problem. This means you may have run the first install without the TickerInfo.txt set to an invalid RSS feed (one that will not allow you to download the feed).

To solve this, make sure TickerInfo.txt is filled out (use the example:
RSS = "http://p.moreover.com/cgi-local/page?c=Top%20finance%20stories&o=rss002"
you can change this later)

and once again just delete the tempRSSFeed.txt, this should solve the problem

(if there is no tempRSSFeed.txt found in your local files see my post below)

If this doenst work PM me your sites details so I can see where the problem is.

- the big white box is an issue that I am currently dealing with, it sticks around for a few seconds and doesnt need to.

Thanks for your quick response on this, i will try it this evening.
Hopefully all will go to plan.
One question from a newbie though - I dont understand where to find the local file tempRSSFeed.txt?
I cant find anything called that or anything called local files, but hey i am probably looking in the completley wrong place :confused: Sorry

Cheers mpage

Rob

Foxsake 11-29-2006 06:17 PM

tried everything again with the new zip - and it say applet loaded but nothing scrolls with the rss link you suggest or any other ive tried?

Now im really confused :confused:

mpage 11-29-2006 08:05 PM

Quote:

Originally Posted by Foxsake (Post 1128208)
Thanks for your quick response on this, i will try it this evening.
Hopefully all will go to plan.
One question from a newbie though - I don’t understand where to find the local file tempRSSFeed.txt?
I cant find anything called that or anything called local files, but hey i am probably looking in the completely wrong place Sorry

Cheers mpage

Rob

The local is the same place your vbulletin files are stored and should be the same place the jar file is stored.

If the file tempRSSFeed.txt? isn’t present but you uploaded all of the php files and the jscript file (all of which have been tested), and you are using the default settings (which has been tested)

This leaves only one source of error:
Quote:

Originally Posted by Mpage (Post 1128208)
2. In your FORUMHOME Template you have forgotten to replace <body> with:
<BODY onLoad="javascript:sndReq()" >
<script type="text/javascript" src="JSsource.js"></script>
-Please make sure you follow the instructions

To see if this is the case, go to your fourmhome page right click>view source> search for the term "</head>", under this you will see the code for the body it should display:
PHP Code:

<BODY onLoad="javascript:sndReq()" >
<
script type="text/javascript" src="JSsource.js"></script

and not just
PHP Code:

<BODY

If it displays just "<body>" you have not yet edited you forumhome template

To edit the forum home template: Styles & templates>Style Manager> <<>> > Forum Home Templates

Then search for <body> and change appropriately

I suspect the problem that you might have found is that you only did this for one style, and not the main style that ppl will use, so do this for each style to be sure.

---------------------------------------------------------------------------------------------

One other possibility is that you have not enable javascripts in your browser, this isn’t a problem since the applet still works without javascript enabled, but the rss feed requires JavaScript for it to be updated. Once again this isnt a problem, since if at least one user comes to your forum per day with JS enabled the applet will be updated every day (most ppl do not have JS disabled since all of the Ajax sites would fail to work).

To test it with the tempRSSFeed.txt I have added the file to this post, upload this to where you have stored your forum files:

mpage 11-29-2006 08:53 PM

Foxsake, i have just checked the site, the minimum the link can be is "AI Investing"(I assume you have tried this and it still doesnt work?), I am once again updating the zip since it is set to a quite high priority, and doesn’t need to be.

- also try changing the P to a small p in your param url value

Ill keep looking and see if I can find anything else that it might be (try adding the file above so we can eliminate possibilities)

I just looked at the TickerInfo.txt on your site and it looks a bit odd, try deleting it all and adding
RSS = "http://p.moreover.com/cgi-local/page?c=Top%20finance%20stories&o=rss002"
only
the [] shouldnt be present which means it may have saved in a different format after downloading (which the applet will treat differently)

mpage 11-29-2006 10:42 PM

even the php files have the [] (this is replacing the retuns and tabs), the format you are saving them seems to be strange

How are you extracting them (I have download these and used winzip, and they dont do this for me)

I have now updated the zip file with no compression to see if this helps you (oddly it didnt do the same thing for TheBlackPoet or me)


If all else fails try directy downloading the files from here:

http://www.ai-stockmarketforum.com/A...aiTicker.class
http://www.ai-stockmarketforum.com/A...r/aiTciker.jar
http://www.ai-stockmarketforum.com/A.../fetchRSS2.php
www.ai-stockmarketforum.com/AIticker/JSsource.js
www.ai-stockmarketforum.com/AIticker/meths.class
http://www.ai-stockmarketforum.com/A...DisplayPhp.php
http://www.ai-stockmarketforum.com/A...TickerInfo.txt

open up the TickerInfo.txt, does it still have the [] where there should be a return (new line).
If not upload these and that should solve it, no idea why your files were being extracted in the format they were.

If you want to change the setup so it updates every couple of hours look at the fetchRSS2.php

change the following code:
PHP Code:

if ( ((date('h') - date('h'filemtime("TempRSSFeed.txt")) ) > 6) || 
((
date('d') - date('d'filemtime("TempRSSFeed.txt")) ) > 0) ) 

To:

PHP Code:

if ( ((date('h') - date('h'filemtime("TempRSSFeed.txt")) ) > 1) ||
 ((
date('d') - date('d'filemtime("TempRSSFeed.txt")) ) > 0) ) 

Good luck

Ill change the jar when i get time so you only need to link to the term AI (less space)

Foxsake 11-30-2006 03:33 PM

Quote:

Originally Posted by mpage (Post 1128359)
even the php files have the [] (this is replacing the retuns and tabs), the format you are saving them seems to be strange

How are you extracting them (I have download these and used winzip, and they dont do this for me)

I have now updated the zip file with no compression to see if this helps you (oddly it didnt do the same thing for TheBlackPoet or me)


If all else fails try directy downloading the files from here:

http://www.ai-stockmarketforum.com/A...aiTicker.class
http://www.ai-stockmarketforum.com/A...r/aiTciker.jar
http://www.ai-stockmarketforum.com/A.../fetchRSS2.php
www.ai-stockmarketforum.com/AIticker/JSsource.js
www.ai-stockmarketforum.com/AIticker/meths.class
http://www.ai-stockmarketforum.com/A...DisplayPhp.php
http://www.ai-stockmarketforum.com/A...TickerInfo.txt

open up the TickerInfo.txt, does it still have the [] where there should be a return (new line).
If not upload these and that should solve it, no idea why your files were being extracted in the format they were.

If you want to change the setup so it updates every couple of hours look at the fetchRSS2.php

change the following code:
PHP Code:

if ( ((date('h') - date('h'filemtime("TempRSSFeed.txt")) ) > 6) || 
((
date('d') - date('d'filemtime("TempRSSFeed.txt")) ) > 0) ) 

To:

PHP Code:

if ( ((date('h') - date('h'filemtime("TempRSSFeed.txt")) ) > 1) ||
 ((
date('d') - date('d'filemtime("TempRSSFeed.txt")) ) > 0) ) 

Good luck

Ill change the jar when i get time so you only need to link to the term AI (less space)

mpage, I really appreciate all your help in this and sorry its being a pain.
I have checked all the files you mentioned and i cannot see any [] in my files this end?
I also used winzip to unzip the files
Changed the P to p as suggested and also added the temp file but alas no change?
all i get is applet loaded at the bottom and no scrolling
I will keep looking and see if i can find anything obvious to me, but i dont hold out much hope as im not a coder in anyway.

Thanks for all your help again


All times are GMT. The time now is 02:49 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.01253 seconds
  • Memory Usage 1,805KB
  • 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_php_printable
  • (6)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
  • (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