k, what I have is the function that adds the main content of the pages on my site:function QWTIndexFormatBody( )
{
// Output the body
global $QW;
echo "<div class='hometop'>";
return QWFormatQwikiFile( $QW['pagePath'] );
echo "</div><div class='homeleft'>";
$list = QWGetRecentlyChangedQwikiPageNameList( );
$now = time( );
echo "<TABLE><TR><TD>Page Name:</TD><TD>Last Changed:</TD></TR>";
foreach( $list as $pageName )
{
// Get the path and timestamp
$path = QWCreateDataPath( $pageName, '.qwiki' );
$then = filemtime( $path );
$delta = QWFormatRelativeDate( $now, $then );
// Output the row
echo "<TR><TD>" . QWFormatQwikiPageName( $pageName ) . "</TD><TD>$delta</TD></TR>\n";
}
echo "</TABLE></div>";
}
the bare-bones part that adds the content are the lines "global $QW;" and "return QWFormatQwikiFile( $QW['pagePath'] );"
What I want to do is show the file that is being shown by those two lines, but add all the rest of the stuff to it. If I keep it the way it is it just acts like it's still the bare-bones stuff. How would I do it or is it even possible?erg, nevermind. Everything is working fine (with a few small tweaks) my ftp program was just being tweaky again so nothing was really getting changed on the server :dunce:
{
// Output the body
global $QW;
echo "<div class='hometop'>";
return QWFormatQwikiFile( $QW['pagePath'] );
echo "</div><div class='homeleft'>";
$list = QWGetRecentlyChangedQwikiPageNameList( );
$now = time( );
echo "<TABLE><TR><TD>Page Name:</TD><TD>Last Changed:</TD></TR>";
foreach( $list as $pageName )
{
// Get the path and timestamp
$path = QWCreateDataPath( $pageName, '.qwiki' );
$then = filemtime( $path );
$delta = QWFormatRelativeDate( $now, $then );
// Output the row
echo "<TR><TD>" . QWFormatQwikiPageName( $pageName ) . "</TD><TD>$delta</TD></TR>\n";
}
echo "</TABLE></div>";
}
the bare-bones part that adds the content are the lines "global $QW;" and "return QWFormatQwikiFile( $QW['pagePath'] );"
What I want to do is show the file that is being shown by those two lines, but add all the rest of the stuff to it. If I keep it the way it is it just acts like it's still the bare-bones stuff. How would I do it or is it even possible?erg, nevermind. Everything is working fine (with a few small tweaks) my ftp program was just being tweaky again so nothing was really getting changed on the server :dunce: