NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·Website optimization
·Multilingual search engine optimization
·Rapidshare script/mini host script not allowing downloads
·Members Cant Logon My Site or View Forums & Member Profi
·Approved Membership for 8.0
·I want to use full HTML content in the welcome page...
·Changed style from subsilver, folder images now dont display
·Installing the forum upadates
·PHP-Nuke SQL Injection Vulnerability Fix
·New Story Links Problem

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: violetwine
Today: 0
Yesterday: 2
Overall: 14899

Visitation:
Guests: 641
Members: 1
Total: 642


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Need to find your IP fast?
Need to find your IP fast?

NukeResources :: View topic - Syndicating my news with RSS
NukeResources Forum Index

NukeResources Forum Index -> Upgrading PHP-Nuke -> Syndicating my news with RSS
Post new topic  Reply to topic    View previous topic :: View next topic 
Syndicating my news with RSS
PostPosted: Wed Jan 16, 2008 8:13 pm Reply with quote
spudinsky
Resource Seeker
Resource Seeker
 
Joined: Dec 10, 2007
Posts: 6




Can someone explain how to do this. I know you use the backend.php file somehow, but I do not understand the mechanics of setting it up.

Thank you
View user's profile Send private message
PostPosted: Thu Jan 17, 2008 9:58 am Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




backend.php automatically creates an RSS feed from your news. There is nothing you need to do. Users can put the URL to the backend.php file into their RSS reader and it should work

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Thu Jan 17, 2008 3:42 pm Reply with quote
spudinsky
Resource Seeker
Resource Seeker
 
Joined: Dec 10, 2007
Posts: 6




Thanks for responding....I now understand the mechanics....however, when I try to load backend.php, I get the follwowing error message:

Invalid xml declaration.
Line: 64 Character: 3

<xml>


I'm using Nuke 7.9 if that helps. Any suggestions?
View user's profile Send private message
One more thing
PostPosted: Thu Jan 17, 2008 3:43 pm Reply with quote
spudinsky
Resource Seeker
Resource Seeker
 
Joined: Dec 10, 2007
Posts: 6




I thought I would go ahead and post my backend.php just in case:

<php>sql_fetchrow($db->sql_query("SELECT catid FROM ".$prefix."_stories_cat WHERE title LIKE '%$cat%' LIMIT 1"));
if ($catid == "") {
$result = $db->sql_query("SELECT sid, title, hometext FROM ".$prefix."_stories ORDER BY sid DESC LIMIT 10");
} else {
$catid = intval($catid);
$result = $db->sql_query("SELECT sid, title, hometext FROM ".$prefix."_stories WHERE catid='$catid' ORDER BY sid DESC LIMIT 10");
}
} else {
$result = $db->sql_query("SELECT sid, title, hometext FROM ".$prefix."_stories ORDER BY sid DESC LIMIT 10");
}

echo "<xml>\n\n";
echo "<DOCTYPE>\n\n";
echo "<rss>\n\n";
echo "<channel>\n";
echo "<title>".htmlentities($sitename)."</title>\n";
echo "<link>$nukeurl</link>\n";
echo "<description>".htmlentities($backend_title)."</description>\n";
echo "<language>$backend_language</language>\n\n";

while ($row = $db->sql_fetchrow($result)) {
$rsid = intval($row['sid']);
$rtitle = filter($row['title'], "nohtml");
$rtext = filter($row['hometext']);
echo "<item>\n";
echo "<title>".htmlentities($rtitle)."</title>\n";
echo "<link>$nukeurl/modules.php?name=News&amp;file=article&amp;sid=$rsid</link>\n";
echo "<description>".htmlentities($rtext)."</description>\n";
echo "</item>\n\n";
}
echo "</channel>\n";
echo "</rss>";

?>
View user's profile Send private message
PostPosted: Thu Jan 17, 2008 6:47 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




Better to point us to your actual URL to rss.php
It is the data that is usually the problem and not the rss.php code itself

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
Thanks
PostPosted: Thu Jan 17, 2008 8:42 pm Reply with quote
spudinsky
Resource Seeker
Resource Seeker
 
Joined: Dec 10, 2007
Posts: 6




here is the url:

www.politibyte.com/backend.php

I also have a file called www.politibyte.com/backend20.php

thanks,
View user's profile Send private message
PostPosted: Thu Jan 17, 2008 9:28 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




One of your files must have a bunch of blank lines before the beginning <?php tag. It's saying that the line starting
Code:

<?xml

should start in the first line, but it is at the 64th line instead

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
ok
PostPosted: Fri Jan 18, 2008 8:07 am Reply with quote
spudinsky
Resource Seeker
Resource Seeker
 
Joined: Dec 10, 2007
Posts: 6




when you say one of your files, which files are you talking about.....what files does the backend.php file look at?
View user's profile Send private message
PostPosted: Sun Feb 17, 2008 12:13 am Reply with quote
kguske
Resource Seeker
Resource Seeker
 
Joined: Sep 17, 2005
Posts: 2




Look at your mainfile.php and config.php files.

Also, it won't solve this problem, but you may want to check out my nukeFEED module that allows you to generate many types of feeds (e.g. last 7 news items from this news category, most popular 20 downloads, etc.)
View user's profile Send private message
RSS your News and Items
PostPosted: Thu May 08, 2008 2:31 pm Reply with quote
bbaros
Resourceful
Resourceful
 
Joined: Jul 03, 2005
Posts: 81
Location: Nashville, TN




I've Modified all the Backends to allow you to RSS out any news, forums and even Weblinks

On this site of NukeResources
Look up the keyword

Infinity-Plus

_________________
Brian Baros
creator of Infinity-Plus.net, .org, .info, .com
http://www.Infinity-Plus.net
Administrator@infinity-plus.net
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PostPosted: Sun Jun 22, 2008 7:01 pm Reply with quote
aliceaod
Resource Seeker
Resource Seeker
 
Joined: Jun 16, 2008
Posts: 3




I was hving a problem with RSS feeds in IE7 and no forums on any phpnuke site I posted this to either had the issue talked about or did anyone reply to my posts. I found a fix for it at a totally unrelated script site, which helped me to fix the DTD error issues I was experiencing with phpnuke 8.0 and here's what I did:

HOW I FIXED MY PHPNUKE RSS FEEDS

Open backend.php and backendforums.php


EDIT: FOR SOME REASON MY CODE WON'T "STICK"....even tho I have it wrapped around code /code tags...so I'll try it as plain text...nope that's not working either. How do I post code here without it being removed??? Here's what's happening:

find

Code:
echo "<xml>\n\n";

echo "<DOCTYPE>\n\n";

echo "<rss>\n\n";


replace

Code:
echo "<xml>\n";

echo "<rss>\n";


notice all the code is erased for some reason.
View user's profile Send private message
Syndicating my news with RSS
 NukeResources Forum Index -> Upgrading PHP-Nuke
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 184 unique hit(s) in the past 24 hours.
Forums ©
NukeZone Hosting - Fast, Affordable and Dependable


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.28 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.