RadarURL

웹 프로그래밍
2007.10.02 15:54

제로보드에서 회원게시판 작성자 수정하기

조회 수 6607 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
이 팁은 회원으로 로그인 한 후 특정 게시판에서 작성자를 바꿀 수 있는 것인데요.
회원을 대상으로 한 고민&상담게시판에 적용하면 좋을 것 같습니다.
익명게시판을 쓸까 하다가 "누구님 기운내세요."처럼 호칭이 들어가는 문장을 쓸때 글쓴이 이름이 나타나지 않으면 곤란했기에 수정한 것입니다.


조기성님의 팁(코멘트에서 작성자 수정)을 참고했습니다.
http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&page=3&sn1=&divpage=1&sn=off&ss=on&sc=off&keyword=이름&select_arrange=headnum&desc=asc&no=4092


white_ok.php에서

// 회원등록이 되어 있을때 이름등을 가져옴;;
        if($member[no] ) {
                if($mode=="modify"&&$member[no]!=$s_data[ismember]) {
                        $name=$s_data[name];
                } else {
                        $name=$member[name];
                }
        }

을 아래처럼 바꿔주세요. (조기성님께서 쓰신 소스와 같습니다.)


// 회원등록이 되어 있을때 이름등을 가져옴;;
        if($member[no] && !$name) {
                if($mode=="modify"&&$member[no]!=$s_data[ismember]) {
                        $name=$s_data[name];
                } else {
                        $name=$member[name];
                }
        }



그리고 작성자를 수정가능하게 할 게시판스킨으로 가셔서

write.php 를 보시면

<?=$hide_start?>
이름
생략
홈페이지
<?=$hide_end?>

처럼 되어있습니다.

여기에서 <?=$hide_start?>를 이름 뒷부분으로 옮깁니다.
게시판스킨마다 소스가 다르니 위치를 잘 넣어주세요.


저는 siche~v 님의 스킨을 사용하고..
적용한 소스는 이렇습니다.



테이블 시작 생략
<tr>
        <td colspan=2 height=1 bgcolor=#cdcdcd></td>
</tr>
<tr>
        <td colspan=2 height=2></td>
</tr>
<tr>
        <td width=60 align=right><img src=<?=$dir?>/w_name.gif></td>
        <td width=420><input type=text name=name value="<?=$name?>" <?=size(20)?> maxlength=20 class=input></td>
</tr>
<?=$hide_start?>
<tr>
        <td align=right><img src=<?=$dir?>/w_pw.gif></td>
        <td><input type=password name=password <?=size(20)?> maxlength=20 class=input></td>
</tr>
<tr>
        <td align=right><img src=<?=$dir?>/w_mail.gif></td>
        <td><input type=text name=email value="<?=$email?>" <?=size(40)?> maxlength=200 class=input2></td>
</tr>
<tr>
        <td align=right><img src=<?=$dir?>/w_homepage.gif></td>
        <td><input type=text name=homepage value="<?=$homepage?>" <?=size(40)?> maxlength=200 class=input2></td>
</tr>
<?=$hide_end?>


출처 : http://www.zeroboard.com/?mid=zb4_tip&search_target=title&search_keyword=%EC%9D%B4%EB%A6%84&page=2&document_srl=846826
?

공부 게시판

공부에 도움되는 글을 올려주세요.

  1. [공지] 공부 게시판 입니다.

    Date2003.08.18 By처누 Views931906
    read more
  2. 홍콩 보내주다를 뜻하는 영어 표현 한가지를 노래를 통해 배워보자

    Date2025.10.28 Category연애 ByJaeSoo Views23
    Read More
  3. 향수 잔향 기간별 구분

    Date2025.10.28 Category생활 ByJaeSoo Views19
    Read More
  4. Question about Korean - What does 홍콩을 보내다 mean?

    Date2025.10.28 Category생활 ByJaeSoo Views19
    Read More
  5. 리눅스 서버 설치 중 에러 "Failed to find a suitable stage1 device"

    Date2025.10.03 Category유닉스/리눅스 ByJaeSoo Views47
    Read More
  6. Linux 11 . Linux 설치 시 lvm 수동설정

    Date2025.10.03 Category유닉스/리눅스 ByJaeSoo Views39
    Read More
  7. [Rocky Linux] 누구나 쉽게 따라하는 Rocky Linux 9.0 OS 다운로드 및 설치 방법~!!

    Date2025.10.03 Category유닉스/리눅스 ByJaeSoo Views67
    Read More
  8. Linux/Rocky Linux Rocky Linux : Composer 설치

    Date2025.09.29 Category유닉스/리눅스 ByJaeSoo Views56
    Read More
  9. [Rocky Linux] 록키 리눅스 최신 업데이트 적용 방법

    Date2025.09.29 Category유닉스/리눅스 ByJaeSoo Views53
    Read More
  10. rocky linux 커널 업데이트

    Date2025.09.29 Category유닉스/리눅스 ByJaeSoo Views47
    Read More
  11. [Windows] OWASP ZAP 사용법

    Date2025.09.29 Category웹서버,WAS ByJaeSoo Views62
    Read More
  12. [웹 취약점] 웹서버 디렉토리 리스팅 방지

    Date2025.09.29 Category웹서버,WAS ByJaeSoo Views72
    Read More
  13. Clonezilla(클론질라) 백업파일 하드디스크로 복구 방법

    Date2025.09.28 Category유닉스/리눅스 ByJaeSoo Views55
    Read More
  14. 클론질라 사용 방법 - OS 이미지 백업 CloneZilla

    Date2025.09.28 Category유닉스/리눅스 ByJaeSoo Views77
    Read More
  15. [Linux / Rocky] FTP 접속 관련 설정 실습 예제

    Date2025.09.23 Category유닉스/리눅스 ByJaeSoo Views99
    Read More
  16. Could not reliably determine the server's fully qualified domain name

    Date2025.09.23 Category유닉스/리눅스 ByJaeSoo Views98
    Read More
  17. [아파치] 아파치 웹서버에 .htaccess 파일 설정하는 방법

    Date2025.09.23 Category유닉스/리눅스 ByJaeSoo Views74
    Read More
  18. [Linux] Apache web server의 rewrite module 사용하기 [출처] [Linux] Apache web server의 rewrite module 사용하기|작성자 g00dmoney

    Date2025.09.23 Category유닉스/리눅스 ByJaeSoo Views69
    Read More
  19. 록키 리눅스 9.1에서 apache, mysql, PHP 설치

    Date2025.09.23 Category유닉스/리눅스 ByJaeSoo Views80
    Read More
  20. [권한문제] 라이믹스 Fatal error: Uncaught Rhymix\Framework\Exception: Cannot write template cache file

    Date2025.09.23 Category유닉스/리눅스 ByJaeSoo Views73
    Read More
  21. 라이믹스 php 에러 표시

    Date2025.09.23 Category유닉스/리눅스 ByJaeSoo Views60
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 126 Next
/ 126


즐겨찾기 (가족)

JAESOO's HOMEPAGE


YOUNGAE's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

숭실대 컴퓨터 통신연구실 (서창진)

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

아스가르드 좋은사람/나쁜사람

JServer.kr

제이서버 메타블로그

재수 티스토리


즐겨찾기 (강의, 커뮤니티)

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너