superfeedr / subtome

A universal Subscribe/Follow button.
http://subtome.com
MIT License
167 stars 32 forks source link

Change behavior of RSS links in WP widget #66

Closed julien51 closed 10 years ago

julien51 commented 10 years ago

Somebody suggested that the plugin actually rewrites any RSS link on a WP install to trigger the SubToMe modal. This way, wp bloggers don't even have to change the layout of their blogs when using SubToMe.

That's a neat idea. Not sure how doable that is. What do you think @pfefferle ?

pfefferle commented 10 years ago

Hmmm... It is possible to do so, but it might be a risk. We have to choose the "Agents" that should be redirected very carefully, because if not, the rss-readers will be redirected too...

What about an XSL style-sheet that adds the JavaScript directly to the feed?

julien51 commented 10 years ago

XSL could work indeed, but I was not thinking about that, I was thinking about the RSS link itself. everytime there is we just add onlick="...". This seems less prone to problems, but I'm not sure if that's doable?

pfefferle commented 10 years ago

Ah, replacing the HTML links instead of redirecting the whole feed-url... I will have a look at the code if there are any hooks for that...

pfefferle commented 10 years ago

There are some functions that will return different feed-links, but it seems that they are not used very often...

julien51 commented 10 years ago

I checked the source code and it looks like the feed links are not generated using a short code, so I think it will be very hard to include a onclick event.

As a result, I'm closing this for now.