RadarURL

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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




우선 제 팁은 기존에 aol필드를 실명으로 사용하고 DB에 성별을 gender 필드로 추가하고
로그인 시간을 login_last_time라는 필드를 만들어 저장하여 사용하고 계시는 분들에게
유용합니다.
물론 위의 팁을 사용하지 않는 분들도 관리자 페이지에서 전체회원을 관리하는 부분의
나이를 표시하는 팁과 회원사진 보이게 하는 방법 그리고 회원 상세 정보를 보는 부분에서
나이의 표기와 회원사진을 리사이즈 하는 부분은 유용하리라 생각됩니다.
리사이즈 된 사진은 사진을 클릭하면 원래의 크기로 보실수가 있습니다.
(이부분은 스크립트 사용하지 않고 새창열기로 하였습니다. 필요하시면 레이어나 크기지정하여
창 여시면 훨씬 깔끔할듯 합니다.)

위에 이미 말씀 드린대로 필요하신 분들은
aol필드를 이용하여 실명과 별명을 구분하는 팁과 성별을 표기할수 있는 팁 그리고
로그인 시간을 저장하는 팁들을 미리 검색하여 구현해놓으시면 좋겠습니다.

우선 관리자 화면에서 전체 회원을 보는 부분을 설명드리겠습니다.
제로보드의 admin 폴더에서 admin_view_member.php 파일을 메모장이나 편집기로
열어주세요.

저는 회원들을 원래는 10명 단위로 보여주게 되어 있는데 22명씩 하니 1280x1024에서
스크롤 없이 볼수 있더군요.. 그래서
if(!$page_num)$page_num=10; 부분의 10을 22로 변경하여주시면 22명씩 보실 수 있습니다.
(기존에 다른분이 팁에 올려주셨던거 같은데 저는 이번에 수정하면서 제가 찾았네요.. ^^;)

그리고 관리자 페이지가 깨지지 않게 하기 위해서 'colspan=' 요부분을 찾아서
필드가 추가가 되기 때문에 필드의 갯수만큼 = 뒤에 숫자를 변경하여 주시기 바랍니다.
저 같은 경우에는 13개의 필드가 있습니다. 필드란 관리자 페이지에서
번호, 선택, 아이디, 이름, 별명, 나이, 생년... 요것들의 갯수를 말합니다.
모두 5군대가 있을 것입니다.

이젠 <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>번호</td>
요 부분을 찾으셔서

  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>번호</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;><a href=.javascript onclick="return select();">선택</a></td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>아이디</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>이름</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>별명</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>레벨</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>점수</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>가입일자</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>수정</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>삭제</td>

이 부분을

  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>번호</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;><a href=.javascript onclick="return select();">선택</a></td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>아이디</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>이름</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>별명</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>나이</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>생년</td>  
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>성별</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>레벨</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>점수</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>로그일자</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>가입일자</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>사진</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>수정</td>
  <td style=font-family:Tahoma;font-size:8pt;font-weight:bold;>삭제</td>

이렇게 변경해주시기 바랍니다. 그러면 필드가 늘어나게 됩니다.

그 다음에는 else $grant_color=""; 부분을 찾으셔서 밑에

        if ($data[gender]==0) $gender_text='남';
        else $gender_text='여';
        
        $todate = date("Y");
        $bir = date("Y",$data[birth]);
        $age = $todate - $bir + 1;

이 부분을 추가해주시고

<td style=font-family:Tahoma;font-size:7pt;>$number</td> 이부분에서

$number--; 요 부분까지인

           <td style=font-family:Tahoma;font-size:7pt;>$number</td>
           <td><input type=checkbox name=cart[] value=$data[no]></td>
           <td style=font-family:Tahoma;font-size:8pt;>$data[user_id]</td>
           <td style=font-family:Tahoma;font-size:8pt;>$data[aol]</td>
           <td><img src=images/t.gif height=3><br>$data[name] </td>
           <td style=font-family:Tahoma;font-size:8pt;>$grant_color$data[level]</td>
           <td style=font-family:Tahoma;font-size:8pt;>".($data[point1]*10+$data[point2])." <font style=font-size:7pt;>(".$data[point1]."/".$data[point2].")</font></td>
           <td style=font-family:Tahoma;font-size:8pt;>".date("Y-m-d",$data[reg_date])."</td>
           <td style=font-family:Tahoma;font-size:8pt;><a href=$PHP_SELF?exec=$exec&group_no=$group_no&exec2=modify&page=$page&no=$data[no]&keyword=$keyword&keykind=$keykind&like=$like&page_num=$page_num>Modify</a></td>
           <td style=font-family:Tahoma;font-size:8pt;>";
   if($data[no]>1) echo"<a href=$PHP_SELF?exec=$exec&group_no=$group_no&exec2=del&keyword=$keyword&page=$page&no=$data[no]$href onclick="return confirm('삭제하시겠습니까?')">Delete</a>"; else echo" ";
   echo"   </td>
        </tr>
        ";
   $number--;

