동글이

그누 최근글에서 클럽 게시판 링크 문제 해결

최근글 스킨(new.skin.php)에서 for 구문을 다음과 같이 바꾸면 된다. 현재 클럽 게시판 이름까지만 가능하고 클럽 글제목에 관련된 링크는 아직 미완성. 그래서 클럽 글제목 링크는 하지 않았음.

<?
for ($i=0; $i<count($list); $i++)
{
$gr_subject = cut_str($list[$i][gr_subject], 10);
$bo_subject = cut_str($list[$i][bo_subject], 10);
$wr_subject = get_text(cut_str($list[$i][wr_subject], 40));

if ($gr_subject == "클럽"){
echo <<<HEREDOC
<tr>
<td align="center" height="30" colspan=3><a href='./group.php?gr_id={$list[$i][gr_id]}'>{$gr_subject}</a></td>
<td align="center" colspan=2>
<a href='../club/club_main.php?cb_id={$list[$i][bo_table]}'>{$bo_subject}</a></td>
<td width="">&nbsp;{$list[$i][comment]}{$wr_subject}</td>
<td align="center">{$list[$i][name]}</td>
<td align="center" colspan=2>{$list[$i][datetime2]}</td>
</tr>
<tr>
<td colspan="9" height="1" background="{$new_skin_path}/img/dot_bg.gif"></td>
</tr>
HEREDOC;
}
else {
echo <<<HEREDOC
<tr>
<td align="center" height="30" colspan=3><a href='./group.php?gr_id={$list[$i][gr_id]}'>{$gr_subject}</a></td>
<td align="center" colspan=2>
<a href='./board.php?bo_table={$list[$i][bo_table]}'>{$bo_subject}</a></td>
<td width="">&nbsp;<a href='{$list[$i][href]}'>{$list[$i][comment]}{$wr_subject}</a></td>
<td align="center">{$list[$i][name]}</td>
<td align="center" colspan=2>{$list[$i][datetime2]}</td>
</tr>
<tr>
<td colspan="9" height="1" background="{$new_skin_path}/img/dot_bg.gif"></td>
</tr>
HEREDOC;
}
}
?>
|

댓글 1개

감사합니다..
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 플러그인

그누보드에는 여러가지 기능 추가가 쉽도록 제작 되었습니다. 플러그인의 저작권은 해당 플러그인 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다. 플러그인 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y

+
제목 글쓴이 날짜 조회
20년 전 조회 2,367
20년 전 조회 2,398
20년 전 조회 3,120
20년 전 조회 2,176
20년 전 조회 2,846
20년 전 조회 2,243
20년 전 조회 2,445
20년 전 조회 4,495
20년 전 조회 2,100
20년 전 조회 2,392
20년 전 조회 2,634
20년 전 조회 2,746
20년 전 조회 5,052
20년 전 조회 3,363
20년 전 조회 2,419
🐛 버그신고