테스트 사이트 - 개발 중인 베타 버전입니다

제목 출력 질문 드립니다

· 15년 전 · 1581 · 2
sam1.jpg
sam2.jpg
관리자 로그인시에는 제목이 출력이 되고, 로그인을 하지 않은 상태에서 제목이 보이지 않는 문제입니다.

해당 게시판 권한은 글쓰기 권한 제외하고 모두 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
입니다.

댓글 작성

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

로그인하기

댓글 2개

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문이 필요 없어 보입니다.
15년 전
덕분에 잘 처리했습니다 답변 감사합니다 ^^

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]}'>";

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440