I know, everybody hates ads. But you dislike to pay for something too. I would like to give everything for free, but it's impossible because costs are too much. If you know how Google ads work, you know how to help. It's on you. I can detect income by country, so... Australia rocks now! Thanks

e_rss.php How to display Images


Jimako » 1 year ago

Is there a way to display images? For example, I am working on a Awards plugin, I would like to display the award on the rss feed, is that possible? I haven't really missed with any RSS feeds before.


JMadmin

Jimako
Main Admin
JMadmin

Jimako » 1 year ago

This answer is for LaocheXe:

- rss output can have images. You can see example on e107.org:  https://e107.org/xml/news/rss/

- to see how to do it - open e_rss.php in news plugin and find

$rss[$i]['media'] = $this->getMedia($value);

At the same file find fuction getMedia(). The News are specifics - they have one database field for multiple images separated by comma. If you have just single image, you doesn't need explode and foreach functionality.


JMadmin

Jimako
Main Admin
JMadmin

Moderator(s): Jimako