최신글 나누기에서 ...다시 한번 질문드려요~ > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신글 나누기에서 ...다시 한번 질문드려요~ 정보

최신글 나누기에서 ...다시 한번 질문드려요~

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :


최신글에서 출력되는 게시물을 오른쪽으로 나누어 주는데요.. 먼저 질문해서 해결했는데

아래 소스에서는 위에처럼 스샷 출력 되네요.

 { echo "<td valign=top><ul>"; }
 { echo "</ul></td><td valign=top><ul>"; }

이 부분이 이해가 안되는데요..
어떻게 바꿔줘야할지 답변좀 부탁드릴께요

답변주시는 고수님들~ 미리 감사감사드립니다 ^_^

<td valign=top>
    <ul>
    <?
    $s = $a*5;
    $e = ($a+1)*5;
    $r = rand($s, $e-1);
    for ($i=$s; $i<$e; $i++) {
    if ($r == $i) $list[$i][subject] = "<strong>".$list[$i][subject]."</strong>";
    if ($list[$i][icon_secret]) $list[$i][subject] .= "&nbsp;&nbsp;" . $list[$i][icon_secret];
    //if ($list[$i][icon_file]) $list[$i][subject] .= "&nbsp;" . $list[$i][icon_file];
    //if ($list[$i][icon_new]) $list[$i][subject] .= "&nbsp;" . $list[$i][icon_new];
    //if ($list[$i][icon_hot]) $list[$i][subject] .= "&nbsp;" . $list[$i][icon_hot];
    if ($member[mb_id]) {
        $list[$i][subject] = str_replace("{닉네임}", $member[mb_nick], $list[$i][subject]);
        $list[$i][subject] = str_replace("{별명}", $member[mb_nick], $list[$i][subject]);
    } else {
        $list[$i][subject] = str_replace("{닉네임}", "회원", $list[$i][subject]);
        $list[$i][subject] = str_replace("{별명}", "회원", $list[$i][subject]);
    }
if($i==0) { echo "<td valign=top><ul>"; }
    if($i%5 == 0) { echo "</ul></td><td valign=top><ul>"; }
    ?>
    <li><a href="<?=$list[$i][href]?>"><?=$list[$i][subject]?> <span class="comment"><?=$list[$i][comment_cnt]?></span></a>&nbsp;</li>
    <? } ?>
    </ul>
</td>
</tr>
</table>
  • 복사

댓글 전체

답변감사합니다...

좋은스킨이네요.. 그런데 테이블로 하나하나 나눠줬네요.
게시물 번호를 지정해서 불러올수 있다는게 신기하지만..
소스를 쳐다봐서 어떤 원리인지 이해가 안되네요 ^^;
© SIRSOFT
현재 페이지 제일 처음으로