정말 도와주세요 최근게시물ㅠ_ㅠ 정보
정말 도와주세요 최근게시물ㅠ_ㅠ본문
최근게시물이요 이런식으로 보여질꺼구요
게시판 아이디는 각각
오른쪽 yfc01
왼쪽 clc01
오른쪽아래 teen01
왼쪽아래 board01
아래 bds01
현재 skin/latest/v2가 최신게시물스킨 폴더 디렉토리 이름이구요
그냥 폴더만 깔면 안나오니까 메인에 뜨게 할려구 index.php에
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? latest('basic','yfc01',5,45) ?></td>
<td><? latest('basic','clc01',5,45) ?></td>
</tr>
<tr>
<td><? latest('basic','teen01',5,45) ?></td>
<td><? latest('basic','board01',5,45) ?></td>
</tr>
<tr>
<td colspan="2"><? latest('v2gallery','pds01',5,45) ?></td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? latest('basic','yfc01',5,45) ?></td>
<td><? latest('basic','clc01',5,45) ?></td>
</tr>
<tr>
<td><? latest('basic','teen01',5,45) ?></td>
<td><? latest('basic','board01',5,45) ?></td>
</tr>
<tr>
<td colspan="2"><? latest('v2gallery','pds01',5,45) ?></td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
include_once("./_tail.php");
?>
이렇게 추가해서 넣었는데 메인에 아무것도 안뜨네요
어떻게 해야 하는건가요?? ㅠ_ㅠ 제가 방법을 이상하게 한건지.............
현재 홈페이지는요 아무것도 안뜨는.... http://yfcnz.com/gnu4/
댓글 전체

소스를 보여주세요~
죄송해요 계속 html로 썼더니 소스가 안보이네요 ㅡ0ㅡ;;;;

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?= latest('basic','yfc01',5,45) ?></td>
<td><?= latest('basic','clc01',5,45)?></td>
</tr>
<tr>
<td><?= latest('basic','teen01',5,45) ?></td>
<td><?= latest('basic','board01',5,45) ?></td>
</tr>
<tr>
<td colspan="2"><?= latest('v2gallery','pds01',5,45) ?></td>
</tr>
</table
<tr>
<td><?= latest('basic','yfc01',5,45) ?></td>
<td><?= latest('basic','clc01',5,45)?></td>
</tr>
<tr>
<td><?= latest('basic','teen01',5,45) ?></td>
<td><?= latest('basic','board01',5,45) ?></td>
</tr>
<tr>
<td colspan="2"><?= latest('v2gallery','pds01',5,45) ?></td>
</tr>
</table

헉 어느새 ㅠㅠ

<? latest('basic','yfc01',5,45) ?> 를
<?=latest('basic','yfc01',5,45) ?> 이렇게 해보시겠어요? = 이게 추가되었습니다~
<?=latest('basic','yfc01',5,45) ?> 이렇게 해보시겠어요? = 이게 추가되었습니다~
index.php에 넣는건 맞긴 맞는건가요???????
따로 latest.php를 안생성해도 되는거죠????
따로 latest.php를 안생성해도 되는거죠????
미뎌맨님께서 올리신 index.php 소스에서 <? 와 latest( ... 사이에 "="를 추가하시라는 것입니다.
수정전 :
<td><? latest('basic','yfc01',5,45) ?></td>
<td><? latest('basic','clc01',5,45) ?></td>
수정후 :
<td><?=latest('basic','yfc01',5,45) ?></td>
<td><?=latest('basic','clc01',5,45) ?></td>
수정전 :
<td><? latest('basic','yfc01',5,45) ?></td>
<td><? latest('basic','clc01',5,45) ?></td>
수정후 :
<td><?=latest('basic','yfc01',5,45) ?></td>
<td><?=latest('basic','clc01',5,45) ?></td>
네 root 님 무슨말인지 아는데요
제 말은 index.php에서 제가 처음에 제 생각대로 넣던게
맞게 넣은건지 하던 소리였습니다~ ^^;;
제 말은 index.php에서 제가 처음에 제 생각대로 넣던게
맞게 넣은건지 하던 소리였습니다~ ^^;;
index.php 상단에 인클루도한 다음 문장
include_once("$g4[path]/lib/latest.lib.php");
에서 latest()에 대한 정의가 들어있습니다.
latest.php를 따로 생성하지 않으셔도 됩니다.
include_once("$g4[path]/lib/latest.lib.php");
에서 latest()에 대한 정의가 들어있습니다.
latest.php를 따로 생성하지 않으셔도 됩니다.

위처럼 코딩해도 되지만...
아래처럼 코딩해도 됩니다...
차이는...
_head.php, _tail.php 에 인클루드 된 파일을 불러올 것인가...
아니면 한 페이지에서 디자인 할 것인가~
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><?=latest("basic", "yfc01", 5, 45)?></td>
<td width="50%"><?=latest("basic", "clc01", 5, 45)?></td>
</tr>
<tr>
<td width="50%"><?=latest("basic", "teen01", 5, 45)?></td>
<td width="50%"><?=latest("basic", "board01", 5, 45)?></td>
</tr>
<tr>
<td width="100%" colspan="2"><?=latest("v2gallery", "pds01", 5, 45)?></td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("$g4[path]/tail.sub.php");
?>
아래처럼 코딩해도 됩니다...
차이는...
_head.php, _tail.php 에 인클루드 된 파일을 불러올 것인가...
아니면 한 페이지에서 디자인 할 것인가~
<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><?=latest("basic", "yfc01", 5, 45)?></td>
<td width="50%"><?=latest("basic", "clc01", 5, 45)?></td>
</tr>
<tr>
<td width="50%"><?=latest("basic", "teen01", 5, 45)?></td>
<td width="50%"><?=latest("basic", "board01", 5, 45)?></td>
</tr>
<tr>
<td width="100%" colspan="2"><?=latest("v2gallery", "pds01", 5, 45)?></td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("$g4[path]/tail.sub.php");
?>
