RadarURL

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
기존에 어느 분이 올리신 것을 좀더 수정하여 올리는 것입니다.
기존과 다른 것은 역시 리사이징 기능입니다.
회원들이 사진 사이즈를 일정하게 올리지 않아 부득이 소스를 찾다가 이것저것 붙여서 만들었습니다.

방법은 스킨폴더의 view.php파일을 수정하여

적당한 곳에

<!-- 사진과 자기소개 삽입시작 -->

        <?
              if ($data[ismember]) {
              $tempx = mysql_fetch_array(mysql_query("select * from zetyx_member_table where no=$data[ismember]"));
              $tempx[comment] = stripslashes($tempx[comment]);
              if ($tempx[picture]){
                      $pic=$tempx[picture]; {
                              $temp = @GetImageSize($pic);
                               if($temp[0] < 110 ) {
                                 $pic=("<center><img src='$tempx[picture]' border='0'></center>"); }
                               elseif($temp[0] > 110 ) {
                                 $pic=("<center><img src='$tempx[picture]' border='0' width=110></center>"); }
                               else {
                                 $pic=("<center><img src='$tempx[picture]' border='0'></center>"); }
                      }
              }
              else {
                      $pic="<img src='/images/no_img.gif'>";
                }
              }
        ?>
<table width=<?=$width?> border="0" cellspacing="3" cellpadding="3">
  <tr>
    <td width=130><?=$pic?></td>
    <td valign=top><?=$face_image?><?=$name?></font><br>
    <?=nl2br(del_html($tempx[comment]))?>
    </td>
  </tr>
</table>
<!-- 사진, 자기소개 삽입끝 -->
을 추가하십시요.
위의 소스는 테이블에 자기 소개까지 나오는 소스입니다.


테이블을 제거하고 그림과 자기소개만을 별도로 사용하실려면
<!-- 사진과 자기소개 삽입시작 -->

        <?
              if ($data[ismember]) {
              $tempx = mysql_fetch_array(mysql_query("select * from zetyx_member_table where no=$data[ismember]"));
              $tempx[comment] = stripslashes($tempx[comment]);
              if ($tempx[picture]){
                      $pic=$tempx[picture]; {
                              $temp = @GetImageSize($pic);
                               if($temp[0] < 110 ) {
                                 $pic=("<center><img src='$tempx[picture]' border='0'></center>"); }
                               elseif($temp[0] > 110 ) {
                                 $pic=("<center><img src='$tempx[picture]' border='0' width=110></center>"); }
                               else {
                                 $pic=("<center><img src='$tempx[picture]' border='0'></center>"); }
                      }
              }
              else {
                      $pic="<img src='/images/no_img.gif'>";
                }
              }
        ?>
<!-- 사진, 자기소개 삽입끝 -->
를 넣고,

원하시는 적당한 위치에 <?=$pic?> 과  <?=nl2br(del_html($tempx[comment]))?> 을 붙여주십시요.

사진이 없을 때 나오는 이미지는 제로보드 폴더의 images/no_img.gif로 넣으시면 됩니다.

2004년 10월 23일에 수정하였습니다.

출처 : http://www.nzeo.com/bbs/zboard.php?id=cgi_tip&page=1&sn1=&divpage=1&sn=off&ss=on&sc=off&keyword=사진&select_arrange=headnum&desc=asc&no=6350
?

공부 게시판

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

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

    Date2003.08.18 By처누 Views931236
    read more
  2. 메모리 부족 현상 (allowed memory size of 134217728 bytes..)

    Date2023.08.01 Category웹 프로그래밍 ByJaeSoo Views2252
    Read More
  3. Guzzle - cURL error 60: SSL certificate problem: unable to get local issuer certificate 문제 해결

    Date2023.07.30 Category웹 프로그래밍 ByJaeSoo Views2289
    Read More
  4. XE 캐시파일 재성생후 404 Oops, Sorry. Page is not found! 나올때

    Date2023.07.29 Category웹 프로그래밍 ByJaeSoo Views2159
    Read More
  5. XE - " Fatal error: Class 'Object' not found in " / class 낫파운드 오류

    Date2023.03.20 Category웹 프로그래밍 ByJaeSoo Views190
    Read More
  6. iOS 앱 개발을 위한 인증서 생성 및 관리

    Date2023.01.18 Category웹 프로그래밍 ByJaeSoo Views251
    Read More
  7. PHP 파서 이해하기 (<?php의 php를 생략하고 간단히 <? 태그 와 ?> 태그를 사용하는 방법)

    Date2016.08.10 Category웹 프로그래밍 ByJaeSoo Views392
    Read More
  8. XE 비회원 글쓰기 항목 지우기

    Date2016.04.28 Category웹 프로그래밍 ByJaeSoo Views557
    Read More
  9. 오른쪽 마우스 금지 소스 / 드래그 금지 소스

    Date2016.01.20 Category웹 프로그래밍 ByJaeSoo Views507
    Read More
  10. Strict standards and C5 support errors

    Date2015.12.02 Category웹 프로그래밍 ByJaeSoo Views560
    Read More
  11. ICT노트 :: 반응형웹을 만드는 기술은?

    Date2015.09.26 Category웹 프로그래밍 ByJaeSoo Views520
    Read More
  12. [번역] 2014년 가장 인기있는 5가지 프론트엔드 프레임워크 비교

    Date2015.09.25 Category웹 프로그래밍 ByJaeSoo Views886
    Read More
  13. 최고의 반응형 CSS 프레임워크 18선 (2013년 7월기준)

    Date2015.09.25 Category웹 프로그래밍 ByJaeSoo Views617
    Read More
  14. 가장 진보된 반응형 웹을 위한 프레임워크 UIkit

    Date2015.09.25 Category웹 프로그래밍 ByJaeSoo Views590
    Read More
  15. 반응형 웹을 위한 프론트-엔드 프레임 워크 (front-end framework for developing responsive web)

    Date2015.09.25 Category웹 프로그래밍 ByJaeSoo Views768
    Read More
  16. 한국형 반응형웹 프레임웍을 찾아서 - 왜 우리는 IE 7,8때문에 고통받아야 하는가?

    Date2015.09.25 Category웹 프로그래밍 ByJaeSoo Views645
    Read More
  17. 한국을 위한 CSS 그리드 디자인 프레임워크

    Date2015.09.25 Category웹 프로그래밍 ByJaeSoo Views573
    Read More
  18. 과연 반응형 웹 디자인만이 해답일까?

    Date2015.09.25 Category웹 프로그래밍 ByJaeSoo Views580
    Read More
  19. 반응형 웹 디자인의 단점

    Date2015.09.25 Category웹 프로그래밍 ByJaeSoo Views591
    Read More
  20. 웹디자인 신기술 트렌드 및 적용 사례

    Date2015.07.28 Category웹 프로그래밍 ByJaeSoo Views552
    Read More
  21. 제이쿼리(jQuery) 튜토리얼(Tutorial) 모음

    Date2015.07.28 Category웹 프로그래밍 ByJaeSoo Views1303
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15


즐겨찾기 (가족)

JAESOO's HOMEPAGE


YOUNGAE's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

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

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

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

JServer.kr

제이서버 메타블로그

재수 티스토리


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

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너