모바일 최신글 적용 방법 -도움 좀 부탁드립니다.

모바일 최신글 적용 방법 -도움 좀 부탁드립니다.

QA

모바일 최신글 적용 방법 -도움 좀 부탁드립니다.

본문

아시는 분의 도움 좀 부탁드립니다.

실력이 부족하다 보니 사소한 것도 부탁을 드립니다.

모바일에서 최신글을 나타내기 위해 다음과 같은 소스를 사용했습니다.

작업은 드림위버 cc에서 유동형 격자를 사용했습니다.

 

<!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>모바일 최신글 </title>
<link href="../boilerplate.css" rel="stylesheet" type="text/css">
<link href="designsyle.css" rel="stylesheet" type="text/css">
<!--
To learn more about the conditional comments around the html tags at the top of the file:
paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/

Do the following if you're using your customized build of modernizr (http://www.modernizr.com/):
* insert the link to your js here
* remove the link below to the html5shiv
* add the "no-js" class to the html tags at the top
* you can also remove the link to respond.min.js if you included the MQ Polyfill in your modernizr build
-->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="../respond.min.js"></script>
</head>
<body>
 <div class="gridContainer clearfix">
  <div id="div1" class="fluid">
          <div class="fluid toplogo">
<img src="images/diy_logo.jpg" alt="다이정글"/>
</div>
          <div class="fluid latest1"><?php echo latest("basic", notice,5,20); ?></div>
  </div>
 </div>
</body>
</html>

 

위와 같이 빨간 글씨 부분에 최신글이 나타나게 소스를 넣었습니다.

www.artistclub.kr/mobile/index10.html 입니다.

동일한 게시판  최신글이

www.artistclub.kr/mobile 에서는 잘 나타납니다.

그부노드5에서 자동으로 모바일 가게 되어 있는데서는 잘 나타나는데  페이지를 만들어 넣어니 나타나지 않는군요.

최신글이 적용되게 상단에 넣는 소스가 있는것인지요?

어찌 하면 최신글에 새 페이지에서  나타날수 있는지 조언 부탁드립니다.

 

이 질문에 댓글 쓰기 :

답변 1

해당 페이지에서 head.php를 불러오고 있나요??

일반적으로 index.php를 보시면 head.php를 불러옵니다.

head.php에는 아래와 같은 소스를 인클루드 하고 있고요.

include_once(G5_LIB_PATH.'/latest.lib.php');

이 소스는 latest() 함수가 정의가 되어 있는 부분입니다.

이 부분을 인클루드 하지 않고는 latest() 함수를 사용할 수가 없기 때문에

www.artistclub.kr/mobile/index10.html

이 페이지를 접근하시면 아시겠지만 undefind function latest 라고 나옵니다.

즉 latest 함수가 정의가 되지 않았다는 의미 입니다.

 

include_once(G5_LIB_PATH.'/latest.lib.php');

이 부분을 상단에서 인클루드 하시기 바랍니다. 

답변을 작성하시기 전에 로그인 해주세요.
전체 24
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT