치에님만 보세요...버러러럭..... 정보
치에님만 보세요...버러러럭.....
본문
하도 안된다 하시길래 올려주신 스킨을 다운받아 보았습니다...
결과는 버러러럭입니다....,,
문제시 되는 원본소스...
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0) {
// 카테고리별 아이콘
// 카테고리 추가시에 아래 소스를 if와 else 사이에 삽입
//////////////////////////////////////////////////////////////////////////////////////////////////
// elseif ($list[$i][ca_name] == '카테고리명') {
// $type = "<img src='$latest_skin_path/img/해당되는아이콘파일' border='0' align='absmiddle'>";
// }
//////////////////////////////////////////////////////////////////////////////////////////////////
$ca_name = $list[$i][ca_name];
$ca_img = "";
if($ca_name == "이벤트")
$ca_img = "<img src='$latest_skin_path/img/event.gif' border='0' align='absmiddle' alt='$ca_name'>";
else
$ca_img = "<img src='$latest_skin_path/img/notice.gif' border='0' align='absmiddle'>";
?>
<tr>
<? if ($i==0) {
// 카테고리별 아이콘
// 카테고리 추가시에 아래 소스를 if와 else 사이에 삽입
//////////////////////////////////////////////////////////////////////////////////////////////////
// elseif ($list[$i][ca_name] == '카테고리명') {
// $type = "<img src='$latest_skin_path/img/해당되는아이콘파일' border='0' align='absmiddle'>";
// }
//////////////////////////////////////////////////////////////////////////////////////////////////
$ca_name = $list[$i][ca_name];
$ca_img = "";
if($ca_name == "이벤트")
$ca_img = "<img src='$latest_skin_path/img/event.gif' border='0' align='absmiddle' alt='$ca_name'>";
else
$ca_img = "<img src='$latest_skin_path/img/notice.gif' border='0' align='absmiddle'>";
?>
<tr>
수정해야합니다...
<? for ($i=0; $i<count($list); $i++) { ?>
<?
<?
// 카테고리별 아이콘
// 카테고리 추가시에 아래 소스를 if와 else 사이에 삽입
//////////////////////////////////////////////////////////////////////////////////////////////////
// elseif ($list[$i][ca_name] == '카테고리명') {
// $type = "<img src='$latest_skin_path/img/해당되는아이콘파일' border='0' align='absmiddle'>";
// }
//////////////////////////////////////////////////////////////////////////////////////////////////
$ca_name = $list[$i][ca_name];
$ca_img = "";
if($ca_name == "이벤트")
$ca_img = "<img src='$latest_skin_path/img/event.gif' border='0' align='absmiddle' alt='$ca_name'>";
else
$ca_img = "<img src='$latest_skin_path/img/notice.gif' border='0' align='absmiddle'>";
?>
// 카테고리 추가시에 아래 소스를 if와 else 사이에 삽입
//////////////////////////////////////////////////////////////////////////////////////////////////
// elseif ($list[$i][ca_name] == '카테고리명') {
// $type = "<img src='$latest_skin_path/img/해당되는아이콘파일' border='0' align='absmiddle'>";
// }
//////////////////////////////////////////////////////////////////////////////////////////////////
$ca_name = $list[$i][ca_name];
$ca_img = "";
if($ca_name == "이벤트")
$ca_img = "<img src='$latest_skin_path/img/event.gif' border='0' align='absmiddle' alt='$ca_name'>";
else
$ca_img = "<img src='$latest_skin_path/img/notice.gif' border='0' align='absmiddle'>";
?>
<? if ($i==0) { ?> // <== 요넘의 위치가 불량임.
<tr>
<tr>
고로 소스는 올바르나 적용위치 불량임....
그런고로
스킨자료실에 올린 스킨은 불량 스킨임.........^^
추천
0
0
댓글 11개

잉? 내가 거긴 고래 적었나요???
헐.. 그나저나 전...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="640" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" colspan="4" height="37" background="<?=$latest_skin_path?>/img/title_new.gif" align="right" style="padding-top:4;padding-right:2;"><a href='<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" border="0"></td>
</tr>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0) { ?>
<td width="3"></td>
<td width="422" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="161" align="center">
<? $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
echo "<a href='{$list[$i][href]}'><img src='$g4[path]/data/file/$bo_table/$image' width='150' height='140' border='0'></a>";
} else {
echo "<a href='{$list[$i][href]}'><img src='$latest_skin_path/img/no_img.gif' width='150' height='140' border='0'></a>";
} ?></td>
<td width="5"></td>
<td width="256" valign="top" style="word-break:break-all;line-height:140%; padding-top:8;"><?=nl2br(cut_str($list[$i][wr_content],310,".. <a href='{$list[$i][href]}'><img src='{$latest_skin_path}/img/co_more.gif' border='0' align='absmiddle'></a>"))?></td>
</tr>
</table>
</td>
<td width="10"></td>
<td width="215" align="left" valign="top">
<table width="205" border="0" cellpadding="0" cellspacing="0">
<? } else {
$ca_name = $list[$i][ca_name];
$ca_img = "";
if($ca_name == "행사참가")
$ca_img = "<img src='$latest_skin_path/img/free.gif' border='0' align='absmiddle' alt='$ca_name'>";
else if($ca_name == "이벤트")
$ca_img = "<img src='$latest_skin_path/img/event.gif' border='0' align='absmiddle' alt='$ca_name'>";
else
$ca_img = "<img src='$latest_skin_path/img/notice.gif' border='0' align='absmiddle' alt='$ca_name'>";
?>
<tr>
<td height="28" OnMouseOver="this.style.backgroundColor='#F5F5F5';" OnMouseOut="this.style.backgroundColor='#FFFFFF'" style="padding-top: 3px;"> <?=$ca_img?> <a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a></td>
<!--<td width="27%" style="padding-top: 2px;" align="center" style="font-family:Tahoma;font-size:7pt"><?=$list[$i][datetime]?></td>-->
</tr>
<tr>
<td width="100%" height="1" bgcolor="e5e5e5"></td>
</tr>
<? } ?>
<? } ?>
</table>
</td>
</tr>
</table>
요리 썼는데..;;
헐.. 그나저나 전...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="640" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" colspan="4" height="37" background="<?=$latest_skin_path?>/img/title_new.gif" align="right" style="padding-top:4;padding-right:2;"><a href='<?=$g4['bbs_path']?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" border="0"></td>
</tr>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0) { ?>
<td width="3"></td>
<td width="422" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="161" align="center">
<? $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
echo "<a href='{$list[$i][href]}'><img src='$g4[path]/data/file/$bo_table/$image' width='150' height='140' border='0'></a>";
} else {
echo "<a href='{$list[$i][href]}'><img src='$latest_skin_path/img/no_img.gif' width='150' height='140' border='0'></a>";
} ?></td>
<td width="5"></td>
<td width="256" valign="top" style="word-break:break-all;line-height:140%; padding-top:8;"><?=nl2br(cut_str($list[$i][wr_content],310,".. <a href='{$list[$i][href]}'><img src='{$latest_skin_path}/img/co_more.gif' border='0' align='absmiddle'></a>"))?></td>
</tr>
</table>
</td>
<td width="10"></td>
<td width="215" align="left" valign="top">
<table width="205" border="0" cellpadding="0" cellspacing="0">
<? } else {
$ca_name = $list[$i][ca_name];
$ca_img = "";
if($ca_name == "행사참가")
$ca_img = "<img src='$latest_skin_path/img/free.gif' border='0' align='absmiddle' alt='$ca_name'>";
else if($ca_name == "이벤트")
$ca_img = "<img src='$latest_skin_path/img/event.gif' border='0' align='absmiddle' alt='$ca_name'>";
else
$ca_img = "<img src='$latest_skin_path/img/notice.gif' border='0' align='absmiddle' alt='$ca_name'>";
?>
<tr>
<td height="28" OnMouseOver="this.style.backgroundColor='#F5F5F5';" OnMouseOut="this.style.backgroundColor='#FFFFFF'" style="padding-top: 3px;"> <?=$ca_img?> <a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a></td>
<!--<td width="27%" style="padding-top: 2px;" align="center" style="font-family:Tahoma;font-size:7pt"><?=$list[$i][datetime]?></td>-->
</tr>
<tr>
<td width="100%" height="1" bgcolor="e5e5e5"></td>
</tr>
<? } ?>
<? } ?>
</table>
</td>
</tr>
</table>
요리 썼는데..;;

