Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Welcome to the Official Site of PHP-Fusion
Sign In
Not a member yet? Click here to register.
Navigation
5 Replies | Latest reply on 18-03-2018 10:26 by Falk
Woody
Woody Posted 1 year ago 46 posts

RSS parser system question?

i downloaded the rss parser system and infused it. all is well.... but not sure how to get the rss feeds from my site using the parser system. note i have no rss aritcle.php or any others for news and such. where do i get those from? TIA

5 Replies

Sort replies by
Falk
FalkPosted 1 year ago 3915 posts
Try attachment, it might require some mods. Could not find the "fixed" one.
You do not have access to view attachments
Woody
WoodyPosted 1 year ago 46 posts
cool and ty
now the panel comes up with icons but nothing is in rss when i look at it. now i have the feeds in the forum3 dir bostonrockradio.com/forum3
and i see there is no infuse to this one. any ideas?

here is what i get on all i think but total blank on news

XML Parsing Error: no element found
Location: http://www.bostonrockradio.com/forum3/feeds/rss_forums.php
Line Number 1, Column 1:

also shouldn't it open in new window?

looked into the feeds error log and this is what is in there

Quote

[09-Jan-2017 14:48:00 Europe/London] PHP Fatal error: Call to undefined function multilang_table() in /home/waynerockon/public_html/forum3/feeds/rss_news.php on line 24
Falk
FalkPosted 1 year ago 3915 posts
Like I said, you need to modify it. All queries with multilang operator need to be re-made
Woody
WoodyPosted 1 year ago 46 posts
ok
hmm i'm not a programmer
so not really sure what to fix

looking at articles feed : i see this info but not sure where to change it?

<?php
//OS:mFusionME
//version:4.01.20
//type:CORE
// ARTICLES FEEDER for mFUSION 1.x /////////////////////////////////////////////
//Modded and remodelled for mFUSION by www.sumotoy.com
//Features: Full multilanguage with international option (shows the language in multilanguage feeds)
//Note: For link a particular language use this http://www.yoursite.com/feeds/articles.php?lang=Japanese
//Note: For All languages use this http://www.yoursite.com/feeds/articles.php?lang=Japanese
//status:100%///////////////////////////////////////////////////////////////////
header("Content-Type: text/xml");
require_once "../maincore.php";
require_once THEME."theme.php";

if (file_exists(BASEDIR."feeds/locale/".LANGUAGE.".php")) {
   include BASEDIR."feeds/locale/".LANGUAGE.".php";
} else {
   include BASEDIR."feeds/locale/English.php";
}

$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access').(multilang_table("A")?" AND article_cat_language='".LANGUAGE."'":"")."
ORDER BY article_datestamp DESC LIMIT 0,10");

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
   <channel>\n";

echo "<title>".$settings['sitename'].$locale['rss002'].(multilang_table("A")?" ".$locale['rss007']." ".LANGUAGE:"")."</title>\n<link>".$settings['siteurl']."</link>\n";

echo "<description>".$settings['description']."</description>\n";
while ($row=dbarray($result)) {
   $rsid = intval($row['article_id']);
   $rtitle = $row['article_subject'];
   $description = stripslashes(nl2br($row['article_snippet']));
   // Add allowable HTML tags below, all others will be stripped
   $description = strip_tags($description, "<A><P><BR><BR /><HR>");
   echo "<item>\n";
   echo "<title>".htmlspecialchars($rtitle).(multilang_table("A")?" - ".$locale['rss007'].$row['article_language']:"")."</title>\n";
   echo "<link>".$settings['siteurl']."readarticle.php?article_id=".$rsid."</link>\n";
   echo "<description>".htmlspecialchars($description)."</description>\n";
   echo "</item>\n";
}
echo "</channel></rss>";
?>
Falk
FalkPosted 1 year ago 3915 posts
The trick is in the Query,

Try replace $result part with
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,10");


Basically, everything with multilang_table() need to go.

Actions

Sharing

More topics like this

You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.
Woody

RSS parser system question?
by Woody Posted 1 year ago