RadarURL

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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





음.. 단순하게 나이의 많고 적음을 표시해줍니다. 리디님 팁 보구 다 따라 했습니다..ㅡㅡ;;
자세히 몰라 필요 없는 부분이 많이 들어가 있을 수 있습니다.

해당스킨의 setup.php 를 열고 적당한데에 아래 소스 삽입.

<?
//Birth matching
function birth_matching($member_no) {
global $connect, $member_table;
if($member_no) {
$data=mysql_fetch_array(mysql_query("select birth from $member_table where no='$member_no'"));
$date=timestamp2date($data[birth]);
$target_birth=$date[1];
$birth_month=$date[2];
$birth_date=$date[3];
$member=member_info();

if (8<$member[level]) $bm=" ";
else{
        $date=timestamp2date($member[birth]);
        $my_birth=$date[1];
        if ($my_birth - $target_birth > 0) $bm="<img src=skin/nzeo_ver3/elder.gif border=0 align=absmiddle alt='".$birth_month."월 ".$birth_date."일'>"; // 나이많은 사람 표시용 아이콘
        elseif ($my_birth - $target_birth < 0) $bm="<img src=skin/nzeo_ver3/little.gif border=0 align=absmiddle alt='".$birth_month."월 ".$birth_date."일'>"; // 나이 어린사람 표시용 아이콘
        elseif ($my_birth - $target_birth == 0) $bm="<img src=skin/nzeo_ver3/friend.gif border=0 align=absmiddle alt='".$birth_month."월 ".$birth_date."일'>"; // 동갑 아이콘
}
echo "$bm";
}
}
?>

해당스킨의 view.php에 적당한 곳에 소스 삽입.

<?=birth_matching($data[ismember])?>

해당스킨의 view_comment.php에 적당한 곳에 소스 삽입.

<?=birth_matching($c_data[ismember])?>

하시면 되겠습니다. 남녀를 구분해서 가입 받았다면 나눌수 있겠고..
나이차를 새분화 해서 할부지, 삼춘, 형 등으로 나누어도 좋을꺼 같습니다. (__*)

스샷의 화살표 부분이 적용부분입니다.

-------------------------------------------------------------------
alt 메세지에 생일이 나오도록 수정했습니다. ^^*


출처 : 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=5968
?

공부 게시판

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

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 [공지] 공부 게시판 입니다. 처누 2003.08.18 950284
346 응용 프로그래밍 WIndows Application의 실행 속도 측정 file YooN 2023.09.06 3906
345 웹 프로그래밍 메모리 부족 현상 (allowed memory size of 134217728 bytes..) YooN 2023.08.01 2950
344 웹 프로그래밍 Guzzle - cURL error 60: SSL certificate problem: unable to get local issuer certificate 문제 해결 file YooN 2023.07.30 3126
343 웹 프로그래밍 XE 캐시파일 재성생후 404 Oops, Sorry. Page is not found! 나올때 YooN 2023.07.29 2847
342 응용 프로그래밍 [Apple] 엔터프라이즈 계정신청 (Enterprise Program) file YooN 2023.03.27 1386
341 웹 프로그래밍 XE - " Fatal error: Class 'Object' not found in " / class 낫파운드 오류 file YooN 2023.03.20 964
340 응용 프로그래밍 [MSA] MSA란 무엇인가? 개념 이해하기 file YooN 2023.01.26 986
339 웹 프로그래밍 iOS 앱 개발을 위한 인증서 생성 및 관리 file YooN 2023.01.18 1038
338 프로그래밍 [ iOS ] 앱 스토어 개인, 회사, 엔터프라이즈 차이점 file YooN 2023.01.09 778
337 웹 프로그래밍 PHP 파서 이해하기 (<?php의 php를 생략하고 간단히 <? 태그 와 ?> 태그를 사용하는 방법) YooN 2016.08.10 1173
336 프로그래밍 SVN의 cleanup 에러시 해결방법 YooN 2016.05.05 1590
335 프로그래밍 [오류해결] svn cleanup failed-previous operation has not finished; run cleanup if it was interrupted file YooN 2016.05.05 1446
334 프로그래밍 TortoiseSVN 계정변경 file YooN 2016.05.05 969
333 프로그래밍 SVN passwd 설정 : 계정 (users/passwd) file YooN 2016.05.04 1345
332 웹 프로그래밍 XE 비회원 글쓰기 항목 지우기 file YooN 2016.04.28 1335
331 응용 프로그래밍 메모리 영역 (code, data, stack, heap) file YooN 2016.03.23 1539
330 응용 프로그래밍 [SVN] Subversion 명령들 file YooN 2016.02.06 1757
329 응용 프로그래밍 IBM JDK 1.6 에서 Spring 2.5.2를 사용할 때 GenericTypeResolver 에서 NullPointerException이 발생하는 문제 YooN 2016.01.27 1589
328 웹 프로그래밍 오른쪽 마우스 금지 소스 / 드래그 금지 소스 YooN 2016.01.20 1168
327 응용 프로그래밍 [전자정부 표준프레임워크] 톰캣(Tomcat) 설치하기 file YooN 2016.01.02 1290
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 18 Next
/ 18


즐겨찾기 (가족)

JAESOO's HOMEPAGE


장여은 홈페이지


장여희 홈페이지


장여원 홈페이지


즐겨찾기 (업무)

알리카페 홀릭

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

말레이시아 KL Sentral 한국인 GuestHouse


즐겨찾기 (취미)

어드민아이디

유에코 사랑회

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

JServer.kr

제이서버 메타블로그

재수 티스토리


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

재수 강의 홈페이지


한소리


VTMODE.COM


숭실대 인공지능학과


숭실대 통신연구실


베너