PEAK XOOPS - Altsys D3モジュール以外の複製モジュールにも愛の手を in englishin japanese

Altsys D3モジュール以外の複製モジュールにも愛の手を

List posts in the topic

none Altsys D3モジュール以外の複製モジュールにも愛の手を

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2007/10/25 9:36
toychee  二等兵   Posts: 4
はじめまして、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 ) ;
		}
	}
とかにしていただけると、ものすごく助かります。

勝手なお願いですが、特に支障がなければ、宜しくお願いいたします。
Votes:6 Average:5.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!