MyBB Community Forums

Full Version: Convert index.php to index.html
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Who know to convert this file index.php to index.html?

From my site: http://kacuk-ro.com/index.php and i wan use on this link http://patch.kacuk-ro.com/index.html or any another solution?
Quote:<?php if (!defined('FLUX_ROOT')) exit; ?>
<?php
/*
Anda boleh menghidupkan atau mematikan rss feed di sini.
Bagus jika anda ingin memaparkan berita terbaru pada
muka hadapan control panel.

Sebagai contoh, paparkan Updates dan Events terbaru
daripada Forum.

Dibawah ialah contoh feed diambil daripada thestar.
*/
$rssfeed = true; /* turn rss feed true or false*/
$rssfeedtitle1 = "News & Updates"; /* Tajuk bagi rss feed pertama*/
$rssfeedurl1 = "http://kacuk-ro.com/forum/syndication.php?fid=75&limit=15"; /* rss feed url #1 */
$rssfeedcaturl1 = "http://kacuk-ro.com/forum/forumdisplay.php?fid=75"; /* url untuk category feed 1 */
$rssfeedtitle2 = "Events"; /* Tajuk bagi rss feed kedua*/
$rssfeedurl2 = "http://kacuk-ro.com/forum/syndication.php?fid=60&limit=15"; /* rss feed url #2 */
$rssfeedcaturl2 = "http://kacuk-ro.com/forum/forumdisplay.php?fid=60"; /* url untuk category feed 2 */
?>
<div align="left"><h3>Welcome to Kacuk Ragnarok Online</h3>

<b><blink><u>IMPORTANT!!</b></blink></u><br>
<b>KacukRO v1 Patch :</b> <a href="http://www.mediafire.com/?ofoy1hovb2pllv2">Download Here</a><br>
<b>KRO Latest Client :</b> <a href="http://games.on.net/file/30580/Ragnarok_Online_Client_v0923">Download Here</a><br>
<b>KRO Latest Renewal :</b> <a href="http://www.megaupload.com/?d=0RDTKTMZ">megaupload.com</a></b> or <a href="http://www.sendspace.com/file/bioa3k">sendspace.com</a>

<br><br>

<strong>INSTALLATION GUIDE FOR SMALL CLIENT INSTALLER.</strong><br>

<br><span class="orangetextpt11"><strong>KRO CLIENT INSTALLER</strong></span><br>

Download "<a href="http://games.on.net/file/30580/Ragnarok_Online_Client_v0923">RAG_SETUP 0923</a>" just first for newbie player of KacukRO.<br>

<br><span class="orangetextpt11"><strong>KRO RENEWAL CLIENT INSTALLER</strong></span><br>

Must download this client without error character "<a href="http://www.megaupload.com/?d=0RDTKTMZ">RAGRE_SETUP0923</a>"<br>

<br><span class="orangetextpt11"><strong>LATEST PATCH KACUK PATCH V.1</strong></span><br>

Download the latest pacth "<a href="http://www.mediafire.com/?ofoy1hovb2pllv2">KacukROpatch-v1 New patch</a>"<br>

<br><span class="orangetextpt11"><strong>SETUP</strong></span><br>

Install RAG_SETUP first, then RagRE_SETUP and last paste over the KacukRO files.<br>

Patch up by simply click on the Ragnarok.exe, RagnarokRE.exe and KacukRO.exe and let the patcher run itself, until it's completed.<br>

You can play KacukRO now.If you can't after following the guide, leave message at forum <a href="http://www.kacuk-ro.com/forum">KacukRO Forum</a></div>

<?php if ($rssfeed): ?>
<div id="rssfeed_box" style="height: 140px;">
<h3><?php echo htmlspecialchars($rssfeedtitle1) ?></h3>
<?php
require_once("rsslib.php");
echo RSS_Display($rssfeedurl1, 5, false, true);
?>
</div>
<div id="rssfeed_box" style="height: 140px;">
<h3><?php echo htmlspecialchars($rssfeedtitle2) ?></h3>
<?php
require_once("rsslib.php");
echo RSS_Display($rssfeedurl2, 5, false, true);
?>
</div>
<div id="rssfeed_box">
<span style="margin-top:50px;float:right; font-size: 75%; font-style: italic;"><a href="<?php echo htmlspecialchars($rssfeedcaturl1) ?>">More <?php echo htmlspecialchars($rssfeedtitle1) ?> ...</a></span>
</div>
<div id="rssfeed_box">
<span style="margin-top:50px;float:right; font-size: 75%; font-style: italic;"><a href="<?php echo htmlspecialchars($rssfeedcaturl2) ?>">More <?php echo htmlspecialchars($rssfeedtitle2) ?> ...</a></span>
</div>

<p style="text-align: right"><strong><em><?php echo htmlspecialchars(Flux::message('MainPageThanks')) ?></em></strong></p>

<?php endif ?>

-----
I just wan use RSS on index.html

[Image: rss.gif]

How to setup/edit this code?

Quote: $rssfeed = true; /* turn rss feed true or false*/
$rssfeedtitle1 = "News & Updates"; /* Tajuk bagi rss feed pertama*/
$rssfeedurl1 = "http://kacuk-ro.com/forum/syndication.php?fid=75&limit=15"; /* rss feed url #1 */
$rssfeedcaturl1 = "http://kacuk-ro.com/forum/forumdisplay.php?fid=75"; /* url untuk category feed 1 */
$rssfeedtitle2 = "Events"; /* Tajuk bagi rss feed kedua*/
$rssfeedurl2 = "http://kacuk-ro.com/forum/syndication.php?fid=60&limit=15"; /* rss feed url #2 */
$rssfeedcaturl2 = "http://kacuk-ro.com/forum/forumdisplay.php?fid=60"; /* url untuk category feed 2 */

Quote:<?php if ($rssfeed): ?>
<div id="rssfeed_box" style="height: 140px;">
<h3><?php echo htmlspecialchars($rssfeedtitle1) ?></h3>
<?php
require_once("rsslib.php");
echo RSS_Display($rssfeedurl1, 5, false, true);
?>
</div>
<div id="rssfeed_box" style="height: 140px;">
<h3><?php echo htmlspecialchars($rssfeedtitle2) ?></h3>
<?php
require_once("rsslib.php");
echo RSS_Display($rssfeedurl2, 5, false, true);
?>

Go to your root, find "htaccess.txt", rename to ".htaccess". Done.
(2011-06-19, 03:08 PM)Jason L. Wrote: [ -> ]Go to your root, find "htaccess.txt", rename to ".htaccess". Done.

For your info, i use 2 domain/cpanel..
1) http://kacuk-ro.com (Web for register ragnarok game online)
*Have .htaccess
2) http://patch.kacuk-ro.com (updater game patch file save here)
*Didn't have any htaccess.txt or .htaccess

Now i wan the same use this rss from http://kacuk-ro.com on to http://patch.kacuk-ro.com
http://kacuk-ro.com/k-gif/rss.gif

How to make it works on http://patch.kacuk-ro.com




You cannot convert a php file that contains php functions into a .html file. It just won't work.
You can have html parse as php with an htaccess directive like addtype or addhandler depending on what version of php and apache you have.