Location: PHPKode > projects > BNews Multiple Site News System > bNews/Docs/view.txt
================= Using View.php.. 

view.php can be manipulated outside of its home!

Here is an example:
<?
$setup = 'bnews/setup.inc.php'; // specifies the location of setup.inc.php relative to the current file
$sid = '1'; // specifies the site id
$amnt = '7'; // specifies the amount of news to display
$amnt_type = 'days'; // specifies the unit for $amnt: can be 'days' or 'posts'
$dateform = 'm/d/y'; // specifies time/date forms for use in the template parser. more on this later
$timeform = 'g:i A';
$dateform2 = 'l, F d, Y'; // this variable is for the <tag:date /> in the <date></date> tagset
$outside_control = 'on'; // tells view.php to listen to outside control
include('bnews/view.php');
?>

Or you can edit the settings in view.php

================= Timeform/Dateform

These forms are specified in http://www.php.net/manual/en/function.date.php

$dateform2 is used to describe the form of the date in <tag:date /> when it is in the <date></date> tagset
$dateform is used to describe the form of the date in <tag:date /> when it is in the <category:></category:> tagset
$timeform is used to describe the form of the date/time in <tag:time /> when it is in the <category:></category:> tagset
Return current item: BNews Multiple Site News System