|
07-08-2004, 08:00 PM | #1 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
RSS Feed Code For Template?
I want to add the code for "view rss for this page" to my existing custom template but I can't figure out how to do that. Help!
|
07-08-2004, 08:05 PM | #2 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
I should clarify my question. I have ALLOW_RSS_FEED set to true. I put the following in my template:
PHP Code:
|
07-10-2004, 05:59 AM | #3 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. Take a look at search.php and see how it calls the custom page. Also in search. php check that the $rssdf variable is being passed to the phpdigSearch function call, where this function call is the one for the search results, not the RSS feed.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
07-11-2004, 08:21 AM | #4 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Ah, yes. There are differences in the 1.8.1 version of search.php. I don't recall you telling us that we had to overwrite that file to upgrade, but the old memory ain't what it used to be.
Next question about that: I am now getting the "View RSS for this Page" link, but when I click on it, nothing happens. The RSS document is on the server because I checked that. Any idea what the problem could be? |
07-11-2004, 08:43 AM | #5 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hi. The MIME type is probably wrong. A MIME type of application/xml should work. There is also application/rss+xml and text/xml but check with your host or have a read here.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
07-11-2004, 10:55 AM | #6 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
OK, I discovered the problem, quite by accident actually. I had the following statement in my .htaccess file:
PHP Code:
|
07-16-2004, 08:57 PM | #8 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
What is that? Are you trying to stick images in the RSS feeds?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
07-16-2004, 09:02 PM | #9 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
No. All I did was click on the "View RSS for this page" link on my search page, then add that feed to my news aggregator. That image is what the feed looks like from my news aggregator.
|
07-16-2004, 09:06 PM | #10 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Do a search here, and then click the "View RSS for this Page" link. That shows valid RSS so I'm not sure what you're doing. What is a news aggregator? Is it meant to parse RSS feed?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
07-16-2004, 09:51 PM | #11 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Well, it turns out that I still had something messed up in my .htaccess file. I fixed that, but I still have the display problem.
To answer your question, a news aggregator is software to accumulate all your RSS feeds into a single place, and yes, it does parse the content for display. My feed from phpdig still isn't displaying correctly. I just added a different feed to Awasu (my news aggregator). I notice the first news item displays all that HTML garbage but the other two in the list display okay (except for a > but that's a separate problem). Anyway, is it possible that the XML is incorrect? Here is the latest RSS feed that I created. |
07-16-2004, 10:11 PM | #12 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
From http://www.xml.com/pub/a/tools/ruwf/check.html:
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
07-16-2004, 10:35 PM | #13 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
I think you're right about it not parsing that data correctly for phpdig. If I changed the phpdig code to regular HTML entities, do you think it would break something somewhere else in phpdig?
|
07-16-2004, 10:42 PM | #14 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Just go to custom_search_page.php, look for the xmlentities function, and modify the function to whatever you want, and no, it won't break PhpDig outside of the feed. Even if you do break the RSS feed, the rest of PhpDig will be fine.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
XML FEED MOD FOR YOUR DIGGER | GunMuse | Mod Submissions | 4 | 05-19-2005 09:27 AM |
Rss Feed | djavet | Feedback & News | 1 | 01-07-2005 07:04 AM |
RSS Feed For These Forums | vinyl-junkie | Feedback & News | 6 | 08-16-2004 06:06 AM |
what is the purpose of th rss feed | vip562 | How-to Forum | 1 | 07-21-2004 04:46 PM |
Relevancy and xml feed | searchboy | Mod Requests | 3 | 04-04-2004 07:48 AM |