블로그 최신글에서 클릭시 블로그 만들기 팝업이 뜨네요
0.0.6으로 업그레이드하고 블로그 최신글을 클릭하면, 계속 블로그 만들기라는 팝업이 뜨면서, 로그인한 자신의 블로그로만 가는 현상이 있네요.
어떻게 처리해야 할지요...
댓글 3개
18년 전
최신글 적용이 잘못되어있나 봅니다.
적용하신 소스를 보여주셔야 답변이 가능할 것 같습니다.
적용하신 소스를 보여주셔야 답변이 가능할 것 같습니다.
18년 전
아래와 같은 소스로 적용했습니다.
<!--새로운글-->
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<?
if ($dv_id)
$sql_dv_id = " and division_id='$dv_id' ";
$sql = " select * from {$gb4['post_table']} where secret=1 $sql_dv_id order by id desc limit 3 ";
$result = sql_query($sql);
for($i=0;$row=sql_fetch_array($result);$i++) {
if ($i>0) {
echo "<tr><td height=5></td></tr>";
echo "<tr><td height=1 bgcolor=#d2d2d2></td></tr>";
echo "<tr><td height=5></td></tr>";
}
$sql2 = " select mb_id, writer from {$gb4['blog_table']} where id = '$row[blog_id]' ";
$row2 = sql_fetch($sql2);
$sql3 = " select category_name from {$gb4['category_table']} where id = '$row[category_id]' ";
$row3 = sql_fetch($sql3);
if( empty($row3[category_name]) ) $row3[category_name] = '전체';
$mmdd = date("m-d", strtotime($row[post_date]));
$content = $row[content];
$content = strip_tags($content);
$content = cut_str($content, 150);
echo "<tr><td height=25><span style='font-size:11pt;font-weight:bold;letter-spacing:-1px;'>";
echo "<a href='".get_post_url($row[id],$row2[mb_id])."'>$row[title]</a></span></td></tr>";
echo "<tr><td height=20><span>$row2[writer]</span> <span class=cloudy>님이 작성</span> <span class='cloudy small'>($mmdd, $row3[category_name])</span></td></tr>";
echo "<tr><td class=lh style='word-break:break-all;'><div class=cloudy>$content</div></td></tr>";
}
if ($i==0) {
echo "<tr><td height=100>새로 올라온 글이 아직 없습니다.</td></tr>";
}
?> </table>
<!--새로운글끝-->
<!--새로운글-->
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<?
if ($dv_id)
$sql_dv_id = " and division_id='$dv_id' ";
$sql = " select * from {$gb4['post_table']} where secret=1 $sql_dv_id order by id desc limit 3 ";
$result = sql_query($sql);
for($i=0;$row=sql_fetch_array($result);$i++) {
if ($i>0) {
echo "<tr><td height=5></td></tr>";
echo "<tr><td height=1 bgcolor=#d2d2d2></td></tr>";
echo "<tr><td height=5></td></tr>";
}
$sql2 = " select mb_id, writer from {$gb4['blog_table']} where id = '$row[blog_id]' ";
$row2 = sql_fetch($sql2);
$sql3 = " select category_name from {$gb4['category_table']} where id = '$row[category_id]' ";
$row3 = sql_fetch($sql3);
if( empty($row3[category_name]) ) $row3[category_name] = '전체';
$mmdd = date("m-d", strtotime($row[post_date]));
$content = $row[content];
$content = strip_tags($content);
$content = cut_str($content, 150);
echo "<tr><td height=25><span style='font-size:11pt;font-weight:bold;letter-spacing:-1px;'>";
echo "<a href='".get_post_url($row[id],$row2[mb_id])."'>$row[title]</a></span></td></tr>";
echo "<tr><td height=20><span>$row2[writer]</span> <span class=cloudy>님이 작성</span> <span class='cloudy small'>($mmdd, $row3[category_name])</span></td></tr>";
echo "<tr><td class=lh style='word-break:break-all;'><div class=cloudy>$content</div></td></tr>";
}
if ($i==0) {
echo "<tr><td height=100>새로 올라온 글이 아직 없습니다.</td></tr>";
}
?> </table>
<!--새로운글끝-->
18년 전
http://sir.co.kr/bbs/board.php?bo_table=gblog_qa&wr_id=898
게시판 목록
지블로그 질답
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 229 | 18년 전 | 1625 | ||
| 228 | 18년 전 | 1352 | ||
| 227 | 18년 전 | 1581 | ||
| 226 | 18년 전 | 1414 | ||
| 225 | 18년 전 | 1468 | ||
| 224 | 18년 전 | 1390 | ||
| 223 | 18년 전 | 1821 | ||
| 222 |
광돌사나이
|
18년 전 | 1557 | |
| 221 | 18년 전 | 1503 | ||
| 220 | 18년 전 | 1352 | ||
| 219 | 18년 전 | 1496 | ||
| 218 | 18년 전 | 1392 | ||
| 217 | 18년 전 | 1366 | ||
| 216 | 18년 전 | 1934 | ||
| 215 | 18년 전 | 1580 | ||
| 214 | 18년 전 | 1367 | ||
| 213 | 18년 전 | 1321 | ||
| 212 | 18년 전 | 1429 | ||
| 211 |
Gatzz
|
18년 전 | 1429 | |
| 210 | 18년 전 | 1613 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기