이 부분을

           <td style=font-family:Tahoma;font-size:7pt;>$number</td>
           <td><input type=checkbox name=cart[] value=$data[no]></td>
           <td style=font-family:Tahoma;font-size:8pt;>$data[user_id]</td>
           <td style=font-family:Tahoma;font-size:8pt;>$data[aol]</td>
           <td><img src=images/t.gif height=3><br>$data[name] </td>
           <td style=font-family:Tahoma;font-size:8pt;>$age</td>
           <td style=font-family:Tahoma;font-size:8pt;>".date("Y-m-d",$data[birth])."</td>
           <td style=font-family:Tahoma;font-size:8pt;>$gender_text</td>
           <td style=font-family:Tahoma;font-size:8pt;>$grant_color$data[level]</td>
           <td style=font-family:Tahoma;font-size:8pt;>".($data[point1]*10+$data[point2]*5+$data[login_point]*30)." <font style=font-size:7pt;>(".$data[point1]."/".$data[point2].")</font></td>
           <td style=font-family:Tahoma;font-size:8pt;>".date("Y-m-d",$data[login_last_time])."</td>
           <td style=font-family:Tahoma;font-size:8pt;>".date("Y-m-d",$data[reg_date])."</td>
           <td style=font-family:Tahoma;font-size:8pt;>";
   if($data[picture]) {
                      $pic=$data[picture]; {
                              $temp = @GetImageSize($pic);
                               if($temp[0] < 20 ) {
                                 $pic=("<center><img src='$data[picture]' border='0'></center>"); }
                               elseif($temp[0] > 20 ) {
                                 $pic=("<center><img src='$data[picture]' border='0' height=20></center>"); }
                               else {
                                 $pic=("<center><img src='$data[picture]' border='0'></center>"); }
                      }
                      echo "<a href=$data[picture] target=_blank>$pic</a>";
              };
   echo" </td>
           <td style=font-family:Tahoma;font-size:8pt;><a href=$PHP_SELF?exec=$exec&group_no=$group_no&exec2=modify&page=$page&no=$data[no]&keyword=$keyword&keykind=$keykind&like=$like&page_num=$page_num>Modify</a></td>
           <td style=font-family:Tahoma;font-size:8pt;>";
   if($data[no]>1) echo"<a href=$PHP_SELF?exec=$exec&group_no=$group_no&exec2=del&keyword=$keyword&page=$page&no=$data[no]$href onclick="return confirm('삭제하시겠습니까?')">Delete</a>"; else echo" ";
   echo"   </td>
        </tr>
        ";
        
$queryString="select * from $group_member_table where user_no='".$data[no]."'";
   $group_member_string="";
   $gresult=mysql_query($queryString);
   while ($gdata=mysql_fetch_array($gresult)) {
           $group_member_string.="   <a href=$PHP_SELF?exec=$exec&group_no=$group_no&exec2=delgroup&delgroup_num=".$gdata[group_no]."&delgroup_no=".$data[no]."&keyword=$keyword&page=$page&no=$data[no]$href onclick="return confirm('".$data[name]."님을 ".$group_name[$gdata[group_no]]."그룹에서 삭제하시겠습니까?')">".$group_name[$gdata[group_no]]."</a>";
   }
   if ($group_member_string!="") echo "<tr align=center height=23 bgcolor=#e0e0e0>
                   <td colspan=3 style=font-family:Tahoma;font-size:9pt;>참여중인 그룹 (지우려면 클릭하세요)</td>
                   <td colspan=6 align=left style=font-family:Tahoma;font-size:9pt;>$group_member_string</td>
           </tr>";
        
        
   $number--;

이렇게 변경해주시기 바랍니다.

여기까지 해주시면 전체회원을 관리하는 부분의 수정은 끝입니다.

그리고 이제는 회원의 상세 정보를 표시하는 부분입니다.

