미니돌 아바타 g4 용 코멘트 리스트에 나타네기
view_comment.skin.php 에 아래파일 처럼 변경하고
보이고 싶은 곳에 <?=$c_avatar_show?>를 넣으시면 됩니다.
<!-- 코멘트 리스트 -->
<?
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i][wr_id];
$mb = get_member($list[$i][mb_id]);
$c_avatar_show = "";
$temp = mysql_query("select ava1,ava2,ava3,ava4,ava5,ava6,ava7,ava8,ava9 from avatar_member_table where user_id = '$mb[mb_id]'");
while($avatar = mysql_fetch_array($temp)) {
$c_avatar_show = "<DIV style=' width:90; height:80; overflow:hidden;border:1'>
<DIV ID=Layer1 STYLE='position:absolute; left:0; top:0; z-index:1'><img id=ImgChar1 src=$g4[path]/avatar/charimg/$avatar[ava1] border=0></DIV>
<DIV ID=Layer2 STYLE='position:absolute; left:0; top:0; z-index:3'><img id=ImgChar2 src=$g4[path]/avatar/charimg/$avatar[ava2] border=0></DIV>
<DIV ID=Layer3 STYLE='position:absolute; left:0; top:0; z-index:2'><img id=ImgChar3 src=$g4[path]/avatar/charimg/$avatar[ava3] border=0></DIV>
<DIV ID=Layer4 STYLE='position:absolute; left:0; top:0; z-index:5'><img id=ImgChar4 src=$g4[path]/avatar/charimg/$avatar[ava4] border=0></DIV>
<DIV ID=Layer5 STYLE='position:absolute; left:0; top:0; z-index:4'><img id=ImgChar5 src=$g4[path]/avatar/charimg/$avatar[ava5] border=0></DIV>
<DIV ID=Layer6 STYLE='position:absolute; left:0; top:0; z-index:6'><img id=ImgChar6 src=$g4[path]/avatar/charimg/$avatar[ava6] border=0></DIV>
<DIV ID=Layer7 STYLE='position:absolute; left:0; top:0; z-index:7'><img id=ImgChar7 src=$g4[path]/avatar/charimg/$avatar[ava7] border=0></DIV>
<DIV ID=Layer8 STYLE='position:absolute; left:0; top:0; z-index:8'><img id=ImgChar8 src=$g4[path]/avatar/charimg/$avatar[ava8] border=0></DIV>
<DIV ID=Layer9 STYLE='position:absolute; left:0; top:0; z-index:0'><img id=ImgChar9 src=$g4[path]/avatar/charimg/$avatar[ava9] border=0></DIV>
<DIV ID=Layer10 STYLE='position:absolute; left:0; top:0; z-index:9'><img id=ImgChar10 src=$g4[path]/avatar/charimg/img_blank.gif border=0 width=120 height=160></DIV>
</DIV>";
}
?>
보이고 싶은 곳에 <?=$c_avatar_show?>를 넣으시면 됩니다.
<!-- 코멘트 리스트 -->
<?
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i][wr_id];
$mb = get_member($list[$i][mb_id]);
$c_avatar_show = "";
$temp = mysql_query("select ava1,ava2,ava3,ava4,ava5,ava6,ava7,ava8,ava9 from avatar_member_table where user_id = '$mb[mb_id]'");
while($avatar = mysql_fetch_array($temp)) {
$c_avatar_show = "<DIV style=' width:90; height:80; overflow:hidden;border:1'>
<DIV ID=Layer1 STYLE='position:absolute; left:0; top:0; z-index:1'><img id=ImgChar1 src=$g4[path]/avatar/charimg/$avatar[ava1] border=0></DIV>
<DIV ID=Layer2 STYLE='position:absolute; left:0; top:0; z-index:3'><img id=ImgChar2 src=$g4[path]/avatar/charimg/$avatar[ava2] border=0></DIV>
<DIV ID=Layer3 STYLE='position:absolute; left:0; top:0; z-index:2'><img id=ImgChar3 src=$g4[path]/avatar/charimg/$avatar[ava3] border=0></DIV>
<DIV ID=Layer4 STYLE='position:absolute; left:0; top:0; z-index:5'><img id=ImgChar4 src=$g4[path]/avatar/charimg/$avatar[ava4] border=0></DIV>
<DIV ID=Layer5 STYLE='position:absolute; left:0; top:0; z-index:4'><img id=ImgChar5 src=$g4[path]/avatar/charimg/$avatar[ava5] border=0></DIV>
<DIV ID=Layer6 STYLE='position:absolute; left:0; top:0; z-index:6'><img id=ImgChar6 src=$g4[path]/avatar/charimg/$avatar[ava6] border=0></DIV>
<DIV ID=Layer7 STYLE='position:absolute; left:0; top:0; z-index:7'><img id=ImgChar7 src=$g4[path]/avatar/charimg/$avatar[ava7] border=0></DIV>
<DIV ID=Layer8 STYLE='position:absolute; left:0; top:0; z-index:8'><img id=ImgChar8 src=$g4[path]/avatar/charimg/$avatar[ava8] border=0></DIV>
<DIV ID=Layer9 STYLE='position:absolute; left:0; top:0; z-index:0'><img id=ImgChar9 src=$g4[path]/avatar/charimg/$avatar[ava9] border=0></DIV>
<DIV ID=Layer10 STYLE='position:absolute; left:0; top:0; z-index:9'><img id=ImgChar10 src=$g4[path]/avatar/charimg/img_blank.gif border=0 width=120 height=160></DIV>
</DIV>";
}
?>
댓글 1개
18년 전
금방 적용해보니 코멘트 칸에 넣기에는 아바타가 너무 크네요..
작은 얼굴 적용은 어떻게 할 수 있는지 좀 알려주실래요?
작은 얼굴 적용은 어떻게 할 수 있는지 좀 알려주실래요?
게시판 목록
그누4 팁자료실
그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3309 | 3년 전 | 1807 | ||
| 3308 | 11년 전 | 2093 | ||
| 3307 |
uPAmJ903
|
6년 전 | 4753 | |
| 3306 |
바른사나이
|
6년 전 | 3274 | |
| 3305 | 6년 전 | 12312 | ||
| 3304 | 7년 전 | 3705 | ||
| 3303 | 7년 전 | 3745 | ||
| 3302 |
지리산초보
|
7년 전 | 13597 | |
| 3301 |
sozet
|
8년 전 | 4905 | |
| 3300 |
sozet
|
8년 전 | 5974 | |
| 3299 |
sozet
|
8년 전 | 10863 | |
| 3298 | 8년 전 | 4017 | ||
| 3297 |
또치하우스
|
8년 전 | 4444 | |
| 3296 | 8년 전 | 11972 | ||
| 3295 |
또치하우스
|
8년 전 | 14988 | |
| 3294 | 8년 전 | 6028 | ||
| 3293 | 8년 전 | 5593 | ||
| 3292 |
|
9년 전 | 5320 | |
| 3291 | 9년 전 | 13683 | ||
| 3290 | 9년 전 | 5055 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기