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
#208
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 2 Months, 1 Week ago Karma: 0  
kksou - many thanks for looking into this. I'm sure it would have taken me days, not hours, to find this. I will report back with the results ASAP.
 
  The administrator has disabled public write access.
#210
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 2 Months, 1 Week ago Karma: 0  
Hmmm. I placed the code exactly as specified and it has no effect on the output of the feed. I still see my DirectPHP and Jumi code in the feed.

My feed URL is: http://www.informify.com/index.php?format=feed&type=rss

I'm using Google Reader as the feed reader.

I even remembered to clean out my cache in case that made a difference.

Note that 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 this is a factor, let me know and I can try a different configuration.

Thanks, kksou.
 
  The administrator has disabled public write access.
#211
kksou (Admin)
Admin
Posts: 149
graph
User Online Now Click here to see the profile of this user
Re:DirectPHP code appears in feeds 2 Months, 1 Week ago Karma: 6  
PerroLoco wrote:
Note that 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.


Hi PerroLoco,

Could you please elaborate a bit more about this?

1) What do you mean you did not use the feed module? Which feed module are you referring to? Based on your URL http://www.informify.com/index.php?format=feed&type=rss, it seems that you are using the default feed generator. So did you modify the feed generator?

2) "I didn't want to use up space for it" - Would you mind explain this too? Which "space" are you referring to?

3) Where did you hard-code the default RSS URL? Which template file is this?

Regards,
/kksou

p.s. To really sort out where's the issues, it's easiest to start from a clean base. So if you do have some time, you might want to install a fresh Joomla into another location (it takes only about 5 minutes), add DirectPHP and also the 5 lines as mentioned in the article. Click the rss icon at the bottom of the home page and see if the php codes appear in the rss feed.

Once it works with a clean install, you can slowly add in other plugins to see which one is causing the problem.
 
 
Last Edit: 2008/05/12 23:40 By kksou.
  The administrator has disabled public write access.
#213
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 2 Months, 1 Week ago Karma: 0  
kksou -

Here are some answers to your questions.

1. I don't have the feed module published. When I was first developing my site, the feed module was published. I simply copied the URL that the module produced (the one I've already referenced here), and hard-coded it into /templates/[my template name]/index.php.

2. I'm referring to visual space in the page layout.

3. See #1 - hardcoded into templates/[my template name]/index.php.


ALSO, I've been thinking about this a bit more. I think what I really need is a way to simply strip the DirectPHP and Jumi code from the RSS, not process the plugin code. My custom code is inserting images and flash objects. I don't want that going out in the RSS.

Let me say again that I appreciate all the work and thought you've put into this. Thank you.
 
  The administrator has disabled public write access.
#214
kksou (Admin)
Admin
Posts: 149
graph
User Online Now Click here to see the profile of this user
Re:DirectPHP code appears in feeds 2 Months, 1 Week ago Karma: 6  
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 2 Months, 1 Week 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 2 Months, 1 Week 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 2 Months, 1 Week 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: 149
graph
User Online Now Click here to see the profile of this user
Re:DirectPHP code appears in feeds 2 Months ago Karma: 6  
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: 149
graph
User Online Now Click here to see the profile of this user
Re:DirectPHP code appears in feeds 2 Months ago Karma: 6  
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.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

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