TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 07-11-2008, 09:28 PM   #1 (permalink)
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
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:25 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design