Location: PHPKode > projects > MyNews > mynews/docs/usage.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>MyNews Usage</title>
<style type="text/css">
<!--
.style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
-->
</style>
</head>

<body>
<h1 class="style1">MyNews Usage</h1>
<p class="style1">To include news on any page copy and paste the following code.</p>
<table width="550" border="0" cellpadding="3" cellspacing="0" bgcolor="E0E0E0">
  <tr>
    <td class="style1"><p>&lt;?php</p>
    <p>include(&quot;news.php&quot;);</p>
    <p>news();</p>
    <p>?&gt;</p></td>
  </tr>
</table>
<p class="style1">Remember, the include must be the full path to the location of the news.php file located in the mynews directory. So if your going to add news a page outside of the directory. the code would look like this.</p>
<table width="550" border="0" cellpadding="3" cellspacing="0" bgcolor="E0E0E0">
  <tr>
    <td class="style1"><p>&lt;?php</p>
    <p>include(&quot;mynews/news.php&quot;);</p>
    <p>news();</p>
    <p>?&gt;</p></td>
  </tr>
</table>
<h3 class="style1">&nbsp;</h3>
<h3 class="style1">News Active  </h3>
<p class="style1">News active is a feature which prevents new news from being displayed right away. This gives the admin or a mod a chance to view the news and see if any changes need to be made. Only a user part of the admin or mod group has the access to make news active. </p>
<p class="style1"><img src="active.gif" width="750" height="199" /></p>
<p class="style1">To make the news active you have select edit on the news article.</p>
<p class="style1"><img src="active2.gif" width="504" height="434" /></p>
<p class="style1">&nbsp;</p>
<p class="style1">&nbsp;  </p>
<p class="style1">&nbsp; </p>
</body>
</html>
Return current item: MyNews