한줄메모장을 최신글로 뽑으니까 숫자로 표시가 되는데요 > 그누4 질문답변

그누4 질문답변

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

한줄메모장을 최신글로 뽑으니까 숫자로 표시가 되는데요 정보

한줄메모장을 최신글로 뽑으니까 숫자로 표시가 되는데요

첨부파일

iedol_memo.zip (116.0K) 9회 다운로드 2009-09-01 11:25:35

본문

왜이런건지 잘 모르겠어요.

basic도 그렇고 다른 최신글스킨으로도 똑같이해도 같은 증상이네요;;

ㅠㅠ

제가 또 알려드려야할께 뭔지..

썻던한줄메모장스킨두 첨부했어요~
  • 복사

댓글 전체

사용하시는 스킨 변수가 아래형식이라 최신글 출력시 보통 제목($list[$i]['subject'])을불러오는데
이모티콘 사용 번호를 불러오느거니 숫자로 나오는...^^
최신글스킨에서 해당 스킨만 내용을 불러오게하시면 될듯한데요.
이모티콘:wr_subject
내용:wr_content

$list[$i]['subject'] -->$list[$i]['wr_content']
subject ->wr_content이걸로 바꾸니깐 그냥 여백만뜨네요 ㅠㅠ
확실히 힌트는 얻었는데.. 진짜루 이모티콘순을 불러들이는데염
바다로님 말대로 설명도 저대로 맞는데 저렇게 되야되는데 왜 안될까요 ㅠ.ㅠ;;;
아랫 놈이 latest.skin.php 소스입니다. 이미지 부분은 빼고 나머지를 참조하시면 해결 될 겁니다.
아주 오래 전에 작업해 놓았던 것인데 아마도 해결이 되실 겁니다. 혹 변수명이 다르거든 해당 부분만 수정해 보십시오.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 이모티콘
function emoticon_html($str, $board_skin_path)
{
$emo_id = "$str";
$img_src = "<img src='./skin/board/check_memo/emoticons/$str.gif' width=18 height=18 border=0>";
$str = eregi_replace($emo_id, $img_src, $str);

return $str;
}
?>


<table width=100% cellpadding=0 cellspacing=0>
<tr>
    <td height='50'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/mt_hi.gif' border=0></a></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td align=center>
        <table width=95% border='0' cellpadding='0' cellspacing='0'>
        <tr>
            <td height=25 align='bottom'>
<? $emolist[$i][subject] = emoticon_html($list[$i][subject], $board_skin_path);?>
<?=$emolist[$i][subject]?>&nbsp;&nbsp;
<?       
echo $list[$i][reply];
echo $list[$i][icon_reply];
?>
<? $list[$i][wr_content] = conv_content($list[$i][wr_content], 0);?>
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><? if ($list[$i][wr_1] == '') { ?><font color="#666666"><?=cut_str($list[$i][wr_content],80,'...')?><? } else { ?><font color="#<?=$list[$i][wr_1]?>"><?=cut_str($list[$i][wr_content],80,'...')?></font><? } ?></a>
<?=$list[$i][icon_new];?>
</td>
<td width="90" align=center><?=$list[$i][name]?></td>
</tr>
        <tr><td bgcolor=#EBEBEB height=1 colspan='2'></td></tr>
        </table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>
메모장에서 쓴 글쓴이 명은 표시가 되요 이모티콘까지요;; 근데 여전히 내용은 최신글로 안뽑히네요 대체 외그런걸까요;;와...안되네...ㅠㅠ미치겠어염
메모장 최신글은 아미가님 답변처럼 제목이 아닌 content 를 subject 대신해서 사용해야 할겁니다.

<? $list[$i][wr_content] = conv_content($list[$i][wr_content], 0);?>
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><? if ($list[$i][wr_1] == '') { ?><font color="#666666"><?=cut_str($list[$i][wr_content],80,'...')?><? } else { ?><font color="#<?=$list[$i][wr_1]?>"><?=cut_str($list[$i][wr_content],80,'...')?></font><? } ?></a>

부분에서

$list[$i][wr_content  -> $list[$i][content] 로 바꿔보세요.
그래두 똑같네요...ㅎㅎ 이리저리 해봐도 안되네여 아무리 머리를 굴려봐도 출력이 안되네여 심지어는 있는 함수명 전부다 이것도 해보고 저것도 해보고했는데도 희한하게 내용만 출력이 안되네요 진짜 곡할노릇이네 @_@ 이론상으로는 되야 정상인데 다른곳을 손대야하는건지;;;
© SIRSOFT
현재 페이지 제일 처음으로