일반게시판을 갤러리 게시판 으로 수정하는중~ 도움요청요~ 정보
일반게시판을 갤러리 게시판 으로 수정하는중~ 도움요청요~본문
갤러리 게시판으로 변경해서 쓰려고 하는데요.(이스킨으로 써야해서요, 게시판스킨 다운받으란 답변은 하지말아주세요~)
게시글 출력 형태는 갤러리 처럼 바꾸는데 까지는 성공했는데 한줄에 하나밖에 안나와요ㅠㅠ
한줄에 세개씩 나왔으면 좋겠는데,
갤러리 게시판 소스랑 비교해봐도 너무 다른 스킨이라 무슨차이인지 잘 모르겠네요.
쪼끔만 도와주세요~~
<table cellspacing="0" cellpadding="0" class="board_list">
<? if ($is_checkbox) { ?><col width="40" /><? } ?>
<col />
<? if ($is_good) { ?><col width="40" /><? } ?>
<? if ($is_nogood) { ?><col width="40" /><? } ?>
<tr>
<? if ($is_checkbox) { ?><th><input onclick="if (this.checked) all_checked(true); else all_checked(false);" type="checkbox"></th><?}?>
<th>
<div style="text-align:right">
</div>
</th>
<? if ($is_good) { ?><th><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></th><?}?>
<? if ($is_nogood) { ?><th><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></th><?}?>
</tr>
<?
for ($i=0; $i<count($list); $i++) {
$bg = $i%2 ? 0 : 1;
?>
<tr class="bg<?=$bg?>">
<? if ($is_checkbox) { ?><td class="checkbox"><div style="text-align:left; width:250px; margin:0 auto 0 auto;'"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></div><div style="text-align:left; width:250px; margin:0 auto 0 auto;'">
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
if ($list[$i][is_notice]) { echo "<a href='{$list[$i][href]}'><span class='notice'>{$list[$i][subject]}</span></a>"; }
else if (!$is_admin && $list[$i][mb_id] != $member[mb_id]) {
echo "<a href='{$list[$i][href]}'><font color=#003366><h3>{$list[$i][subject]}</h3></font></a>";
echo "<div style='width:100%;display:table;'>";
echo "<div style='float:left'><a href='{$list[$i][href]}'><img src='{$list[$i][wr_content]}' width='200' height='300' border='1' alt='{$list[$i][wr_1]} - 이미지'></a></div>";
} else {
echo "<a href='{$list[$i][href]}'><h3>{$list[$i][subject]}</h3></a><br/>";
echo "<div style='width:100%;display:table;'>";
echo "<div style='float:left'><a href='{$list[$i][href]}' target='_new''><img src='{$list[$i][wr_content]}' width='200' height='300' border='1' alt='{$list[$i][subject]}'></a><div조회수 : <FONT color=#ff0000>".$list[$i][wr_7]."</font>명</br/></div</div>";
echo "조회수 : <FONT color=#ff0000>".$list[$i][wr_7]."</font>명</br/>";
echo "<strong>판매가</strong> : ".$list[$i][wr_4]."</br/>";
echo "쇼핑몰 : <a href='{$list[$i][wr_link1]}' target='_new'><strong>".cut_str($list[$i][wr_9],80)."</strong></a><br/>"; echo "<a href='{$list[$i][wr_link1]}' target='_new'><FONT color=#0070c0>".$list[$i][wr_link2]."</font></a><br/>";
}
$sns_url = $g4[url] .$_SERVER['REQUEST_URI']; // $g4[url] 을 달리 사용하는 경우 현재 행 주석 아래줄 사용
// $sns_url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$sns_url = trim($sns_url);
$t_url = "http://twitter.com/?status=".str_replace("+", " ", urlencode($list[$i][wr_subject]." ".$list[$i][wr_4]."스크랩 - $sns_url"));
$f_url = "http://www.facebook.com/share.php?u=".urlencode($sns_url);
$m_url = "http://me2day.net/posts/new?new_post[body]=".urlencode($list[$i][wr_subject]." ".$list[$i][wr_4]."스크랩 - \"$sns_url\":$sns_url");
$y_url = "http://yozm.daum.net/api/popup/prePost?sourceid=41&link={$sns_url}&prefix=".urlencode($list[$i][wr_subject]." ".$list[$i][wr_4]."스크랩");
$facebook_like_href = urlencode($sns_url);
echo "<a href='$t_url' target='_blank' title='트위터로 보내기'><img src='$board_skin_path/img/icon_twitter.png' border='0'></a> ";
echo "<a href='$f_url' target='_blank' title='페이스북으로 보내기'><img src='$board_skin_path/img/icon_facebook.png' border='0'></a> ";
echo "<a href='$m_url' target='_blank' title='미투데이로 보내기'><img src='$board_skin_path/img/icon_me2day.png' border='0'></a> ";
echo "<a href='$y_url' target='_blank' title='요즘으로 보내기'><img src='$board_skin_path/img/icon_yozm.png' border='0'></a> ";
echo "</div></div>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class='comment'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
// echo " " . $list[$i][icon_new];
// echo " " . $list[$i][icon_file];
// echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?>
</div></td><? } ?>
<td class="subject">
</td>
<? if ($is_good) { ?><td class="good"><?=$list[$i][wr_good]?></td><? } ?>
<? if ($is_nogood) { ?><td class="nogood"><?=$list[$i][wr_nogood]?></td><? } ?>
</tr>
<? } // end for ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
게시글 출력 형태는 갤러리 처럼 바꾸는데 까지는 성공했는데 한줄에 하나밖에 안나와요ㅠㅠ
한줄에 세개씩 나왔으면 좋겠는데,
갤러리 게시판 소스랑 비교해봐도 너무 다른 스킨이라 무슨차이인지 잘 모르겠네요.
쪼끔만 도와주세요~~
<table cellspacing="0" cellpadding="0" class="board_list">
<? if ($is_checkbox) { ?><col width="40" /><? } ?>
<col />
<? if ($is_good) { ?><col width="40" /><? } ?>
<? if ($is_nogood) { ?><col width="40" /><? } ?>
<tr>
<? if ($is_checkbox) { ?><th><input onclick="if (this.checked) all_checked(true); else all_checked(false);" type="checkbox"></th><?}?>
<th>
<div style="text-align:right">
</div>
</th>
<? if ($is_good) { ?><th><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></th><?}?>
<? if ($is_nogood) { ?><th><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></th><?}?>
</tr>
<?
for ($i=0; $i<count($list); $i++) {
$bg = $i%2 ? 0 : 1;
?>
<tr class="bg<?=$bg?>">
<? if ($is_checkbox) { ?><td class="checkbox"><div style="text-align:left; width:250px; margin:0 auto 0 auto;'"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></div><div style="text-align:left; width:250px; margin:0 auto 0 auto;'">
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
if ($list[$i][is_notice]) { echo "<a href='{$list[$i][href]}'><span class='notice'>{$list[$i][subject]}</span></a>"; }
else if (!$is_admin && $list[$i][mb_id] != $member[mb_id]) {
echo "<a href='{$list[$i][href]}'><font color=#003366><h3>{$list[$i][subject]}</h3></font></a>";
echo "<div style='width:100%;display:table;'>";
echo "<div style='float:left'><a href='{$list[$i][href]}'><img src='{$list[$i][wr_content]}' width='200' height='300' border='1' alt='{$list[$i][wr_1]} - 이미지'></a></div>";
} else {
echo "<a href='{$list[$i][href]}'><h3>{$list[$i][subject]}</h3></a><br/>";
echo "<div style='width:100%;display:table;'>";
echo "<div style='float:left'><a href='{$list[$i][href]}' target='_new''><img src='{$list[$i][wr_content]}' width='200' height='300' border='1' alt='{$list[$i][subject]}'></a><div조회수 : <FONT color=#ff0000>".$list[$i][wr_7]."</font>명</br/></div</div>";
echo "조회수 : <FONT color=#ff0000>".$list[$i][wr_7]."</font>명</br/>";
echo "<strong>판매가</strong> : ".$list[$i][wr_4]."</br/>";
echo "쇼핑몰 : <a href='{$list[$i][wr_link1]}' target='_new'><strong>".cut_str($list[$i][wr_9],80)."</strong></a><br/>"; echo "<a href='{$list[$i][wr_link1]}' target='_new'><FONT color=#0070c0>".$list[$i][wr_link2]."</font></a><br/>";
}
$sns_url = $g4[url] .$_SERVER['REQUEST_URI']; // $g4[url] 을 달리 사용하는 경우 현재 행 주석 아래줄 사용
// $sns_url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$sns_url = trim($sns_url);
$t_url = "http://twitter.com/?status=".str_replace("+", " ", urlencode($list[$i][wr_subject]." ".$list[$i][wr_4]."스크랩 - $sns_url"));
$f_url = "http://www.facebook.com/share.php?u=".urlencode($sns_url);
$m_url = "http://me2day.net/posts/new?new_post[body]=".urlencode($list[$i][wr_subject]." ".$list[$i][wr_4]."스크랩 - \"$sns_url\":$sns_url");
$y_url = "http://yozm.daum.net/api/popup/prePost?sourceid=41&link={$sns_url}&prefix=".urlencode($list[$i][wr_subject]." ".$list[$i][wr_4]."스크랩");
$facebook_like_href = urlencode($sns_url);
echo "<a href='$t_url' target='_blank' title='트위터로 보내기'><img src='$board_skin_path/img/icon_twitter.png' border='0'></a> ";
echo "<a href='$f_url' target='_blank' title='페이스북으로 보내기'><img src='$board_skin_path/img/icon_facebook.png' border='0'></a> ";
echo "<a href='$m_url' target='_blank' title='미투데이로 보내기'><img src='$board_skin_path/img/icon_me2day.png' border='0'></a> ";
echo "<a href='$y_url' target='_blank' title='요즘으로 보내기'><img src='$board_skin_path/img/icon_yozm.png' border='0'></a> ";
echo "</div></div>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class='comment'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
// echo " " . $list[$i][icon_new];
// echo " " . $list[$i][icon_file];
// echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
echo $nobr_end;
?>
</div></td><? } ?>
<td class="subject">
</td>
<? if ($is_good) { ?><td class="good"><?=$list[$i][wr_good]?></td><? } ?>
<? if ($is_nogood) { ?><td class="nogood"><?=$list[$i][wr_nogood]?></td><? } ?>
</tr>
<? } // end for ?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
댓글 전체
가로로 먼저 루프돌리고,
가로갯수가 다 차면 줄바꿈테그 넣는식으로 구성이 되야할꺼에요~
기본 갤러리 스킨 받으셔서 그부분만 빼다가 사용하셔야 하는 스킨에 적용시키면
쉽게 해결하실 수 있으실꺼에요~
가로갯수가 다 차면 줄바꿈테그 넣는식으로 구성이 되야할꺼에요~
기본 갤러리 스킨 받으셔서 그부분만 빼다가 사용하셔야 하는 스킨에 적용시키면
쉽게 해결하실 수 있으실꺼에요~
감사합니다. 코드비교 프로그램으로 보면서 하나하나 바꾸다 보니 소뒷발 쥐잡은격으로 되네요ㅋ