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/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
21 lines
1,004 B
PHP
21 lines
1,004 B
PHP
<?php
|
|
if(!defined("__ZBXE__")) exit();
|
|
|
|
/**
|
|
* @file image_name.addon.php
|
|
* @author NHN (developers@xpressengine.com)
|
|
* @brief Display user image name/image mark
|
|
*
|
|
* Find member_srl in the part with <div class="member_회원번호"> .... </div>
|
|
* Check if ther is image name and image mark. Then change it.
|
|
**/
|
|
|
|
/**
|
|
* Just before displaying, change image name/ image mark
|
|
**/
|
|
if($called_position != "before_display_content" || Context::get('act')=='dispPageAdminContentModify') return;
|
|
// Include a file having functions to replace member image name/mark
|
|
require_once('./addons/member_extra_info/member_extra_info.lib.php');
|
|
// 1. Find a part <div class="member_번호"> content </div> in the output document, change it to image name/mark by using MemberController::transImageName()
|
|
$output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9]+)([^\>]*)>(.*?)\<\/(div|span|a)\>!is', 'memberTransImageName', $output);
|
|
?>
|