Navigation
Last Seen Users
wykydz00:15:11
hqrpele00:55:26
ErexMalren01:21:49
jthees01:50:34
emperorloki03:37:07
blizzard03:56:13
blackpuma197604:06:14
cristism05:11:13
DaSteelMan05:37:45
skadush06:13:21

Members: 27,600
Newest: emperorloki
Downloads v7
Downloads v6
One-click Translation
Translate This Site

Member Poll
Which version of PHP-Fusion are you using?

6.xx.xx
6.xx.xx
4% [19 Votes]

7.00.xx
7.00.xx
8% [38 Votes]

7.01.xx
7.01.xx
8% [40 Votes]

7.02.xx
7.02.xx
81% [403 Votes]

Votes: 500
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

22-05-2013 05:14

22-05-2013 05:06

22-05-2013 05:05

22-05-2013 05:03

22-05-2013 05:02

22-05-2013 05:01

22-05-2013 04:59

22-05-2013 04:57

22-05-2013 04:56

22-05-2013 04:54

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
View Thread
Who is here? 1 guest(s)
 Print Thread
RSS Mod Rewrite
hextall
Hello friends.

I have a tiny rss mod, which is able to show feeds from news.php. But, I also need feeds for articles.php. Here is a feed code for news.php. What do I have to change to be able to feed for articles.php ?

Download source  Code
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright (c) 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

header("Content-Type: text/xml");
require_once "../maincore.php";
require_once THEME."theme.php";
include "rss_config.php";

$result3=dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 0,10");
$result2=dbquery("SELECT siteurl FROM ".$db_prefix."settings");
$base=dbresult($result2,0);

echo "<?xml version=\"1.0\" encoding=\"".$locale['charset']."\"?>\n\n
   <!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n
   \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n
   <rss version=\"0.91\">\n\n
       <image>\n   
         <url>$rssimage</url>\n
         <title>".$settings['sitename']." - Novice</title>\n
         <link>".$base."</link>\n
         <description>$rssdescription</description>\n
       </image>\n
   <channel>\n
   <title>".$settings['sitename']." - Novice</title>\n
   <link>".$base."</link>\n
   <description>$rssdescription</description>\n";

while ($row=dbarray($result3)) {
   $rsid = intval($row['news_id']);
   $rtitle = $row['news_subject'];
   $description = stripslashes(nl2br($row['news_news']));
   $description = strip_tags($description, "<A><P><BR><BR /><HR>");

   echo "<item>\n
       <image>\n   
         <url>$rssimage</url>\n
         <title>".$settings['sitename']." - Novice</title>\n
         <link>".$base."</link>\n
         <description>$rssdescription</description>\n
       </image>\n   
   <title>".htmlspecialchars($rtitle)."</title>\n
   <link>".$base."news.php#".$rsid."</link>\n
   <description>".htmlspecialchars($description)."</description>\n
   </item>\n\n";
}
echo "</channel>
   </rss>";

?>


 
quiki
Check out these mods if u can use any code from them:
http://www.phpfus...?mod_id=56
http://www.phpfus...wstart=400
 
hextall
Great, thanks. I thought there are more differences in code between v6 and v7. I changed a few things and it works. Thanks.
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
WAP mod for PHP-Fusion v.7 PHP-Fusion Modifications 35 21-05-2013 07:53
photogallery sub-albums mod help Coding Support 4 05-05-2013 00:25
Avatar mod or infusion Mod Request 9 05-03-2013 03:18
[MOD]User Gold System for [MOD]FusionBoard3 PHP-Fusion Modifications 2 05-03-2013 02:33
4 mod updates, 2 translations released PHP-Fusion Modifications 1 04-03-2013 06:06