mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-02-01 01:29:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@783 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
73c0f6457b
commit
c38a0f2cb4
2 changed files with 29 additions and 0 deletions
11
addons/message/conf/info.xml
Normal file
11
addons/message/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>
|
||||||
18
addons/message/image_name.addon.php
Normal file
18
addons/message/image_name.addon.php
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
if(!__ZBXE__) exit();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file image_name.addon.php
|
||||||
|
* @author zero (zero@nzeo.com)
|
||||||
|
* @brief 사용자의 이름을 이미지로 바꾸거나 닉 아이콘을 추가하는 애드온
|
||||||
|
*
|
||||||
|
* 이 addOn은 화면을 출력하는 바로 앞 단계에서 요청이 올때 작동하도록 한다.
|
||||||
|
**/
|
||||||
|
|
||||||
|
// 출력 되기 바로 직전이 아니라면 모두 무시
|
||||||
|
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);
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue