View Full Version : RSS Ticker AIticker V1.0
mpage
11-27-2006, 10:00 PM
This ticker is a java ticker that downloads RSS feed of your choice to your local domain, it downloads the RSS feed in the background (4 times a day),
The ticker displays the information between <title> and </title>
On clicking on the ticker information you are directed to a page on your forum which displays the description of each title.
Each one of these has a link pointing back to your site telling the user to talk about it at a location specified by you.
Demo: http://www.ai-stockmarketforum.com
update:
- applet is now set to low priority, so it doesn?t eat as much memory
- should now display any errors thrown
mpage
11-28-2006, 12:06 AM
Installation Instructions are added to the file "Installation Instructions.txt"
This is my fist add on, Ill be updating it so it works better, but you are welcome to use this version for now.
Not thoroughly tested (still in B stage) so let me know of any bugs and ill see what I can do.
This is a free version(9 steps to install), all I request is a link.
TheBlackPoet
11-28-2006, 12:27 AM
yessir!! im using this... i love vb.org!! this is the best hack site... thanks for this one..
mpage
11-28-2006, 01:52 AM
Just noticed some problems, have changed the zip file(changed instructions and file names).
Its hard for me to tell all of the steps to get this working since i have already programed it into my site, so its hard to test the steps.
Let me know of problems
VaaKo
11-28-2006, 05:17 AM
does this work on any vb version or just the 3.5.x?
Hornstar
11-28-2006, 06:18 AM
yeah I didnt see one for vb3.6.4 any one confirm this works with it?
mpage
11-28-2006, 08:57 AM
It should do but only tested in 3.5.x so far
TheBlackPoet
11-28-2006, 09:50 AM
I'm running 3.62 (or 3) i forget..... its working fine for my site... i had to tell IE7 to enable an addon.. the problem though..... is i put the rss feed link in.. but its still reading the original link...... the hack works great though..
mpage
11-28-2006, 10:11 AM
ok that’s because it checks the age of the local downloaded file before updating,(so it wont re-download new feed if this has only been recently downloaded) just delete the file TempRSSFeed.txt and it will update the next time you open the page (ill look into the EI7 add-on)
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.
Glad the Instructions weren't too confusing
Foxsake
11-28-2006, 05:29 PM
Great add on
But when i load up the page it either scrolls "dont delete this link....." or just a white box
I have taken the news feed from where you suggested but cant figure out what i'm doing wrong :confused:
Fantastic mod though, and what i've been looking for for ages
mpage
11-28-2006, 07:18 PM
make sure the following code is in the exact format (copy and paste from the installation Instructions):
</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.
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
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
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:
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:
<BODY onLoad="javascript:sndReq()" >
<script type="text/javascript" src="JSsource.js"></script>
and not just
<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:
www.ai-stockmarketforum.com/AIticker/aiTicker.class
www.ai-stockmarketforum.com/AIticker/aiTciker.jar
www.ai-stockmarketforum.com/AIticker/fetchRSS2.php
www.ai-stockmarketforum.com/AIticker/JSsource.js
www.ai-stockmarketforum.com/AIticker/meths.class
www.ai-stockmarketforum.com/AIticker/RssDisplayPhp.php
www.ai-stockmarketforum.com/AIticker/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:
if ( ((date('h') - date('h', filemtime("TempRSSFeed.txt")) ) > 6) ||
((date('d') - date('d', filemtime("TempRSSFeed.txt")) ) > 0) )
To:
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
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:
www.ai-stockmarketforum.com/AIticker/aiTicker.class
www.ai-stockmarketforum.com/AIticker/aiTciker.jar
www.ai-stockmarketforum.com/AIticker/fetchRSS2.php
www.ai-stockmarketforum.com/AIticker/JSsource.js
www.ai-stockmarketforum.com/AIticker/meths.class
www.ai-stockmarketforum.com/AIticker/RssDisplayPhp.php
www.ai-stockmarketforum.com/AIticker/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:
if ( ((date('h') - date('h', filemtime("TempRSSFeed.txt")) ) > 6) ||
((date('d') - date('d', filemtime("TempRSSFeed.txt")) ) > 0) )
To:
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
mpage
11-30-2006, 05:14 PM
Actually I would just take it off for now, im suspecting its something to do with the address, it might only work for forums with the address:
www.example.com
and not
www.example.com/forum
this is a pain, but i just tried it out within a test folder, and it didn’t work, not sure why this is yet, but i think the problem is my end within the program and the way the java program is handling file extensions.
.. still in b testing phase, didn’t foresee this problem, but will try to get it fixed
edit, actually it work in my folder so its not this problem:
http://www.ai-stockmarketforum.com/aiticker/test.html
- just starting a software job in a new location, so not sure how much time ill have, but if i get a few mins, im sure i can sort this out
- try my test example attached, (fist change it from test.txt to test.html) upload it to local (once again change the parameter Url) then got to www.yoursite/thingy/test.html (with all of the files also in local)
if it works then its something to do wth vbull, if it doesnt then its the setup
(let me know when/if you have tried this)
Ps Ill send you a non linking hard coded version for your time, once we got this sorted(also works a bit smoother and faster).
Foxsake
12-01-2006, 06:30 AM
Thanks mpage
I am happy to keep trying it, i knew this was in its beta stage, i will try it over the weekend and let you know the results.
Good luck with the new job by the way.:D
Thanks also for the non-linking version.
This will be an outstanding mod once all these niggles are ironed out, im looking forward to having it up and running on my forum. :)
As youv'e visited my webpage you can probably see im pretty new to all of this and have basically built the site up with no knowledge at the start, so dont pin your hopes on me finding too much, but im more than happy to help you in any way possible if i can, if nothing else it helps me understand just a tiny bit more also.;)
will let you know the results this weekend
Cheers and thanks very much again
BigJimTheLug
12-01-2006, 11:44 PM
Hello,
I ran into a problem with the Stock Market ticker, I did not ftp any files and have only uploaded them directly into the root folder.
This however, has caused me to experience some problems with the ticker bar, in that it does load properly.
Is this a normal occurrence when you don't ftp any files?
Any suggestions on how I can fix this problem?
TY.
This is a great modification, keep up the great work!
mpage
12-02-2006, 12:01 AM
have you tried the suggestions above yet?
There shouldnt be a problem, with non ftp, since the files (I assume) should still be in the same format.
Try the test file (with the tempRSSfeed downloaded) i would be intrested in the result of this.
- have also updated the zip, it might now tell you what the error is
jamiro
01-04-2007, 06:59 AM
installed it and it doesn't work.
I've tried everything you said in the posts above,for some reason it wont write the tempRSSfeed.txt.
It only worked when i uploaded the tempRssfeed you provided.
Any suggestions?
mpage
01-08-2007, 06:43 AM
ok thanks, you have pointed me in the direction of why it doesnt work for some ppl, I have to update the php code so it wrks with all php versions (think it only works with php 4 and below right now). Sorry for taking a while, have only just managed to get myself set up again in a new country/job/house etc. Will get this fixed this week! - and ill update the zip file, and put a link here to the new php file.
A quick fix for ppl using php5, edit the fetchRSS2.php file, and change the "file_put_contents_php4" to "file_put_contents", you can just delete the "file_put_contents_php4 function"
(sorry I made this for my host which is still usng php4, grr! when will they update!)
mpage
01-08-2007, 08:38 AM
new php file support php5 (will update zip file when i get time):
- note, I got this working on my server and tested it by
1. uploading the fetchRSS2.php file
2. Deleteing the tempRssseed.txt
3. refreshing my forum (didnt display any ticker info - as expected)
4. Clossing all the browser windows
5. Logging back into my Forum home page (little lag as it creates the local files)
- hey presto
- let me know if this still doesnt work with php 5?
- will soon update this java ap to be able to scroll back and forth
NuclioN
01-08-2007, 09:06 AM
stringindex outofbound exception -1 i get. ?
mpage
01-08-2007, 10:18 AM
1. Was you getting that before changing the php file
2. What else does it say on the page (does it suggest its a php error)?
3. What version of php does your server use?
Sounds like the TickerInfo.txt file isnt set up correctly, use the default version first
eg :
RSS = "http://p.moreover.com/cgi-local/page?c=Top%20finance%20stories&o=rss002"
since the php files uses:
$pos1 = strpos($strURL, "RSS = "); // "RSS = " needs to be present exactly
$strURL = substr($strURL, $pos1 +7); //on the 7 char, on start of that line, the rss feed adr needs to start
$pos1 = strpos($strURL, "\""); // finds the position of the last (")
$strURL = substr($strURL, 0, $pos1); // cuts out the relavant URL
I cant see where else an outofbounds error would occur
NuclioN
01-09-2007, 09:44 AM
php5. I think that many feeds are unussable with this ticker in their pure xml/rss form?
Karabaja
06-21-2007, 01:10 PM
It would be nice to have something like these pulling one or more chosen feed from this hack:
https://vborg.vbsupport.ru/showthread.php?t=108400
and linking to it's newsview page like
www.domain.com/newsview.php?do=1
Alfa1
07-15-2007, 12:54 PM
There's no ticker on http://www.ai-stockmarketforum.com/ anymore. Does this mod still work?
hi make it happend...
dont realy know what am i doing wrong.
i dont understand this line in the instructions:
"4. To custom_News copy and paste the text from "custom_News template.txt""
where sould i paste the text from that file?
btw when i press the custom_News new template i create (for viewing it) it shows a blank page. is it ok?
Thanks
hi
cant make it work
dont realy know what am i doing wrong.
i dont understand this line in the instructions:
"4. To custom_News copy and paste the text from "custom_News template.txt""where sould i paste the text from that file?
btw when i press the custom_News new template i create (for viewing it) it shows a blank page. is it ok?
Thanks
militarytuners
04-04-2009, 01:43 PM
Will this work for 3.7 or 3.8?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.