PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
DirectPHP code appears in feeds (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: DirectPHP code appears in feeds
#201
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
DirectPHP code appears in feeds 5 Months ago Karma: 0  
kksou -

I saw a question asked over on your DirectPHP page (http://www.kksou.com/php-gtk2/Joomla/DirectPHP-plugin.php) - one you tried to help with, but the person who asked never responded. So now I'd like to pick up where you left off.

The question was asked by "gp44" who wanted to know if there was a way to mask DirectPHP code so it didn't appear in the site feed. I'm having the same issue, and would love to fix it.

This issue doesn't just affect DirectPHP. I've used a lot of Jumi code in there, and the same thing happens.

If you want to take a look at it, I'm running Joomla 1.5.3. You can see what my feed looks like here: http://www.informify.com/index.php?format=feed&type=rss

Thanks for any help you can provide!
 
  The administrator has disabled public write access.
#202
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,

Could you please provide a little more details...

- Which rss generator are you using?

- Are you using the rss feed that comes with standard Joomla installation?

- Are you using Joomla 1.0 or 1.5?

Regards,
/kksou
 
  The administrator has disabled public write access.
#203
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 5 Months ago Karma: 0  
kksou - thanks for the quick reply.

Joomla version 1.5.3, using the standard Joomla feed generator.

I'd be happy to try a different generator if that would make a difference.
 
  The administrator has disabled public write access.
#204
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,

ok.

Will work on this over the weekend...

Regards,
/kksou
 
  The administrator has disabled public write access.
#205
PerroLoco (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Re:DirectPHP code appears in feeds 5 Months ago Karma: 0  
Much obliged. Make sure you have time for some fun, too! :-)
 
  The administrator has disabled public write access.
#206
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,

Took me a couple of hours to understand how the rss is being generated in Joomla 1.5, and where to insert that 5 lines to trigger the content plugin.

Here's the solution:

For Joomla 1.5:
How to have DirectPHP plugin process RSS feed (for Joomla 1.5.x)

For Joomla 1.0:
How to have DirectPHP plugin process RSS feed (for Joomla 1.0.x)

Please give it a try and let me know if it works for you.

Regards,
/kksou
 
  The administrator has disabled public write access.
#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 5 Months 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 5 Months 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: 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  
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 5 Months 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.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

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