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)

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.


All times are GMT. The time now is 01:42 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.01065 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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