admin 폴더에서 admin_modify_member.php 파일을 편집기로 열어주세요.

성별을 나타내게 하는 부분과 성별을 수정하는 부분은 기존의 팁을 참고해주세요.

나이를 나타내게 하려면

<? if($group_data[use_birth]) { ?>

부분위에

<?
        $todate = date("Y");
        $bir = date("Y",$member_data[birth]);
        $age = $todate - $bir + 1;
?>

<? if($group_data[use_birth]) { ?>
  <tr height=22 align=center>
     <td bgcolor=#a0a0a0 align=right style=font-family:Tahoma;font-size:8pt;font-weight:bold;>나이  </td>
     <td align=left bgcolor=#e0e0e0> <input type=text name=age size=20 maxlength=20 value="<?=$age?>" class=input style=border-color:#b0b0b0 readonly></td>
  </tr>
<? } ?>

이렇게 넣어주시면 나이를 계산하여 보여주게 됩니다.

그리고 사진을 리사이즈해서 보여주고 클릭하면 원래 크기로 보이게 하려면

<? if($group_data[use_picture]) { ?>
  <tr height=22 align=center>
     <td bgcolor=#a0a0a0 align=right style=font-family:Tahoma;font-size:8pt;font-weight:bold;>사진  </td>
     <td align=left bgcolor=#e0e0e0> <input type=file name=picture size=37 maxlength=255 class=input style=border-color:#b0b0b0>
                 <? if($member_data[picture]) echo"<br> <img src='$member_data[picture]' border=0>"; ?>
     </td>
  </tr>
<? } ?>

이 부분을

<? if($group_data[use_picture]) { ?>
  <tr height=22 align=center>
     <td bgcolor=#a0a0a0 align=right style=font-family:Tahoma;font-size:8pt;font-weight:bold;>사진  </td>
     <td align=left bgcolor=#e0e0e0> <input type=file name=picture size=37 maxlength=255 class=input style=border-color:#b0b0b0>
                 <? if($member_data[picture]) {echo" <input type=checkbox name=del_picture value=1> 삭제<br> ";
                      $pic=$member_data[picture]; {
                              $temp = @GetImageSize($pic);
                               if($temp[0] < 110 ) {
                                 $pic=("<img src='$member_data[picture]' border='0'>"); }
                               elseif($temp[0] > 110 ) {
                                 $pic=("<img src='$member_data[picture]' border='0' width=110>"); }
                               else {
                                 $pic=("<img src='$member_data[picture]' border='0'>"); }
                      }
                      echo "<a href=$member_data[picture] target=_blank>$pic</a>";
              }; ?>
     </td>
  </tr>
<? } ?>

이렇게 변경해주시면 됩니다.

마지막으로 로그인 시간을 표시해주려면

  <tr height=22 align=center>
     <td bgcolor=#a0a0a0 align=right style=font-family:Tahoma;font-size:8pt;font-weight:bold;>Point  </td>
     <td align=left bgcolor=#e0e0e0> <?=($member_data[point1]*10+$member_data[point2])?> 점 ( 작성글수 : <?=$member_data[point1]?>, 코멘트 : <?=$member_data[point2]?> )</td>
  </tr>

이 부분을

  <tr height=22 align=center>
     <td bgcolor=#a0a0a0 align=right style=font-family:Tahoma;font-size:8pt;font-weight:bold;>Point  </td>    
     <td align=left bgcolor=#e0e0e0> <?=($member_data[point1]*10+$member_data[point2]*5+$member_data[login_point]*30)?> 점 ( 작성글수 : <?=$member_data[point1]?>, 코멘트 : <?=$member_data[point2]?>, 로그인 점수 : <?=$member_data[login_point]?>, 로그인 횟수 : <?=$member_data[login_repeat]?>, 최종 로그인 날짜 : <?=date("y.m.d h:i",$member_data[login_last_time])?> )</td>
  </tr>

이렇게 변경해주시면 됩니다.

처음에 말씀드린것 처럼 로그인 시간의 경우에는 미리
로그인 시간을 login_last_time라는 필드를 만들어 저장하여 사용하고 계시는 분들만 가능합니다.

두서 없이 작성하고 기존의 팁을 자세히 설명드리지 않아 죄송스럽게 생각됩니다.
기존의 팁은 제가 찾는대로 링크를 다시 걸어드리도록 하겠습니다.

설명이 미흡하여 의문사항이 생기시는 분은 질문 주시면 언제든지 답변해드리도록 하겠습니다.
(제가 올린 이곳에는 자주 오지 못하니 메일이나 제 홈피쪽에 질문을 주시는것이 더 빠를듯
합니다.)

아무쪼록 제로보드 사용자분들에게 조금이나마 도움이 되었기를 바랍니다.

출처 : http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&page=1&page_num=20&select_arrange=headnum&desc=&sn=off&ss=on&sc=off&keyword=&no=7744&category=

?

공부 게시판

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

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

    Date2003.08.18 By처누 Views928100
    read more
  2. http를 https로 리다이렉트하는 여러가지 방법

    Date2025.09.10 Category웹서버,WAS ByJaeSoo Views0
    Read More
  3. SSL인증서 없이 HTTPS에서 HTTP로 되돌리기

    Date2025.09.10 Category웹서버,WAS ByJaeSoo Views2
    Read More
  4. [SSL] win-acme, Let's encrypt로 무료 SSL 인증서 발급

    Date2025.09.10 Category웹서버,WAS ByJaeSoo Views0
    Read More
  5. [SSL] Windows 10에서 Let's Encrypt로 SSL 인증서 무료 발급받기

    Date2025.09.10 Category웹서버,WAS ByJaeSoo Views0
    Read More
  6. 무료로 https SSL/TLS 인증서를 발급받을 수 있는 인증 기관

    Date2025.09.10 Category웹서버,WAS ByJaeSoo Views0
    Read More
  7. 아파치 서버에 https SSL 인증서 적용하는 방법 (apache httpd)

    Date2025.09.10 Category웹서버,WAS ByJaeSoo Views0
    Read More
  8. 아파치2(Apache2) SSL HTTPS 적용하기

    Date2025.09.10 Category웹서버,WAS ByJaeSoo Views0
    Read More
  9. 아파치 웹서버에 멀티 도메인에 대한 80, 443 포트 설정하는 방법

    Date2025.09.10 Category웹서버,WAS ByJaeSoo Views0
    Read More
  10. Google Photo 대신 Immich를 써보자

    Date2025.08.07 Category소프트웨어 ByJaeSoo Views126
    Read More
  11. 남자 혹은 여자 진국 팁

    Date2025.07.24 Category연애 ByJaeSoo Views116
    Read More
  12. MBTI검사 16가지 유형 “간단 명료”하게 정리!

    Date2025.07.01 Category기타 ByJaeSoo Views132
    Read More
  13. [사진관리] PhotoPrism vs LibrePhoto 비교 소감

    Date2025.05.19 Category소프트웨어 ByJaeSoo Views14
    Read More
  14. MDF실, TPS실, EPS실 이게 뭘까?

    Date2025.04.15 Category네트워크 ByJaeSoo Views33
    Read More
  15. 알아두면 좋은 직장인 용어 정리

    Date2025.04.15 Category업무 ByJaeSoo Views37
    Read More
  16. 감기·독감·코로나19의 차이점, 신촌연세병원과 함께 알아봅시다.

    Date2025.01.08 Category건강 ByJaeSoo Views29
    Read More
  17. 집주인이 전세 보증금을 돌려주지 않을 때

    Date2024.11.29 Category생활 ByJaeSoo Views26
    Read More
  18. 자전거 타이어 종류 및 추천 2편 (승차감 타이어, 국토종주!)

    Date2024.10.15 Category자동차 ByJaeSoo Views53
    Read More
  19. 오도바이 센타 사장들은 어떤 브랜드를 싫어하고 좋아할까? [출처] 오도바이 센타 사장들은 어떤 브랜드를 싫어하고 좋아할까?|작성자 바이크신

    Date2024.10.15 Category자동차 ByJaeSoo Views78
    Read More
  20. 윈도우 자동 로그온 설정이 보이지 않을 때 조치사항

    Date2024.08.16 Category윈도우즈 ByJaeSoo Views203
    Read More
  21. 갤럭시S22 시리즈에서 SKT LTE 무제한 핫스팟 쓰는 방법! (SKT LTE 요금제만 해당!)

    Date2024.08.12 Category모바일 ByJaeSoo Views234
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 124 Next
/ 124


즐겨찾기 (가족)

JAESOO's HOMEPAGE


YOUNGAE's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

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

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

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

JServer.kr

제이서버 메타블로그

재수 티스토리


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

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너