• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Gesior] Go by Feed RSS 2.0

phil1p

beep beep im a jeep
Joined
Oct 29, 2009
Messages
77
Reaction score
0
Possible to make latest news in gesior go by the rss feed of a blog?

Like the softcores etc,



Thanks in advance, Philip.
 
test this, workes for TFS-CMS

PHP:
<?php
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * TFSCMS - The Forgotten Server Content Management System
 * * * * * * * * * * * * * * * * ' * * * * * * * * * * * * * * * * *
 * Copyright (c) Mark Samman 2008 - 2009 <[email protected]>
 * All Rights Reserved.
 * This file may not be redistributed in whole or significant part.
 * http://otland.net
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

require_once('includes/global.php');
$userInterface = new UserInterface('News');
$userInterface->display();
echo nl2br(file_get_contents('news.txt'));

$limit = 4;

require('lib/rss_fetch.inc');
$rss = fetch_rss('http://otland.net/blogs/twifysoft/feed/');
foreach ($rss->items as $entry) {
	echo '<h3>' . $entry['pubdate'] . ' - <a href="' . $entry['link'] . '">' . htmlspecialchars($entry['title'], ENT_QUOTES) . '</a></h3>' . $entry['content']['encoded'];

	$limit--;
	if ($limit == 0)
		break;

	echo '<hr />';
}
?>

and then the text file.

Code:
<span style="font-size: 12pt; font-weight: 700">Welcome to 'youre servername'</span>
<span class="bold">ANOTHER TEXT</span>:
 
Back
Top