Edit----
Im very sorry this took so long to fix and that i haven't really been on latley... iv been VERY busy lol
----Edit
Hey everyone,
Well I just finished my RSS feed Mod v.2 and I can really say im proud of what I created.
What my RSS feed does is shows the newest(20) videos (which it can be modified to show by rating or anything you want - all you need to do is ask)
Demo
My Rss Feed--------------Tutorial---------------
Step 1. Create file named
rss.phpStep 2. Inside rss.php insert the below code
<?php
header ("Content-Type: application/rss+xml");
include_once ("db.php"); ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Site Title</title>
<description>Site Deptioscrin</description>
<link>Site Link</link>
<image>
<title>Msic Videos</title>
<description>Site Deptioscrin</description>
<url>Image Url</url>
<link>Clinking image will bring you to this url</link>
</image>
<?
$sql = "SELECT * FROM pp_files WHERE approved = '1' ORDER BY id DESC limit 20";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result)){
$row['name'] = str_replace("&", "&", $row['name']);
?>
<item>
<title><?=$row['name']; ?></title>
<description><![CDATA[<img height=89 width=120 src="<?=$row['picture']; ?>" align="left"
hspace="3" vspace="3">
<p><b>Description:</b></p>
<p><?=$row['description']; ?></p>
<p><b>Uploaded:</b> <?=$row['date']; ?></p>]]></description>
<link>http://(site url)/videos.php?id=<?=$row['id']; ?></link>
<guid isPermaLink="true">http://(site url)/videos.php?id=<?=$row['id']; ?></guid>
</item>
<?
}
?>
<atom:link href="(site url)/rss.php" rel="self" type="application/rss+xml" />
</channel>
</rss>Step 3. Edit everything that needs to be edited
Step 4. Place
<a href="http://(site url)/rss.php">RSS Feed</a>where ever you want the Link to appear
If you need any help feel free to ask -Jeff-