mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@748 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3392e842f5
commit
d48bd45e60
5 changed files with 29 additions and 5 deletions
11
addons/image_name/conf/info.xml
Normal file
11
addons/image_name/conf/info.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<addon version="0.1">
|
||||
<title xml:lang="ko">이미지 이름 애드온</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">
|
||||
사용자의 이름을 이미지로 대체하거나 마크이미지를 나타내는 애드온
|
||||
회원 관리에서 이미지이름이나 마크이미지를 설정하여야 한다.
|
||||
</description>
|
||||
</author>
|
||||
</addon>
|
||||
13
addons/image_name/spamfilter.addon.php
Normal file
13
addons/image_name/spamfilter.addon.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
if(!__ZBXE__) exit();
|
||||
|
||||
/**
|
||||
* @file image_name.addon.php
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 사용자의 이름을 이미지로 바꾸거나 닉 아이콘을 추가하는 애드온
|
||||
*
|
||||
* 이 addOn은 화면을 출력하는 바로 앞 단계에서 요청이 올때 작동하도록 한다.
|
||||
**/
|
||||
|
||||
debugPrint(Context::get('content'));
|
||||
?>
|
||||
|
|
@ -10,8 +10,8 @@
|
|||
* 즉 별도의 interface가 필요한 것이 아니고 모듈의 일부라고 판단하여 코드를 작성하면 된다.
|
||||
**/
|
||||
|
||||
// point가 before일때만 실행
|
||||
if($this->point != 'after') return;
|
||||
// addon_position이 before일때만 실행
|
||||
if($addon_position != 'after_module_proc') return;
|
||||
|
||||
// 이 애드온이 동작할 대상 (이 부분은 특별히 정해진 규약이 없다)
|
||||
$effecived_target = array(
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
*/
|
||||
|
||||
// 한번이라도 요청이 되었다면 패스
|
||||
if($this->rainbow_link_is_called) return;
|
||||
$this->rainbow_link_is_called = true;
|
||||
if($GLOBALS['_rainbow_link_is_called']) return;
|
||||
$GLOBALS['_rainbow_link_is_called'] = true;
|
||||
|
||||
// 현재 애드온의 위치를 구함
|
||||
$oAddOnModel = &getModel('addon');
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
**/
|
||||
|
||||
// point가 before일때만 실행
|
||||
if($this->point != 'before') return;
|
||||
if($this->point != 'before_module_proc') return;
|
||||
|
||||
// 이 애드온이 동작할 대상 (이 부분은 특별히 정해진 규약이 없다)
|
||||
$effecived_target = array(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue