Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add widget rssread #25

Open
Fraenkiman opened this issue Jan 1, 2025 · 0 comments
Open

add widget rssread #25

Fraenkiman opened this issue Jan 1, 2025 · 0 comments

Comments

@Fraenkiman
Copy link
Collaborator

Fraenkiman commented Jan 1, 2025

Suggestion from @lludvik in #507

example: https://solarcz.eu/programy/php_kody/rssread.php?rss=http://feeds.bbci.co.uk/news/england/rss.xml
source code for rssread.php

<?php
$rss = $_GET['rss'];
$rss = simplexml_load_file($rss);
echo '<h1>'. $rss->channel->title . '</h1>';

foreach ($rss->channel->item as $item) {
   echo '<h2><a href="'. $item->link .'">' . $item->title . "</a></h2>";
   echo "<p>" . $item->pubDate . "</p>";
   echo "<p>" . $item->description . "</p>";
} 
?>

I would be happy for a plugin,would it be possible to enter the RSS feed address in the plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant