아래꺼 타이틀 넣는거 질문 정리해서 다시 질문 드려요. > 그누4 질문답변

그누4 질문답변

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

아래꺼 타이틀 넣는거 질문 정리해서 다시 질문 드려요. 정보

아래꺼 타이틀 넣는거 질문 정리해서 다시 질문 드려요.

본문

$ex1_filed = explode("|",$view[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];
$ext1_06  = $ex1_filed[6];
$ext1_07  = $ex1_filed[7];
$ext1_08  = $ex1_filed[8];
$ext1_09  = $ex1_filed[9];

위와같이 여분필드를 분할해서 사용하는데
분할한 $ext1_00  = $ex1_filed[0]; 첫번째 항목을 타이틀로 불러오는 방법 질문 드립니다.

board.php 142번째 줄에
$g4[title] = "$group[gr_subject] > $board[bo_subject] > " . strip_tags(conv_subject($write[wr_subject], 255));

$g4[title] = "$group[gr_subject] > $board[bo_subject] > $write[wr_1]" . strip_tags(conv_subject($write[wr_subject], 255));

이렇게 통째로 부르지 않고
$ext1_00  = $ex1_filed[0]; 이부분만 불러올려면 어떻게 하면 될까요?
  • 복사

댓글 전체

$ex1_filed = explode("|",$view[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];
$ext1_06  = $ex1_filed[6];
$ext1_07  = $ex1_filed[7];
$ext1_08  = $ex1_filed[8];
$ext1_09  = $ex1_filed[9];
이부분이 타이틀출력부분에 없어서 전체로 불러올수밖에 없는거 같은데
쪼개는걸 타이틀출력부분에 넣고 한번 해보세요.
$write[wr_1] 대신에 원래 $ext1_00 으로 하시고.
이상 별 도움 안되는 댓글만 주구장창 달았네요..
꼭 성공하시길 바랍니다. 저도 다시 언어공부기초부터 해야겠어요.
저는 이만 퇴근합니다. 거진 매일 이시간 퇴근이지만 ㅡㅡ;
잘안되요..
아래는 latest.skin.php 파일인데 이거보고 참고좀 해서 좀 부탁드릴께요

            <?
$ex1_filed = explode("|", $list[$i][wr_1]);
$ext1_00  = explode(" ", $ex1_filed[0]);
$ex2_filed = explode("|", $list[$i][wr_2]);
$ext2_02  = explode(" ", $ex2_filed[2]);
$ext2_09  = explode(" ", $ex2_filed[9]);

$ex3_filed = explode("|", $list[$i][wr_3]);
$ext3_08  = explode(" ", $ex3_filed[8]);

    $title = get_text($list[$i][wr_subject]);
    $content = cut_str(get_text($list[$i][wr_content]), 75);
    $img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
    if (!file_exists($img) || !$list[$i][file][0][file])
    $img = "$latest_skin_path/img/noimage.gif";
    $href = "$g4[bbs_path]/board.php?bo_table=$bo_table";

            echo "<table border='0' cellspacing='0' cellpadding='0'><tr><td width='10'></td><td width='140' align='left'>";
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i]['href']}'><b><font color='#0099ff'>{$ext1_00[0]}</font></b></a>";
echo "</td><td width='380' align='left'>";
echo "<a href='{$list[$i][href]}'>";
            if ($list[$i][is_notice])
                echo "<font style='font-family:굴림; font-size:9pt; color:#FF0000;'><strong>{$list[$i][subject]}</strong></font>";
            else
                echo "<font style='font-family:굴림; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
            echo "</a>";

            if ($list[$i][comment_cnt])
                echo "&nbsp;<span style='font-family:굴림; font-size:8pt; color:#FF6633;'>{$list[$i][comment_cnt]}</span>";
echo "</td><td width='120' align='left'>";
echo "<a href='{$list[$i]['href']}'><font color='#ff6600'>{$list[$i][ca_name]}</font></a>";
echo "</td></tr></table>";

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            ?>
© SIRSOFT
현재 페이지 제일 처음으로