vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How did they do this ticker!? (https://vborg.vbsupport.ru/showthread.php?t=36427)

dengel 03-22-2002 06:03 PM

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.

filburt1 03-22-2002 06:35 PM

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

nafae 03-22-2002 06:52 PM

That would be such a great forum hack!

dengel 03-22-2002 07:05 PM

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.

cditty 03-22-2002 07:32 PM

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

Neo 03-22-2002 08:20 PM

Quote:

Originally posted by dengel
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.

Dont even both. I am sure if they wanted to release it they would... and I always hate when people email/pm/im/or post on my forums for hacks I have

dengel 03-22-2002 08:39 PM

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.

cditty 03-22-2002 08:41 PM

Wluke's hack may have been designed for toolbars, but can be used in a popup window.

Chris

nafae 03-23-2002 03:08 PM

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)

N!ck 03-23-2002 03:56 PM

wluke's hack isn't really wluke's :)

OSbetas 03-23-2002 07:09 PM

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

dengel 03-23-2002 07:12 PM

Code:

<script language="javascript" src="http://www.tivocommunity.com/tivo-vb/ticker/ticker.js"></script>
Does not look like a marquee to me...

d.

Psychdrone 03-24-2002 12:10 AM

I swear I thought I saw this made.... maybe not

anyone gonna make it??

nuno 03-24-2002 12:42 PM

Quote:

Originally posted by nicksaunders
wluke's hack isn't really wluke's :)
really? and what do you mean by that?

nafae 03-24-2002 02:42 PM

Quote:

Originally posted by Psychdrone
I swear I thought I saw this made.... maybe not

anyone gonna make it??

boy oh boy do I hope so :laugh:

David Bott 03-24-2002 04:01 PM

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.

dengel 03-25-2002 12:37 AM

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.

nafae 03-25-2002 01:11 AM

Thats great, I hope we can entice you to post it! *goes to think of something enticing*

Dan203 03-25-2002 04:57 PM

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

dengel 03-25-2002 05:46 PM

Yes! Thank you both!

:)

d.

Psychdrone 03-26-2002 01:47 AM

well sounds great bud:)

make sure, are someone here tell us how to make it in a jacascript little popupwindow:)

Dan203 03-26-2002 03:25 AM

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

Dan203 03-26-2002 03:28 AM

Oh yeah, to open the ticker paste the following code into your document template...
Code:

<script language="javascript">
<!--
var tickerWindow = null;;


function openTicker(){
 if (document.layers || document.all || document.getElementById){
  var tt = 255;
  var tl = 177;
  if (screen.width){
    tt = (screen.height-130)/2;
    tl = (screen.width-445)/2;
  }
  if (tickerWindow == null || tickerWindow.closed)
    tickerWindow = window.open("/ticker/ticker.htm", "twindow", "toolbar=0,status=0,menubar=0,scrollbars=0,location=0,directories=0,resizable=0,height=100,width=434,top="+tt+",left="+tl);
 }
 else {
  alert ("We\'re sorry but the Latest Post Ticker only works in Netscape 4\+\, IE4\+ or a 100\% DOM\/CSS compliant browser.");
 }
}
//-->
</script>

then call if from a link like so...

<a href="#" onClick="openTicker()">Open Ticker</a>

Dan

Psychdrone 03-27-2002 03:34 AM

Hey thanks buddy,

hey what do I ezactly put in for the Cron job??

Dan203 03-27-2002 05:49 AM

Quote:

Originally posted by Psychdrone
hey what do I ezactly put in for the Cron job??
Sorry, but servers aren't my area! David set that part up for the TiVo Community, so either he, or one of the other guys, will have to help you with that part.

Dan

David Bott 03-27-2002 08:09 AM

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

Psychdrone 03-28-2002 01:07 AM

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

David Bott 03-28-2002 01:15 AM

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
But as I said, thus can differ and other items by be needed for your server. We did say this was a custom type fuction remember. ;)

nafae 03-28-2002 02:50 AM

1 Attachment(s)
This is what my cron job looks like, how would I configure this to work with the ticker?

David Bott 03-28-2002 10:12 AM

Again, I am sorry, but can not off any help in this area. Please contact your ISP.

Psychdrone 03-28-2002 05:55 PM

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

cditty 03-28-2002 05:59 PM

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.

TECK 03-28-2002 09:54 PM

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.

nafae 03-28-2002 11:09 PM

Quote:

Originally posted by nakkid
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.
Thanks nakkid, I can't wait to see it :)

Kakarot 03-29-2002 03:53 AM

<a href="http://www.dynamicdrive.com" target="_blank">www.dynamicdrive.com</a> has tickers of all sorts marque style & JavaScript.

Psychdrone 03-30-2002 12:44 AM

thand cditty

but I guess I will wait for Natkids now

jcroft 03-30-2002 05:11 AM

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

TECK 03-31-2002 06:44 AM

vbHome (lite) released. all you have to do is insert a java code into the latest threads. no need for cron jobs.

dengel 04-10-2002 07:38 PM

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.

David Bott 04-10-2002 09:21 PM

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
  • Page Generation 0.01254 seconds
  • Memory Usage 1,818KB
  • 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
  • (3)bbcode_code_printable
  • (5)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
  • (40)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