git-svn-id: http://xe-core.googlecode.com/svn/trunk@750 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-29 02:28:36 +00:00
parent 3ffcefd6fb
commit f7a361bd10
12 changed files with 65 additions and 24 deletions

View file

@ -9,5 +9,10 @@
* addOn은 화면을 출력하는 바로 단계에서 요청이 올때 작동하도록 한다.
**/
debugPrint(Context::get('content'));
// 출력 되기 바로 직전이 아니라면 모두 무시
if($called_position != "beofre_dispay_content") return;
// 출력문서중에서 <div class="member_번호">content</div>를 찾아서 변경
$oMemberController = &getController('member');
$output = preg_replace_callback('!<div([^\>]*)member_([0-9]*)([^\>]*)>(.*?)\<\/div\>!is', array($oMemberController, 'transImageName'), $output);
?>

View file

@ -10,8 +10,8 @@
* 별도의 interface가 필요한 것이 아니고 모듈의 일부라고 판단하여 코드를 작성하면 된다.
**/
// addon_position이 before일때만 실행
if($addon_position != 'after_module_proc') return;
// called_position이 before일때만 실행
if($called_position != 'after_module_proc') return;
// 이 애드온이 동작할 대상 (이 부분은 특별히 정해진 규약이 없다)
$effecived_target = array(

View file

@ -10,8 +10,8 @@
* 별도의 interface가 필요한 것이 아니고 모듈의 일부라고 판단하여 코드를 작성하면 된다.
**/
// point가 before일때만 실행
if($this->point != 'before_module_proc') return;
// called_position가 before일때만 실행
if($this->called_position != 'before_module_proc') return;
// 이 애드온이 동작할 대상 (이 부분은 특별히 정해진 규약이 없다)
$effecived_target = array(