View Single Post
Old 07-11-2008, 09:28 PM   #1 (permalink)
codefreek
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default Youtube RSS Grabber - Beta V.0.1.

it's not the best script in the world but i am working on making it cool, this is my first try and i played around with it much
the css code is messy and it's not that great but it works
and i will update it with more cool things if i get some feedback and some requests,


people who i wanna give a "thank you" to, Are.

Quote:
Noia,
Jim
jsampson from sampsonresume.com
Stormhawk
tanax (allot of support from him)
and some other people you all know who you are ;)
this is some great people right here!


Thank you.


So here is the code it will be posted here and as well you can download it.


PHP Code:
<style> ul { list-style-type: none; } </style>    
<td width="800" hight="800" valign="middle" class="headerNewsFlash">
<marquee id="newsFlash" direction="down" scrolldelay="30" scrollamount="4"><div style="width: 0px" onMouseOver="newsFlash.stop();" onMouseOut="newsFlash.start();"><nobr>
    
<?php

//Codefreek Production 
    //www.talkphp.com 
    //BETA 0.1 RSS Grabber From Youtube 
        //Copyright 08 - 09 by codefreek
            //if you like please pm me and say thank you and i will continue doing more free scripts.

    //only use when needed!
    //ini_set("user_agent","Internet Explorer");

    //Edit here for your rss link
    
$location "http://youtube.com/rss/global/top_rated.rss";
    
$contents file_get_contents($location);
    
$xml      = new SimpleXMLElement($contents);
    
$limiter 0;

    print 
"<ul>";

    foreach(
$xml->channel->item as $item) {
       print 
"<li>";
    
$linkarray explode("=",$item->link);
    print 
"<a href='".$item->link."' title=''>";
    print 
"<img src=\"http://s2.ytimg.com/vi/".$linkarray[1]."/default.jpg\" title=\"My Thumbnail!\" />";
    print 
"</a>";
    print 
"</li>";
    
$limiter++;

// here you can change the 10 to the limit
//you want!

    
if ($limiter == 10) break;
  
   
    }

    print 
"</ul>";


    
?>

</marquee>


</nobr></div></marquee>
</td>
<b><center>Youtube RSS Grabber 0.1 BETA - By Codefreek</center></b>

OR


RapidShare: Easy Filehosting


MORE TO COME!


ONLINE DEMO:
http://td4l.org/testshit/youtube_rss_grabber.php

Last edited by codefreek : 07-11-2008 at 09:53 PM. Reason: ONLINE DEMO ADDED
codefreek is offline  
Reply With Quote