はじめまして、toycheeといいます。(日本語ですみません)
D3モジュール化しにくい(正確には技量がない)システムを複製対応XOOPSモジュールにしたいのですが、
altsys のテンプレート管理でD3モジュール以外の方法で複製モジュールを作成したときにもオリジナルファイルを表示できるように、
tpls_functions.phpの
function tplsadmin_get_basefilepath()の
} else if( ! file_exists( $basefilepath ) && file_exists( XOOPS_ROOT_PATH.'/modules/'.$dirname.'/mytrustdirname.php' ) ) {
// D3 module base
include XOOPS_ROOT_PATH.'/modules/'.$dirname.'/mytrustdirname.php' ;
if( ! empty( $mytrustdirname ) ) {
$mid_path = $mytrustdirname == 'altsys' ? '/libs/' : '/modules/' ;
$path = XOOPS_TRUST_PATH.$mid_path.$mytrustdirname.'/templates/'.($type=='block'?'blocks/':'').substr( $tpl_file , strlen( $dirname ) + 1 ) ;
}
}
の部分にもうひとつの選択肢を加え
} else if( ! file_exists( $basefilepath ) ) {
if (file_exists( XOOPS_ROOT_PATH.'/modules/'.$dirname.'/mytrustdirname.php' ) ) {
// D3 module base
include XOOPS_ROOT_PATH.'/modules/'.$dirname.'/mytrustdirname.php' ;
if( ! empty( $mytrustdirname ) ) {
$mid_path = $mytrustdirname == 'altsys' ? '/libs/' : '/modules/' ;
$path = XOOPS_TRUST_PATH.$mid_path.$mytrustdirname.'/templates/'.($type=='block'?'blocks/':'').substr( $tpl_file , strlen( $dirname ) + 1 ) ;
}
} else {
// for other duplication module
$path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates/'.($type=='block'?'blocks/':'').substr( $tpl_file , strlen( $dirname ) + 1 ) ;
}
}
とかにしていただけると、ものすごく助かります。
勝手なお願いですが、特に支障がなければ、宜しくお願いいたします。