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 #507

Open
lludvik opened this issue Dec 22, 2024 · 1 comment
Open

add widget rssread #507

lludvik opened this issue Dec 22, 2024 · 1 comment

Comments

@lludvik
Copy link

lludvik commented Dec 22, 2024

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>";
} 
?>
@Fraenkiman
Copy link
Collaborator

Hello @lludvik,

thanks for the suggestion and the source code. Would you like to create a plugin?

With best regards
Frank

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

2 participants