5
Thank You very much zyspec for your input but that did not do the trick.
The error returned is exactly the same, wierd insn´t it?
I´ll paste here the block´s code ( blocks/xpress_sidebar_block.php), just in case:
<?php
if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
eval( '
function b_'.$mydirname.'_sidebar_show($options){
return _b_sidebar_show($options) ;
}
function b_'.$mydirname.'_sidebar_edit($options){
return _b_sidebar_edit($options) ;
}
' ) ;
if( ! defined( 'XPRESS_SIDEBAR_BLOCK_INCLUDED' ) ) {
define( 'XPRESS_SIDEBAR_BLOCK_INCLUDED' , 1 ) ;
function _b_sidebar_show($options)
{
$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
$page_disp = empty( $options[1] ) ? false : true ;
$link_disp = empty( $options[2] ) ? false : true ;
$cats_disp = empty( $options[3] ) ? false : true ;
$meta_disp = empty( $options[4] ) ? false : true ;
$arch_disp = empty( $options[5] ) ? false : true ;
$this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_block_sidebar.html' : trim( $options[6] );
$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
$this_url = '/modules/'. $mydirname;
$call_url = $_SERVER['REQUEST_URI'];
$side_bar_dir = $mydirpath . '/templates/wordpress/sidebar.php';
if (strstr($call_url,$this_url)){
ob_start();
include ($side_bar_dir);
$block['content'] ='<!-- xpress_sidebar direct load -->' . "n" ;
$block['content'] .=ob_get_contents();
ob_end_clean();
} else {
require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');
$para ="";
$block['content'] = fetch_block($mydirname,'sidebar_block',$para);
}
$patterns[0]= '/<h2/';
$patterns[1] = '/</h2>/';
$replacements[0] = '<p';
$replacements[1] = '</p>';
$preg = $block['content'];
$preg = preg_replace($patterns,$replacements,$preg);
$block['content'] =$preg;
return $block ;
}
function _b_sidebar_edit($options)
{
$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
$page_disp = empty( $options[1] ) ? false : true ;
$link_disp = empty( $options[2] ) ? false : true ;
$cats_disp = empty( $options[3] ) ? false : true ;
$meta_disp = empty( $options[4] ) ? false : true ;
$arch_disp = empty( $options[5] ) ? false : true ;
$this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_block_sidebar.html' : trim( $options[6] );
$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');
$form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />";
$form .= "<br />" . yes_no_radio_option('options[1]', _MB_XPRESS_EDIT_PAGES , $page_disp);
$form .= "<br />" . yes_no_radio_option('options[2]', _MB_XPRESS_EDIT_LINKS , $link_disp);
$form .= "<br />" . yes_no_radio_option('options[3]', _MB_XPRESS_EDIT_CATS , $cats_disp);
$form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_EDIT_META , $meta_disp);
$form .= "<br />"._MB_XPRESS_EDIT_ARCHIVES . " : <input type="radio" name="options[5]" value=""";
if (empty($options[5])) $form .= " checked="checked"";
$form .= " />"._NO."; <input type="radio" name="options[5]" value="daily"";
if ($options[5] == "daily") $form .= " checked="checked"";
$form .= " />"._MB_XPRESS_ARCHIVES_DAILY ."; <input type="radio" name="options[5]" value="weekly"";
if ($options[5] == "weekly") $form .= " checked="checked"";
$form .= " />"._MB_XPRESS_ARCHIVES_WEEKLY ."; <input type="radio" name="options[5]" value="monthly"";
if ($options[5] == "monthly") $form .= " checked="checked"";
$form .= " />"._MB_XPRESS_ARCHIVES_MONTHLY ."; <input type="radio" name="options[5]" value="postbypost"";
if ($options[5] == "postbypost") $form .= " checked="checked"";
$form .= " />"._MB_XPRESS_ARCHIVES_POSTLY ;
// $form .="<br /><input type='text' size='60' name='options[6]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />";
return $form;
}
}
?>
BTW > do you use this module?
The XOOPS search works for you?
Thank you