07-11-2008, 10:28 PM
|
#1 (permalink)
|
|
Moderator
Join Date: Sep 2007
Location: Near you.
Posts: 452
Thanks: 228
|
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
ONLINE DEMO:
http://td4l.org/testshit/youtube_rss_grabber.php
__________________
inquisitive
1. Eager to acquire knowledge.
2. Too curious; overly interested; nosy.
Last edited by codefreek : 07-11-2008 at 10:53 PM.
Reason: ONLINE DEMO ADDED
|
|
|
|