웹마스터 팁
[정식 버전 1.0.0][완결편]회원가입시 기본 정보공개 여부 체크하기(2) 스킨부분
2008.02.24 15:49
적용하시기전에 아래의 링크를 반드시 참고 하세요.
http://www.zeroboard.com/16531452
1. zbxe/moudles/member/skins/deafult/filter/sinup.xmlline 20 아래에 다음의 소스를 삽입한다.
<param name="allow_email" target="allow_email" />
<param name="allow_blog" target="allow_blog" />
<param name="allow_homepage" target="allow_homepage" />
<param name="allow_birthday" target="allow_birthday" />2. zbxe/moudles/member/skins/deafult/filter/modify_info.xml
line 15 아래에 다음의 소스를 삽입한다.
<param name="allow_email" target="allow_email" />
<param name="allow_blog" target="allow_blog" />
<param name="allow_homepage" target="allow_homepage" />
<param name="allow_birthday" target="allow_birthday" />3. zbxe/moudles/member/skins/deafult/sinup_form.html
line line56 부근에 부분을 삽입한다.(추가된 부분 : 붉은 색의 코드를 추가한다)
<tr>
<th scope="row">{$lang->email_address} *</th>
<td>
<input type="text" name="email_address" value="" />
<!--@if($member_config->email_policy!='N')-->
<input type="hidden" name="allow_email" value="Y" checked="checked" />
<!--@else-->
<input type="checkbox" name="allow_email" value="Y" checked="checked" />{$lang->public}
<!--@end-->
<p>{$lang->about_email_address}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->homepage}</th>
<td>
<input type="text" name="homepage" value="" />
<!--@if($member_config->homepage_policy!='N')-->
<input type="hidden" name="allow_homepage" value="Y" checked="checked" />
<!--@else-->
<input type="checkbox" name="allow_homepage" value="Y" checked="checked" />{$lang->public}
<!--@end-->
<p>{$lang->about_homepage}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->blog}</th>
<td>
<input type="text" name="blog" value="" />
<!--@if($member_config->blog_policy!='N')-->
<input type="hidden" name="allow_blog" value="Y" checked="checked" />
<!--@else-->
<input type="checkbox" name="allow_blog" value="Y" checked="checked" />{$lang->public}
<!--@end-->
<p>{$lang->about_blog_url}</p>
</td>
</tr>
<tr>
<th scope="row">{$lang->birthday}</th>
<td>
<input type="hidden" name="birthday" id="date_birthday" value="" />
<div class="str_birthday" id="str_birthday" onclick="open_calendar('birthday','');return false;"> </div>
<a href="#" onclick="open_calendar('birthday','');return false;" class="button"><span>{$lang->cmd_open_calendar}</span></a>
<!--@if($member_config->birthday_policy!='N')-->
<input type="hidden" name="allow_birthday" value="Y" checked="checked" />
<!--@else-->
<input type="checkbox" name="allow_birthday" value="Y" checked="checked" />{$lang->public}
<!--@end-->
<p>{$lang->about_birthday}</p>
</td>
</tr>
4. zbxe/moudles/member/skins/deafult/modify_info.html
line44 부근에 부분을 삽입한다.(추가된 부분 : 붉은 색의 코드를 추가한다)
<tr>
<th scope="row">{$lang->email_address}</th>
<td><input type="text" name="email_address" value="{htmlspecialchars($member_info->email_address)}" />
<!--@if($member_config->email_policy!='N')-->
<input type="hidden" name="allow_email" value="Y" class="checkbox" <!--@if($member_info->allow_email!='N')-->checked="checked"<!--@end--> />
<!--@else-->
<input type="checkbox" name="allow_email" value="Y" class="checkbox" <!--@if($member_info->allow_email!='N')-->checked="checked"<!--@end--> />{$lang->public}
<!--@end--><p>{$lang->about_email_address}</p></td>
</tr>
line 109 부근에 부분을 삽입한다.(추가된 부분 : 붉은 색의 코드를 추가한다)
<tr>
<th scope="row">{$lang->homepage}</th>
<td><input type="text" name="homepage" value="{htmlspecialchars($member_info->homepage)}" />
<!--@if($member_config->homepage_policy!='N')-->
<input type="hidden" name="allow_homepage" value="Y" class="checkbox" <!--@if($member_info->allow_homepage!='N')-->checked="checked"<!--@end--> />
<!--@else-->
<input type="checkbox" name="allow_homepage" value="Y"class="checkbox" <!--@if($member_info->allow_homepage!='N')-->checked="checked"<!--@end--> />{$lang->public}<!--@end--> <p>{$lang->about_homepage}</p></td>
</tr>
<tr>
<th scope="row">{$lang->blog}</th>
<td><input type="text" name="blog" value="{htmlspecialchars($member_info->blog)}" />
<!--@if($member_config->blog_policy!='N')-->
<input type="hidden" name="allow_blog" value="Y" class="checkbox" <!--@if($member_info->allow_blog!='N')-->checked="checked"<!--@end--> />
<!--@else-->
<input type="checkbox" name="allow_blog" value="Y" class="checkbox" <!--@if($member_info->allow_blog!='N')-->checked="checked"<!--@end--> />{$lang->public}<!--@end--><p>{$lang->about_blog_url}</p></td>
</tr>
<tr>
<th scope="row">{$lang->birthday}</th>
<td>
<input type="hidden" name="birthday" id="date_birthday" value="{$member_info->birthday}" />
<div class="str_birthday" id="str_birthday" onclick="open_calendar('birthday','');return false;">{zdate($member_info->birthday,"Y-m-d")}</div>
<a href="#" onclick="open_calendar('birthday','{$member_info->birthday}');return false;" class="button"><span>{$lang->cmd_open_calendar}</span></a>
<!--@if($member_config->birthday_policy!='N')-->
<input type="hidden" name="allow_birthday" value="Y" class="checkbox"<!--@if($member_info->allow_birthday!='N')-->checked="checked"<!--@end--> />
<!--@else-->
<input type="checkbox" name="allow_birthday" value="Y" class="checkbox" <!--@if($member_info->allow_birthday!='N')-->checked="checked"<!--@end--> />{$lang->public}<!--@end-->
<p>{$lang->about_birthday}</p>
</td>
</tr>5. zbxe/moudles/member/skins/deafult/member_info.html
line 43 부근에 부분을 삽입한다. (추가된 부분 : 붉은 색의 코드를 추가한다)
<!--@if($member_info->allow_homepage!='N' || $member_srl == $logged_info->member_srl || $logged_info->is_admin == 'Y' || $member_config->homepage_policy!='N')-->
<tr>
<th scope="row">{$lang->homepage}</th>
<td><!--@if($member_info->homepage)--><a href="{htmlspecialchars($member_info->homepage)}" onclick="window.open(this.href); return false;">{htmlspecialchars($member_info->homepage)}</a><!--@else--> <!--@end--></td>
</tr>
<!--@end-->
<!--@if($member_info->allow_blog!='N' || $member_srl == $logged_info->member_srl || $logged_info->is_admin == 'Y' || $member_config->blog_policy!='N')-->
<tr>
<th scope="row">{$lang->blog}</th>
<td><!--@if($member_info->blog)--><a href="{htmlspecialchars($member_info->blog)}" onclick="window.open(this.href); return false;">{htmlspecialchars($member_info->blog)}</a><!--@else--> <!--@end--></td>
</tr>
<!--@end-->
<!--@if($member_info->allow_birthday!='N' || $member_srl == $logged_info->member_srl || $logged_info->is_admin == 'Y' || $member_config->birthday_policy!='N')-->
<tr>
<th scope="row">{$lang->birthday}</th>
<td><!--@if($member_info->birthday)-->{zdate($member_info->birthday,"Y-m-d")}<!--@else--> <!--@end--></td>
</tr>
<!--@end-->