Topic Title: Firefox Friendly RSS Feeds

Forum Index » Other PHPNuke Issues » Firefox Friendly RSS Feeds
Topic URL: http://www.nukedgallery.net/postt1245.html

AuthorMessage
Post Title: Firefox Friendly RSS Feeds
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Oct 28, 2004 2:53 pm
So you've noticed that Firefox [mozilla.org] has this nifty new "Live Bookmark" [mozilla.org] feature which allows you to bookmark a site's RSS feeds into your bookmark folder. Spiffy, eh? So, why not use it to help users of your site get all your news at a glance?

To do it, just open header.php and add this before the line which calls the CSS file:
PHP: › <?php echo "<link href=\"http://yoursite.com/backend.php\" rel=\"alternate\" type=\"application/rss+xml\" title=\"YOURSITE RSS Feed\" />\n\n\n"?>

(replace yoursite.com and YOURSITE with your site's address and name).

In the end, it will look something like this:
PHP: › <?php echo "<link href=\"http://www.nukedgallery.net/backend.php\" rel=\"alternate\" type=\"application/rss+xml\" title=\"NukedGallery RSS Feed\" />\n\n\n";        
    echo 
"<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n"?>

Make sure, of course, to replace NukedGallery's information with your own site's.

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
nagu
Joined: Sep 24, 2004
Posts: 5
Location: India
Posted: Wed Nov 17, 2004 7:20 am
hi,
But i have a problem in doing so. My backend.php is showing excellently in My Yahoo. But the real problem is with Mozilla. I edited the header file. I tried to subscribing using my mozilla. The problem is....It show "Live bookMark feed failed to load" Why is this?

the site is ceteagles.info.
the nuke folder is ceteagles.info/html/
I have used .htacess way of redirection to the nuke folder.
the exact location of backend.php is ceteagles.info/html/backend.php

can some one please help

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Nov 17, 2004 7:50 am
your line looks fine to me:

Code: › <link href="http://ceteagles.info/html/backend.php" rel="alternate" type="application/rss+xml" title="CETEAGLES RSS Feed" />


BUT, when i view your backend.php directly at http://ceteagles.info/html/backend.php , i get this:

Code: ›
XML Parsing Error: xml processing instruction not at start of external entity
Location: http://ceteagles.info/html/backend.php
Line Number 3, Column 1:<?xml version="1.0" encoding="ISO-8859-1"?>
^


so yahoo isn't being as strict as mozilla.

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
nagu
Joined: Sep 24, 2004
Posts: 5
Location: India
Posted: Wed Nov 17, 2004 8:40 am
Then what am i supposed to change in my code? How to make it work.

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Nov 17, 2004 9:02 am
I have no idea, it's an error in the php script itself. i suggest grabbing a new copy of phpnuke and using it's backend.php and see if it works.

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
nagu
Joined: Sep 24, 2004
Posts: 5
Location: India
Posted: Wed Nov 17, 2004 9:07 am
hi,
i got it. Exactly The problem is similar to that of the "securitycode not showing" problem. By removing a new lines at the end of all the files that included in the mainfile.php solved my problem. I believe it works now. I found the free line in one of the lang-English.php. Removing the thing made it work.
Thanx for ur support.
nagu

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
luchtzak
Joined: Dec 06, 2004
Posts: 3

Posted: Mon Dec 06, 2004 8:30 am
Thank you very much for explaining this very cool feature! Have applied this on my website and it rocks!

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
TheLoneInventor
Joined: Dec 15, 2004
Posts: 3

Posted: Fri Dec 17, 2004 3:38 am
Hi,

I have implemented this hack , however I don't see anything in Netscape or IE comming up. I am downloading Firefox right now to check it out. Should you see anything? Or if the code simply take advantage of the active links code in the Firefox browser?

Thanks

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
luchtzak
Joined: Dec 06, 2004
Posts: 3

Posted: Fri Dec 17, 2004 5:46 am
It doesn't work in IE or Netscape, it's firefox-only.

Check this url, you can see some images on how it works:

http://www.luchtzak.be/postt7526.html

ciao,

Bart

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
TheLoneInventor
Joined: Dec 15, 2004
Posts: 3

Posted: Sat Dec 18, 2004 2:54 am
I realize it only works with Firefox, I guess I thought there would be a link or something.

I did download Firefox, and that's a pretty nice browser. Also got the Live Bookmarks feature up and running on my site.

Check it out if you like http://www.loneinventor.com [loneinventor.com]

Thanks for the help. Great thread! Very useful piece of information. They are now offering this as part of the "upgrade" in nuke 7.6 aren't they? With the stat counter as well? Hmm...

Thanks again.

TheLoneInventor

AuthorMessage
Post Title: Re: Firefox Friendly RSS Feeds
TheLoneInventor
Joined: Dec 15, 2004
Posts: 3

Posted: Thu Oct 27, 2005 6:01 am
UPDATE: Firefox Live Bookmarks

Hey, thanks again for the thread. I have been using these now for many moons, and they are working out great. I have added more RSS feeds, one for each individual news topic to spread the love around so to speak.

Has anyone heard of rss2.0 and atom feeds for phpnuke?
I ran across this today: http://brennan.offwhite.net/blog/archives/000067.html

There you will find rss2.0 and atom0.3 feeds for your phpnuke site. An interesting quesiton came up though after reading that article that accompanies those files... He is adding the required statements for the live bookmarks into the meta.php file as opposed to the header.php file. I tried it, and it does work just as well... The meta.php file is called from within the header.php file, so I'm curious, which is better and why or are they relatively the same? Neither of them is an 'include once" statement, so probably no load time difference, or not much.

Any thoughts?

Steve

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group