PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:DirectPHP code appears in feeds (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:DirectPHP code appears in feeds
#214
kksou (Admin)
Admin
Posts: 323
graph
User Online Now Click here to see the profile of this user
Re:DirectPHP code appears in feeds 5 Months ago Karma: 8  
Hi PerroLoco,

Thanks for the answers. Now I know what you mean by "I'm not using the feed module. I didn't want to use up space for it, so I just hard-coded the default RSS URL into my template."

If you've some time, could you please try the solution on a fresh install of Joomla 1.5.3. I just did it. And it should work with the 5 additional lines.

If it works, let me know. I will give you another solution to strip away the PHP codes (if that's what you have in mind). The two solutions are similar. So you have to let me know if this one works first.

Regards,
/kksou
 
 
Last Edit: 2008/05/13 07:32 By kksou.
  The administrator has disabled public write access.
#217
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 4 Months, 4 Weeks ago Karma: 0  
kksou - I will absolutely test your hack out on a fresh installation to see if it works. Time is my biggest problem right now, but I should be able to do it in the next day or two. Thanks so much for your help! I'll report back as soon as I can.
 
  The administrator has disabled public write access.
#218
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 4 Months, 3 Weeks ago Karma: 0  
Following up...

I have a very confusing mess on my hands. I setup an exact duplicate of my production site in a different URL, and it works perfectly. A new install of J1.5 also works fine.

I've learned that there seems to be some kind of conflict with the Joomla caching and the RSS feed.

I've also learned that different feed readers show different results. The RSS feed on my site produces the following on various feed readers:

Google Reader - a list of articles with the Jumi and DirectPHP code displayed.

NewsFox add-on for Firefox - shows just the name of the feed, but no articles.

Internet Explorer - shows a nice, clean feed with all of the plugin code properly executed.

I have no idea what's going on. My time is very limited, so I don't get more than 20 minutes at a time to devote to this. Progress is slow. I'll follow up asap.

Thanks again for the help on this.
 
  The administrator has disabled public write access.
#223
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 4 Months, 3 Weeks ago Karma: 0  
kksou -

I figured out some of the mysteries above. Google Reader will show a cache of articles previously contained in a feed. That's why it ALWAYS showed articles, even when the feed didn't actually contain anything.

I think my NewsFox plugin is broken - it doesn't work for any feed at the moment.

IE is providing a pretty reliable representation of my feed contents. I'm using it as my primary testing tool now.

As for your hack, like I said above, it works fine for every site I try it on but my production site. I was even able to modify my custom inserted code to test if the article is being displayed through a feed, and if so, skip serving images.

Now I have to figure out where the difference is between my production site and my staging site. Grrr.

The biggest issue I have right now is that I can't use Joomla 1.5 caching AT ALL if I want to have an RSS feed. For some reason when I turn on caching, the content of my feed goes away. The feed still works, it just doesn't contain anything. I've posted a question on the Joomla forum about it. http://forum.joomla.org/viewtopic.php?f=431&t=292948

This behavior is easily reproducible on both my production site and my staging site.

So that's my update. For your part, your hack works and I was able to adapt my code to work with it well. Thank you again for your help.
 
  The administrator has disabled public write access.
#226
kksou (Admin)
Admin
Posts: 323
graph
User Online Now Click here to see the profile of this user
Re:DirectPHP code appears in feeds 4 Months, 3 Weeks ago Karma: 8  
Hi PerroLoco,

As promised, I've developed the plugin that will hide any DirectPHP commands in your RSS feed.

Have just submitted it to extensions.joomla.org. However, it will usually take one to two days to get listed.

In the meantime, you can test drive it at:
plugin: Hide DirectPHP for RSS Feed

Regards,
/kksou
 
 
Last Edit: 2008/05/20 17:01 By kksou.
  The administrator has disabled public write access.
#227
kksou (Admin)
Admin
Posts: 323
graph
User Online Now Click here to see the profile of this user
Re:DirectPHP code appears in feeds 4 Months, 3 Weeks ago Karma: 8  
Hi PerroLoco,

I see that you use quite a lot of jumi codes. So I developed one for hiding jumi codes in RSS feed too.

plugin: Hide jumi for RSS Feed

Regards,
/kksou
 
 
Last Edit: 2008/05/21 06:24 By kksou.
  The administrator has disabled public write access.
#231
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 4 Months, 2 Weeks ago Karma: 0  
kksou - you're the best! Thanks so much for putting in the extra work on all this!
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Copyright © 2006-2008. kksou.com. All Rights Reserved