4
k, i found out that b2evolution has the power to gen static pages out of the php pages ( visit www.cyber-cup.ro/blog/blog_a.html if ya don`t believe me ) and afterwards visit www.cyber-cup.ro/blog/ they are identical ( almost cause i did not update the html ) ... but anyway ...
the b2evolution has a script ( that i ripped it from the b2blogs.php file ) that takes the path of the php file from the MySQL database, takes the filename and all other thingies and using ob_get ( more on php.net ) and fsock generates a clean super html file ... that google indexes it like hell man ... i mean u will win top 3 in just MAXIMUM 2 weeks.
here is the source code of the script but i don`t know how to teleport it as a module for Xoops.
<?php
if ($user_level < 2)
{
die( T_('You have no right to generate static pages.') );
}
$staticfilename = get_bloginfo('staticfilename');
if( empty( $staticfilename ) )
{
echo '<p>', T_('You haven\'t set a static filename for this blog!'), "</p>\n</div>\n";
break;
}
// Determine the edit folder:
$edit_folder = get_path( 'base' ) .get_bloginfo('subdir');
$filename = $edit_folder.'/'.get_bloginfo('filename');
$staticfilename = $edit_folder.'/'.$staticfilename;
printf( T_('Generating page from <strong>%s</strong> to <strong>%s</strong>...'), $filename, $staticfilename );
echo "<br />\n";
flush();
ob_start();
require $filename;
$page = ob_get_contents();
ob_end_clean();
// Switching back to default locale (the blog page may have changed it):
locale_activate( $default_locale );
echo T_('Writing to file...'), '<br />', "\n";
$fp = fopen ( $staticfilename, "w");
fwrite($fp, $page);
fclose($fp);
echo T_('Done.'), '<br />', "\n";
?>
can u make it a module for XOOPS ??? plsss ... for google maniacs and other thingies like that it would make a great diference ...