This is really frustrating. I have 3 external scripts that I need implemented into WB via the template. What I did is create a new a page under pages/ directory. Added the scripts through the pages/ directory as well. Then I implemented by creating a new page manually...this is what I did
<?php
require("../config.php");
require(WB_PATH."/index.php");
?>
TEMPLATE CODE HERE (templates/mytemplate/index.php) full source code, no include
Then in the content, I'd add the code such as
<?php sfpg(); ?>
or
<?php
if ( !defined ('FNEWS_ROOT_PATH') )
{
define ('FNEWS_ROOT_PATH', str_replace ('\\', '/', dirname (__FILE__)) . '/');
include_once FNEWS_ROOT_PATH . 'common.php';
}
$id = ( isset ($VARS['fn_id']) ) ? intval ($VARS['fn_id']) : 0;
if ( !file_exists (FNEWS_ROOT_PATH . 'news/news.' . $id . '.php') )
{
echo $flns0;
}
else
{
$file = file( FNEWS_ROOT_PATH.'news/news.'.$id.'.php' );
$news_info = parse_news_to_view ($file[1]);
$temp_full = get_template ('fullnews_temp.php', true);
$temp_full = str_replace ('{post_id}', $news_info['post_id'], $temp_full);
$temp_full = str_replace ('{subject}', $news_info['subject'], $temp_full);
$temp_full = str_replace ('{description}', $news_info['description'], $temp_full);
$temp_full = str_replace ('{user}', $news_info['writer'], $temp_full);
$temp_full = str_replace ('{date}', $news_info['date'], $temp_full);
$temp_full = str_replace ('{icon}', $news_info['icon'], $temp_full);
$temp_full = str_replace ('{send}', $news_info['link_tell_friend'], $temp_full);
$temp_full = str_replace ('{nrc}', $news_info['nrc'], $temp_full);
$temp_full = str_replace ('{comments}', $news_info['link_comments'], $temp_full);
$temp_full = str_replace ('{cat_icon}', $news_info['cat_icon'], $temp_full);
$temp_full = str_replace ('{cat_id}', $news_info['cat_id'], $temp_full);
$temp_full = str_replace ('{cat_name}', $news_info['cat_name'], $temp_full);
$temp_full = str_replace ('{shortnews}', $news_info['news'], $temp_full);
$temp_full = str_replace ('{fullnews}', $news_info['fullnews'], $temp_full);
echo $temp_full;
}
?>
^^ That is the fusion news script to display full news.
When I open the pages, the template shows just the template and no PHP script...this is really frustrating. Also, the CODE Module is practically useless.