b

여분필드를 쪼개서 넣었는데 최신글에서 보여지게 하려면?

· 2012-06-14 (목) 18:14:42 · 1174 · 3
게시판 리스트에서는
<?=$ext2_02?>해서 보여졌는데 최신글에서는 안보여지네요..


latest.skin.php 페이지에서 어떻게 수정해야지요?


:::::::::::::::::: latest.skin.php ::::::::::::::::::::::::::::::
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
$ex1_filed = explode("|",$list[$i][wr_1]);
$ext1_00 = $ex1_filed[0];
$ext1_01 = $ex1_filed[1];
$ext1_02 = $ex1_filed[2];
$ext1_03 = $ex1_filed[3];
$ext1_04 = $ex1_filed[4];
$ext1_05 = $ex1_filed[5];
?>


<?=$list[$i][ext2_02]?> <- 이렇게 해도 안나오고
<?=$ext2_02?> <- 이렇게 해도 안나오고..

게시판 리스트에서 나오던디...

도와주세요~
|

댓글 3개

쪼갠필드명에 $ext2_02 가 없네요.

<?
$ex1_filed = explode("|",$list[$i][wr_1]);
$ext1_00 = $ex1_filed[0];
$ext1_01 = $ex1_filed[1];
$ext1_02 = $ex1_filed[2];
$ext1_03 = $ex1_filed[3];
$ext1_04 = $ex1_filed[4];
$ext1_05 = $ex1_filed[5];
?>
가 아니고

리스트 파일에 보면
$ext2_02 가 포함된 필드가 있을텐데
그 필드를 넣어보세요.

예
$ex2_filed = explode("|",$list[$i][wr_2]);
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
...
아 너무 길어서..안 적은건데...
<?
$ex2_filed = explode("|",$list[$i][wr_]);
$ext1_00 = $ex1_filed[0];
$ext1_01 = $ex1_filed[1];
$ext1_02 = $ex1_filed[2];
~
$ext3_08 = $ex3_filed[8];
$ext3_09 = $ex3_filed[9];
?>
다 적었는데..안나와서요..
latest.skin.php 파일
for 문 안에 소스 넣었나요..?

<? for ($i=0; $i<count($list); $i++) { ?>

// 요기 //

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

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
12-06-15 조회 1,031
12-06-15 조회 1,672
12-06-15 조회 1,080
12-06-15 조회 815
12-06-14 조회 870
12-06-14 조회 915
12-06-14 조회 1,655
12-06-14 조회 1,048
12-06-14 조회 1,190
12-06-14 조회 2,658
12-06-14 조회 1,800
12-06-14 조회 1,419
12-06-14 조회 1,175
12-06-14 조회 1,671
12-06-14 조회 2,345
12-06-14 조회 907
12-06-14 조회 889
12-06-14 조회 1,086
12-06-14 조회 1,712
12-06-14 조회 1,035