Basicly all you must do is to delete the codes which command to create .php files and folders. And the link creation code must be like this for the pages:
<a href='.WB_URL.'/index.php?page_id='.$page['page_id'].' target="'.$page['target'].'">
And for the posts:
$post_link = WB_URL.'/index.php?page_id='.$page_id.'§ion_id='.$section_id.'&post_id='.$post_id;
Also other modules link codes can be converted like Image Gallery:
$image_link = WB_URL.'/index.php?page_id='.$page_id.'§ion_id='.$section_id.'&image_id='.$image_id;
My English and my time is not enough to write a tutorial; but I wrote a lot about this in the forum; you may search with "safe mode" tag to find that posts. The problem is that I've changed a lot of things and I've forgotten to log them.
This is an example for excluding file and folder creation codes in modules/news/save_post.php:
<?php
require('../../config.php');
// Get id
if(!isset($_POST['post_id']) OR !is_numeric($_POST['post_id'])) {
header("Location: ".ADMIN_URL."/pages/index.php");
exit(0);
} else {
$id = $_POST['post_id'];
$post_id = $id;
}
// Include WB admin wrapper script
$update_when_modified = true; // Tells script to update when this page was last updated
require(WB_PATH.'/modules/admin.php');
// Validate all fields
if($admin->get_post('title') == '' AND $admin->get_post('url') == '') {
$admin->print_error($MESSAGE['GENERIC']['FILL_IN_ALL'], WB_URL.'/modules/news/modify_post.php?page_id='.$page_id.'§ion_id='.$section_id.'&post_id='.$id);
} else {
$title = $admin->add_slashes($admin->get_post('title'));
$short = $admin->add_slashes($admin->get_post('short'));
$long = $admin->add_slashes($admin->get_post('long'));
$commenting = $admin->get_post('commenting');
$active = $admin->get_post('active');
$old_link = $admin->get_post('link');
$group_id = $admin->get_post('group');
}
// Get page link URL
$query_page = $database->query("SELECT level,link FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'");
$page = $query_page->fetchRow();
$page_level = $page['level'];
$page_link = $page['link'];
// Include WB functions file
require(WB_PATH.'/framework/functions.php');
// Work-out what the link should be
$post_link = WB_URL.'/index.php?page_id='.$page_id.'§ion_id='.$section_id.'&post_id='.$post_id;
/*
PHP SAFE MODE!!!
// Make sure the post link is set and exists
// Make news post access files dir
make_dir(WB_PATH.PAGES_DIRECTORY.'/posts/');
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/posts/')) {
$admin->print_error($MESSAGE['PAGES']['CANNOT_CREATE_ACCESS_FILE']);
} elseif($old_link != $post_link OR !file_exists(WB_PATH.PAGES_DIRECTORY.$post_link.'.php')) {
// We need to create a new file
// First, delete old file if it exists
if(file_exists(WB_PATH.$old_link.'.php')) {
unlink(WB_PATH.$old_link.'.php');
}
// Specify the filename
$filename = WB_PATH.PAGES_DIRECTORY.'/'.$post_link.'.php';
// The depth of the page directory in the directory hierarchy
// '/pages' is at depth 1
$pages_dir_depth=count(explode('/',PAGES_DIRECTORY))-1;
// Work-out how many ../'s we need to get to the index page
$index_location = '../';
for($i = 0; $i < $pages_dir_depth; $i++) {
$index_location .= '../';
}
// Write to the filename
$content = ''.
'<?php
$page_id = '.$page_id.';
$section_id = '.$section_id.';
$post_id = '.$post_id.';
define("POST_ID", $post_id);
require("'.$index_location.'config.php");
require(WB_PATH."/index.php");
?>';
$handle = fopen($filename, 'w');
fwrite($handle, $content);
fclose($handle);
change_mode($filename);
}
PHP SAFE MODE!!!
*/
// Update row
$database->query("UPDATE ".TABLE_PREFIX."mod_news_posts SET group_id = '$group_id', title = '$title', link = '$post_link', content_short = '$short', content_long = '$long', commenting = '$commenting', active = '$active', posted_when = '".mktime()."', posted_by = '".$admin->get_user_id()."' WHERE post_id = '$post_id'");
// Check if there is a db error, otherwise say successful
if($database->is_error()) {
$admin->print_error($database->get_error(), WB_URL.'/modules/news/modify_post.php?page_id='.$page_id.'§ion_id='.$section_id.'&post_id='.$id);
} else {
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
}
// Print admin footer
$admin->print_footer();
?>