Closed julien51 closed 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?
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?
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...
There are some functions that will return different feed-links, but it seems that they are not used very often...
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.
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 ?