제목 출력 질문 드립니다 정보
제목 출력 질문 드립니다
본문
관리자 로그인시에는 제목이 출력이 되고, 로그인을 하지 않은 상태에서 제목이 보이지 않는 문제입니다.
해당 게시판 권한은 글쓰기 권한 제외하고 모두 1로 설정해 놓은 상태구요,
현상은 첨부한 이미지와 같습니다.
하나는 제목이 보이지 않고(비로그인), 또 하나는 제목이 보이는(로그인상태) 현상입니다.
-소스-
$style = "";
if ($list[$i][icon_new])
$style = " style='font-weight:normal;' ";
$subject = "<a href='{$list[$i][href]}' onfocus='this.blur()'><span $style>".cut_str($list[$i][subject],77)."</span></a>";
$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="thumb_1_2.gif";
else
$bg="thumb_1.gif";
echo "<td width='{$td_width}%' valign=top style='word-break:break-all;'>\n";
echo "<table cellpadding='0' cellspacing='0' border='0'>\n";
echo "<tr><td>$img";
// 사진 밑의 제목과 Exif 정보를 출력하는 내용
echo "<div class='highslide-caption'>".cut_str($list[$i][subject],77)."";
$exif = @exif_read_data("{$list[$i][file][0][path]}/{$list[$i][file][0][file]}");
if (isset($exif[Make])) echo "<br /><span class='view_info'>Info. #{$pnt}</span>" ;
if (isset($exif[Make]) || isset($exif[Model])) echo " <span class='exif_info'> || <strong>Camera</strong> $exif[Model] | ";
if (isset($exif[DateTimeOriginal])) echo "<strong>date</strong> <span class='exif_info'>$exif[DateTimeOriginal] | ";
if (isset($exif[ISOSpeedRatings])) echo "<stron2010-09-20g>ISO</strong> $exif[ISOSpeedRatings] | ";
if (isset($exif[COMPUTED][ApertureFNumber])) echo "<strong>F-Number</strong> {$exif[COMPUTED][ApertureFNumber]} | ";
if (isset($exif[ExposureTime])) echo "<strong>Shutter</strong> $exif[ExposureTime] ||</span>";
echo "</div></td></tr>\n";
if ($is_checkbox) echo "<tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n";
if ($is_checkbox) echo "<tr><td align='center'>{$list[$i][datetime2]}";
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";
echo "</td></tr>\n";
echo "</table></td>\n";
}
사용 게시판 스킨은 http://sir.co.kr/bbs/tb.php/g4_skin/92423/5eb908127aa37e5baf9231eca485a0f0
입니다.
해당 게시판 권한은 글쓰기 권한 제외하고 모두 1로 설정해 놓은 상태구요,
현상은 첨부한 이미지와 같습니다.
하나는 제목이 보이지 않고(비로그인), 또 하나는 제목이 보이는(로그인상태) 현상입니다.
-소스-
$style = "";
if ($list[$i][icon_new])
$style = " style='font-weight:normal;' ";
$subject = "<a href='{$list[$i][href]}' onfocus='this.blur()'><span $style>".cut_str($list[$i][subject],77)."</span></a>";
$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="thumb_1_2.gif";
else
$bg="thumb_1.gif";
echo "<td width='{$td_width}%' valign=top style='word-break:break-all;'>\n";
echo "<table cellpadding='0' cellspacing='0' border='0'>\n";
echo "<tr><td>$img";
// 사진 밑의 제목과 Exif 정보를 출력하는 내용
echo "<div class='highslide-caption'>".cut_str($list[$i][subject],77)."";
$exif = @exif_read_data("{$list[$i][file][0][path]}/{$list[$i][file][0][file]}");
if (isset($exif[Make])) echo "<br /><span class='view_info'>Info. #{$pnt}</span>" ;
if (isset($exif[Make]) || isset($exif[Model])) echo " <span class='exif_info'> || <strong>Camera</strong> $exif[Model] | ";
if (isset($exif[DateTimeOriginal])) echo "<strong>date</strong> <span class='exif_info'>$exif[DateTimeOriginal] | ";
if (isset($exif[ISOSpeedRatings])) echo "<stron2010-09-20g>ISO</strong> $exif[ISOSpeedRatings] | ";
if (isset($exif[COMPUTED][ApertureFNumber])) echo "<strong>F-Number</strong> {$exif[COMPUTED][ApertureFNumber]} | ";
if (isset($exif[ExposureTime])) echo "<strong>Shutter</strong> $exif[ExposureTime] ||</span>";
echo "</div></td></tr>\n";
if ($is_checkbox) echo "<tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n";
if ($is_checkbox) echo "<tr><td align='center'>{$list[$i][datetime2]}";
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";
echo "</td></tr>\n";
echo "</table></td>\n";
}
사용 게시판 스킨은 http://sir.co.kr/bbs/tb.php/g4_skin/92423/5eb908127aa37e5baf9231eca485a0f0
입니다.
댓글 전체
if ($is_checkbox) // 체크박스 체크 항목은 테크 박스가 들어가는 라인에만 적용해주시면 될듯
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";
if ($is_checkbox) echo "<tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n"; //제목
if ($is_checkbox) echo "<tr><td align='center'>{$list[$i][datetime2]}"; / 날짜
여긴 if문이 필요 없어 보입니다.
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";
if ($is_checkbox) echo "<tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n"; //제목
if ($is_checkbox) echo "<tr><td align='center'>{$list[$i][datetime2]}"; / 날짜
여긴 if문이 필요 없어 보입니다.
덕분에 잘 처리했습니다 답변 감사합니다 ^^
echo "<tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n";
echo "<tr><td align='center'>{$list[$i][datetime2]}";
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";
echo "<tr><td align='center'><a href='{$list[$i][href]}' onfocus='this.blur()'>$subject</a> <a href=\"{$list[$i][comment_href]}\">{$list[$i][comment_cnt]}</a></td></tr>\n";
echo "<tr><td align='center'>{$list[$i][datetime2]}";
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'>";