Your Ad Here Your Ad Here
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How Can I Get This - Ticker.stm

  1. #1
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,671
    Is there any way to get this

    http://news.bbc.co.uk/nol/ifs_news/h...age/ticker.stm

    running live in a sig in this forum?

    (i would like it live, not as a recorded gif)

  2. Internet, Programming and Graphics   -   #2
    h1
    Guest
    PHP. Untested...
    Code:
    <?php
    $ticker=fopen('http://news.bbc.co.uk/nol/ifs_news/hi/front_page/ticker.stm','r');
    function findNewsItem($str,$pos)
    {
       $str=substr($ticker,strpos($ticker,"theSummaries[{$pos}] = \""));
       $str=substr($str,0,strpos($str,'.')+1);
       return $str;
    }
    function text($x,$n)
    {
       ImageString($im,4,$x,10,$news[$n],$black);
    }
    $news=array('','','','');
    for($i=0;$i<3;$i++)
    {
       $news[$i]=findNewsItem($news[$i],$i);
    }
    unset($ticker);
    $im=ImageCreate(500,150);
    $white=ImageColorAllocate($im,0xFF,0xFF,0xFF);
    $black=ImageColorAllocate($im,0x00,0x00,0x00);
    text(10,0);
    text(45,1);
    text(80,2);
    text(115,3);
    
    // if the image gets too large (filesize), lower the third number image the ImageJPEG function. valid numbers are 1 to 10.
    
    $fn=mt_rand(1,999999999).'.jpg';
    header('Content-type: image/jpeg');
    ImageJPEG($im,$fn,10);
    unlink($fn);
    ?>

  3. Internet, Programming and Graphics   -   #3
    Poster
    Join Date
    Oct 2003
    Location
    Montevideo,Uruguay
    Posts
    989
    just use the dohtml tag and add the marquee tag

  4. Internet, Programming and Graphics   -   #4
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,671
    Um.....thanks
    noob at work here
    but im not quite sure
    what to do with what you both just wrote
    dont know how to implement it

    Haxor-am i supposed to put that text in the sig box or what? if so it doesnt allow it
    CoolMac-what exactly do you mean?

    If you could show me or do an example, or post it in areply so i can grab it -
    thanks

  5. Internet, Programming and Graphics   -   #5
    h1
    Guest
    Save it as a .php file, upload it to a server with PHP, and put this in your sig:
    Code:
    [img]http://www.site.com/file.php[/img]

  6. Internet, Programming and Graphics   -   #6
    Poster
    Join Date
    Oct 2003
    Location
    Montevideo,Uruguay
    Posts
    989
    haxor's option is the best one.
    I was suggesting for you to use html to crate a marquee

  7. Internet, Programming and Graphics   -   #7
    SeK612's Avatar Poster BT Rep: +10BT Rep +10
    Join Date
    Nov 2002
    Location
    UK
    Posts
    739
    dohtml tag and add the marquee tag
    Can you do this in a sig? Doesn't HTML need to be enabled for that (it isn't on this forum)?

    Code:
    [img]http://www.site.com/file.php[/img]
    .php extensions can't be added inside [img] tags....

  8. Internet, Programming and Graphics   -   #8
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,671
    It is not permitted to post .php extensions

    is there any other way..... :helpsmile:

  9. Internet, Programming and Graphics   -   #9
    h1
    Guest
    Make a folder just for this script. Name it sig.txt and upload it. Rename it to sig.jpg once uploaded. Upload this file, named ".htaccess" to that directory:
    Code:
    AddType application/x-httpd-php .jpg

  10. Internet, Programming and Graphics   -   #10
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,671
    Ok Haxor
    i have hope
    first i will fiond out what php is
    find a site which hosts it
    load your script¨
    make a folder for the script
    name it si.txt and upload it
    rename it to sig.jpg an dupload it
    uplload file .htaccess to that directory

    as a first timer i will learn alot in this process
    and will post once i have achieved - success.
    if not.... questions will follow


    Haxor- is there absolutøly any chance that you could try to be a little bit more explicit in your replies- as in not expect those with problems to understand everything you know-?
    Thanks again

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •