그룹별 최근게시물 두줄로 정열 어떻게 해야하나요? 도저히 모르겠어요[왕초보질문] 정보
그룹별 최근게시물 두줄로 정열 어떻게 해야하나요? 도저히 모르겠어요[왕초보질문]
본문
그룹별 최근게시물 정리조정하는것 어떻게 해야하나요?
일반적으로 한줄로 아래쪽으로 주루룩 하니 나오잖아요...
그런데 제가 캡쳐하여 올려놓은 사진은 그누보드 플러그인쪽 부분을 캡쳐한 것이에요...
http://sir.co.kr/main/plugin/
캡쳐한것 처럼 두줄로 나열하고 싶은데 소스중에 어디부분을 어떻게 수정해야 하는지 고수님들~
가르쳐 주세요.....
제가 잘~ 못찾아서 답이 나와있는데도 못찾는것은 아닌지도 모르겠구여.... ㅜ.ㅜ
일반적으로 한줄로 아래쪽으로 주루룩 하니 나오잖아요...
그런데 제가 캡쳐하여 올려놓은 사진은 그누보드 플러그인쪽 부분을 캡쳐한 것이에요...
http://sir.co.kr/main/plugin/
캡쳐한것 처럼 두줄로 나열하고 싶은데 소스중에 어디부분을 어떻게 수정해야 하는지 고수님들~
가르쳐 주세요.....
제가 잘~ 못찾아서 답이 나와있는데도 못찾는것은 아닌지도 모르겠구여.... ㅜ.ㅜ
댓글 전체

bbs/group.php를 수정하시면 되고요...
간단히 적어 드릴테니 적용할때는 아래구문에서
<?= latest("스킨명", $row[bo_table], 목록수, 글자수, "4,25")?><br>
이 부분은 자신이 설치한 스킨에 맞게 고치시면 됩니다.
<!-- 메인화면 최신글 시작 -->
<?
if(!isset($g4_path)) $g4_path = "..";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
$html_title = "그룹최신글";
$g4[title] = $config[cf_title]. " $html_title ";
include_once("$g4[path]/_head.php");
$gr_id = "01"; //출력할 그룹아이디를 넣으세요.
$list_mod = 2; // 한라인에 출력할 갯수
?>
<table width="100%" cellpadding="2" cellspacing="0" border="0"><tr>
<?
$sql = " select bo_table, bo_subject from $g4[board_table]
where gr_id = '$gr_id'
and bo_list_level <= '$member[mb_level]' and bo_table not in ('test1', 'test2') order by bo_table "; // 출력제외게시판아이디를(' ')에 넣으세요(추가가능).
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result);) {
if($i % $list_mod == 0)
echo "<tr>";
?>
<td width="50%" valign="top"> <!-- width="50%"를 맞춰주세요. -->
<?= latest("스킨명", $row[bo_table], 목록수, 글자수, "4,25")?><br>
</td>
<?
$i++;
}
?>
</tr>
</table>
간단히 적어 드릴테니 적용할때는 아래구문에서
<?= latest("스킨명", $row[bo_table], 목록수, 글자수, "4,25")?><br>
이 부분은 자신이 설치한 스킨에 맞게 고치시면 됩니다.
<!-- 메인화면 최신글 시작 -->
<?
if(!isset($g4_path)) $g4_path = "..";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
$html_title = "그룹최신글";
$g4[title] = $config[cf_title]. " $html_title ";
include_once("$g4[path]/_head.php");
$gr_id = "01"; //출력할 그룹아이디를 넣으세요.
$list_mod = 2; // 한라인에 출력할 갯수
?>
<table width="100%" cellpadding="2" cellspacing="0" border="0"><tr>
<?
$sql = " select bo_table, bo_subject from $g4[board_table]
where gr_id = '$gr_id'
and bo_list_level <= '$member[mb_level]' and bo_table not in ('test1', 'test2') order by bo_table "; // 출력제외게시판아이디를(' ')에 넣으세요(추가가능).
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result);) {
if($i % $list_mod == 0)
echo "<tr>";
?>
<td width="50%" valign="top"> <!-- width="50%"를 맞춰주세요. -->
<?= latest("스킨명", $row[bo_table], 목록수, 글자수, "4,25")?><br>
</td>
<?
$i++;
}
?>
</tr>
</table>

시하님 답변 너무 감사합니다..
말씀하신 대로 해보니까 정상적으로 두줄로 출력이되며 보여집니다.
조금이나마 감이 가는데요 (아직 많이는 아니지만)
근데요 시하님 이런 에러메세지가 나오네요...
무엇이 문제인지 한번만 더 확인부탁드려요...
사용환경은: 리눅스호스팅계정, 윈도우2003서버입니다
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 38
말씀하신 대로 해보니까 정상적으로 두줄로 출력이되며 보여집니다.
조금이나마 감이 가는데요 (아직 많이는 아니지만)
근데요 시하님 이런 에러메세지가 나오네요...
무엇이 문제인지 한번만 더 확인부탁드려요...
사용환경은: 리눅스호스팅계정, 윈도우2003서버입니다
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at X:\RWAPM\www\bbs\group.php:2) in X:\RWAPM\www\head.sub.php on line 38
..