웹마스터 팁
[정식 버전 1.0.0] 회원 정보에서 ID 변경하기(1) 모듈부분
2008.02.27 01:47
아래의 링크를 먼저 읽어 보세요
http://www.zeroboard.com/16541438
1. zbxe/moudles/member/member.controller.phpline 735 을 삽입한다.
// 필수 정보들을 미리 추출
$args = Context::gets('user_id','user_name','nick_name','homepage','blog','birthday','email_address','allow_mailing', 'allow_message', 'allow_email','allow_blog','allow_homepage','allow_birthday');2. zbxe/moudles/member/queries/updateMember.xml
line 5 을 삽입한다
<columns>
<column name="user_id" var="user_id" filter="userid" notnull="notnull" />
<column name="email_address" var="email_address" filter="email" notnull="notnull" />
<column name="password" var="password" notnull="notnull" />
<column name="email_id" var="email_id" notnull="notnull" />
<column name="email_host" var="email_host" notnull="notnull" />3. zbxe/moudles/member/member.class.php
line 57 을 삽입한다
// 기본 정보를 세팅
$args->enable_join = '+ '+ 'Y';
if(!$args->enable_openid) $args->enable_openid = 'N'+ ';
if(!$args->user_id_policy) $args->user_id_policy = 'Y';
if(!$args->user_name_policy) $args->user_name_policy = 'Y';
if(!$args->nick_name_policy) $args->nick_name_policy = 'Y';
if(!$args->image_name) $args->image_name = 'Y';4. zbxe/moudles/member/member.admin.controller.php
line 81 을 삽입한다
/**
* @brief 회원 관리용 기본 정보의 추가
**/
function procMemberAdminInsertConfig() {
// 기본 정보를 받음
$args = Context::gets('webmaster_name','webmaster_email','skin','colorset','enable_openid','enable_join','limit_day','after_login_url', 'after_logout_url','redirect_url','agreement','profile_image','profile_image_max_width','profile_image_max_height', 'image_name','image_mark', 'image_name_max_width', 'image_name_max_height','image_mark_max_width', 'image_mark_max_height','signature_max_height','user_id_policy','user_name_policy','nick_name_policy');
if(!$args->skin) $args->skin = "default";
if(!$args->colorset) $args->colorset = "white";
if($args->enable_join!='Y') $args->enable_join = 'N';
if($args->user_id_policy!='Y') $args->user_id_policy = 'N';
if($args->user_name_policy!='Y') $args->user_name_policy = 'N';
if($args->nick_name_policy!='Y') $args->nick_name_policy = 'N';
if($args->enable_openid!='Y') $args->enable_openid= 'N';5. zbxe/moudles/member/tpl/member_config.html
line 31 을 삽입한다.
<tr>
<th scope="row">{$lang->enable_join}</th>
<td>
<input type="checkbox" name="enable_join" value="Y" <!--@if($config->enable_join=='Y')-->checked="checked"<!--@end--> class="checkbox" />
{$lang->about_enable_join}
</td>
</tr>
<tr>
<th scope="row">{$lang->member_info_modify_policy}</th>
<td>
<input type="checkbox" name="user_id_policy" value="Y" <!--@if($config->user_id_policy=='Y')-->checked="checked"<!--@end--> class="checkbox" / >{$lang->user_id_policy}
<input type="checkbox" name="user_name_policy" value="Y" <!--@if($config->user_name_policy=='Y')-->checked="checked"<!--@end--> class="checkbox" / >{$lang->user_name_policy}
<input type="checkbox" name="nick_name_policy" value="Y" <!--@if($config->nick_name_policy=='Y')-->checked="checked"<!--@end--> class="checkbox" / >{$lang->nick_name_policy }
<p>{$lang->about_member_info_modify_policy }</ p>
</td>
</tr>6. zbxe/moudles/member/lang/ko.lang.php
line 45 부근에 소스를 삽입한다.
$lang->signature_max_height = '서명 높이 제한';
$lang->enable_openid = 'OpenID 지원';
$lang->enable_join = '회원 가입 허가';
$lang->user_id_policy = 'ID 변경 허용';
$lang->user_name_policy = '이름 변경 허용';
$lang->nick_name_policy = '닉네임 변경 허용';
$lang->member_info_modify_policy = '회원정보 변경 정책';
$lang->about_member_info_modify_policy = '체크를 하시면 회원 정보 수정에서 체크하신 정보 변경이 가능합니다.';
$lang->about_member_info_modify_policy = '회원정보 변경 정책';잘못 표기되어 수정 했습니다.$lang->member_info_modify_policy = '회원정보 변경 정책';