![]() |
How did they do this ticker!?
<a href="http://www.tivocommunity.com/tivo-vb/ticker/ticker_new_js.htm" target="_blank">http://www.tivocommunity.com/tivo-vb...ker_new_js.htm</a>
I can't find the hack! I've searched for about 1/2 hour. Does anyone know what hack it is (note that is JavaSript, hence not the marquee hack)? Thank you. d. |
They probably wrote a PHP page that simply grabs the latest threads, and the JS they wrote themselves to scroll it.
However they did it, THAT IS THE COOLEST THING EVER for a main page :D |
That would be such a great forum hack!
|
Actualy, they have it as a pop-up ticker that looks even cooler. Can be seen in http://www.tivocommunity.com/tivo-vb on "Open TiVo Forum Ticker". Maybe somebody should contact their webmastah and convince him/her to post the hack...
d. |
There is a hack like this. See here. All you would need to do is just customize the page to look however you wanted.
Should be fairly simple. Chris |
Quote:
|
wluke's hack uses marquee and it meant for windows toolbars. Please read this thread again. As far as not asking for the hack, I personaly feel flatered when people ask for my code...
d. |
Wluke's hack may have been designed for toolbars, but can be used in a popup window.
Chris |
but his hack doesn't hvae the neat features like play, etc and does it show the thread name? I thought that showed news headlines that faded (perhaps I am thinking of a different hack)
|
wluke's hack isn't really wluke's :)
|
This is simple, it is not a javascript. Its Marque which you said you didn't want but it grabs the forums the same way that VBPortals does. :-P
|
Code:
<script language="javascript" src="http://www.tivocommunity.com/tivo-vb/ticker/ticker.js"></script> d. |
I swear I thought I saw this made.... maybe not
anyone gonna make it?? |
Quote:
|
Quote:
|
Hi All...I run AVS Forum and TiVo Community.
The Ticker was custom made for our sites because some other ticker that was posted that I had seen a while back had some issues and caused load issues on the database server. Not to mention it had some small issues. You see, with the users that we have...say 1000 people were running the ticker that hit the database every 3 mins....Well you can see the major issue that it would cause. (Yes, we could easily have that many if not more using it.) The issue was, people really liked it so we needed to come up with something. We thus worked on a PHP script that runs as a cron job every 5 mins. This script does the lookup for the 25 most recent posts and puts them to a text file. Thus every 5 min this text file is replaced. We then made the HTML page that runs a java script that reads this data. Thus we have ONE database lookup every 5 mins and all the page reloads just hit the text file which is nothing for the server to send down. We are also developing an installed EXE file that does the same read. The reason we are doing that is because we want something that will stay on-top on a desktop and a browser window does not do that. We hope to have this done my months end. The other issue with the coding in the PHP database call is that we needed to hard code out forums we did not want shown. Thus is not just something you can plug in. I give all the credit to one of my mods who did the development on this. We worked back an fourth on it and finely got it like you see it. I will see what we can do maybe about posting it. BUT...You will need to go though it and make all the changes needed for YOUR site. On a large site, this is really the only way this will work without killing the database. Remember, you will need to make a number of mods for it to work including setting up a cron job. |
If you share it, I'd be glad to document the steps to put it up and have it running properly. By far your solution is the best I've seen on the ticker arena.
Gotta love that TiVo community! d. |
Thats great, I hope we can entice you to post it! *goes to think of something enticing*
|
Hi I'm Dan, and I'm the moderator who actually wrote this code.
I don't mind sharing with others, but as of right now it's pretty well hard coded into our site. So what I'm going to do is move some of the hard coded stuff into variables, so that it's easier for others to use, then either me or David will post it here. Dan |
Yes! Thank you both!
:) d. |
well sounds great bud:)
make sure, are someone here tell us how to make it in a jacascript little popupwindow:) |
1 Attachment(s)
OK here are the files. I had to make a couple of changes to the PHP file which I did not test, so please let me know via e-mail if you come across any errors.
Dan P.S. Don't laugh at my PHP code! Until I wrote this I had never written a single line of PHP or SQL code. :) |
Oh yeah, to open the ticker paste the following code into your document template...
Code:
<script language="javascript"> <a href="#" onClick="openTicker()">Open Ticker</a> Dan |
Hey thanks buddy,
hey what do I ezactly put in for the Cron job?? |
Quote:
Dan |
Seeing that servers come in differnt flavors, please see your system admin or hosting provider in regards to run a cron job every 5 mins or whatever. (Don'y say you were not warned. :))
|
what do you mean.... I mean is it really that different......I run a lynx system..you can't give me the code I would put in??
|
Well...This is how ours looks in cron...
Code:
*/5 * * * * /usr/bin/php -c /etc/php.ini.nocache /home/tivo-vb/ticker_new_js.php >/dev/null 2>&1 |
1 Attachment(s)
This is what my cron job looks like, how would I configure this to work with the ticker?
|
Again, I am sorry, but can not off any help in this area. Please contact your ISP.
|
I am not that good at Cron jobs:(
Since for some reason you can't help us, can you tell me ezactly what I should ask my host Thanks |
Psychdrone, he can't help you because almost every host handles cron jobs differently. All you need to do is ask you host to help you setup a cron job that accesses as webpage.
Thanks for the hack David. I plan on releasing this sometime this weekend. |
i will make a hack that it will be alot easier to set.. with the same results.. it should take me about 20min to make it with some extra funky options.. ;) will do this as soon as i get home.
|
Quote:
|
<a href="http://www.dynamicdrive.com" target="_blank">www.dynamicdrive.com</a> has tickers of all sorts marque style & JavaScript.
|
thand cditty
but I guess I will wait for Natkids now |
I recently made a simiar hack using the marquee tag and calling directly to the database:
https://vborg.vbsupport.ru/showthrea...hlight=marquee There are pros and cons of both versions, and I'm not going to say mine is better or anything. jsut thought I'd point it out. :D |
vbHome (lite) released. all you have to do is insert a java code into the latest threads. no need for cron jobs.
|
I was able to duplicate this ticker. Well... I did borrow some of the code. It is configurable enough to be plugable. I'm not sure if I can release it or not, since I borrowed some code and images. It has been modified to query the database directly, and not to use a cron generated data file (ok for small sites). So, if the good folks at the TiVo vB allow me, I'll give it away (with full credits to them). I'll post a demo url in a little while. I'm still sorting out minor details.
d. |
Good to go...Just not the TiVo Logo please. :)
|
All times are GMT. The time now is 05:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|