게시판스킨(북마크) 잘사용하고 있습니다.
그런데 사이트를 만들다보니 필요한 부분이 있는데 확장변수를 이용해도 리스트에 항목추가가 안됩니다.
사이트에 들어가 보시면 제목과 조회수 사이에 전화번호라는 확장 변수를 넣고 싶거든요.
어느부분을 수정해야 하는지요?
수고하세요
댓글 5
-
감사합니다. 적용해 보겠습니다.
-
한방에 성공을 못했습니다. -_-; 죄송합니다. 에러상태는 Parse error: syntax error, unexpected '}' in /home/hosting_users/votus2/www/xe/classes/template/TemplateHandler.class.php(527) : eval()'d code on line 75 입니다.
제가 수정한것은 스킨관리에서 최근수정일을 출력하게 해놓고 _style.bookmark.html에서67줄을 수정하였고 184줄을 수정했습니다. 116줄에 <display_last_update=='Y')-->!--@if($module_info->display_last_update=='Y')--><td class="date">{zdate($document->get('last_update'),'Y-m-d H:i')}</td><!--@end--> 이것은 상관이 없는지요? -
저 한테 죄송할거 까지야 있습니까 ^.^
그렇게 어렵지 않은 수정인데 뭔가 문제가 생긴 모양입니다.
그리고 116줄은 공지사항 부분이라 수정하지 않아도 별 문제는 없구요.
https://moonhouse.co.kr/zbxe/285111
님이 원하는 기능을 추가한 새로운 버전을 올려 놓았으니 한번 사용해 보세요.
-
매우 감사합니다. 어려움이 한순간에 싹 날아갔네요...^^
북마크게시판이 기본게시판의 확장변수 출력부분을 따르지 않습니다.
바로가기 부분을 리스트에 출력할려니 그렇습니다.
님이 원하시는 전화번호 부분을 리스트에 넣으실려면 바로가기 부분 넣는 방법으로 넣으시면 됩니다.
조금 더 간단하게 편집할려면 사용하지 않는 메뉴부분에 전화번호부분을 대입시키면 됩니다.
예를 들어서 "최근 변경시간 표시"을 사용하지 않는다면
그 부분에 확장변수 - 전화번호를 출력하게 하고 게시판 스킨관리에서 "최근 변경시간 표시"를 출력으로 설정하시면 그 부분에 전화번호가 출력됩니다.
67줄 아래와 같이 수정
<!--@if($module_info->display_last_update=='Y')--><th scope="col" class="date"><div>전화번호</div></th><!--@end-->
--중간생략--
<!--// 일반 글 출력 -->
--중간생략--
<!--@if($module_info->display_last_update=='Y')--><td class="date">{$document->getExtraValue(3)}</td><!--@end-->
님의 경우는 전화번호의 확장변수 순서가 3번째 인 것 같으므로 3을 적어주시면 됩니다.