여튼 그놈 또 고쳐야 겠네요.. 배포소스는 분명 for 와 $i=='0' 사이에 넣었는데..

으앙~~~ 으앙~~~~~~~~~~~~~~~~~ 긍께 배포는 어려버요..
예전부터 제 방명록 누누히 배포해달라고 여러분께서 문의 주셨는데..
요걸 배포용 소스로 고치는게 너무 어려버용..
제 개인적으로 쓰는 소스 빼고.. 막 공용으로 쓸 수 있게 고쳐야 하는데 넘 어려버요.. 힝~
예전부터 제 방명록 누누히 배포해달라고 여러분께서 문의 주셨는데..
요걸 배포용 소스로 고치는게 너무 어려버용..
제 개인적으로 쓰는 소스 빼고.. 막 공용으로 쓸 수 있게 고쳐야 하는데 넘 어려버요.. 힝~

배포한거 지워버릴까용? 또 안된다는 분 계시면 미안헌데... 해결도 못해주고..;;

아래 댓글로 달아 놓으세요...바꾸어야 한다고....^^

댓글 20개인가 30개 달리기 전엔 파일하고 내용이 수정가능해서.. 파일 또 수정해서 올렸습니다! 오호호~~~~~

해당 댓글 지워 나가니 순서대로 언능언능 지워 주세요....

멜치볶음~ 악! 그치만.. 내 댓글 포인트가~~~~ ^^;;

이히히히~~~

호호호호~~**
뭐 좋은 일 있으세요....?
뭐 좋은 일 있으세요....?

해결됐응께 좋죵~~ 암!!