그림으로 만들어봣는데요
원하는 화면은 1 처럼 최신글을 클릭하면 지정 페이지 게시판에 클릭한글이 읽기모드로 나와야되는데
스킨 처음 적용하면 아래처럼 적혀있는데
<?=$list[$i][href]?> 이렇게되면 2번처럼 게시판이 화면에꽉차게나오고
그래서 원하는 페이지 주소를 적어서
echo "<a href='주소'>" 이렇게 적으면 3번 처럼 페이지에 게시판까지는 뜨는데 거기서 내용이 읽기모드가 아니라 리스트 모드로 나오네요
1번처럼 나오게할수있는 방법없나요?
echo "<a href='주소?{$view[$i]['href']}'>";
echo "<a href='주소?{$list[$i]['href']}'>";
echo <?=$list[$i][href='주소']?>
echo <?=$list[$i][href][주소]?>
이렇게 별형태로해봐도 안되네요
또
게시판 관리에서 상단화일 하단 화일에 메뉴가 만들어져 있는 화일을 입력하면 됩니다
메뉴를 head.php 에 만들었다면 ../head.php 를 입력해주세요
라고 해서 해봤는데 안되네요 제가php로 만든게아니라 html로 만들어서 그 게시판이 들어가있는
페이지를 썻거든요 ../gallery.htm 이런식으로 썻는데도3번 처럼 그대로 나오네요
<?=$list[$i][href]?>
이상태에서 썻습니다.
원하는 화면은 1 처럼 최신글을 클릭하면 지정 페이지 게시판에 클릭한글이 읽기모드로 나와야되는데
스킨 처음 적용하면 아래처럼 적혀있는데
<?=$list[$i][href]?> 이렇게되면 2번처럼 게시판이 화면에꽉차게나오고
그래서 원하는 페이지 주소를 적어서
echo "<a href='주소'>" 이렇게 적으면 3번 처럼 페이지에 게시판까지는 뜨는데 거기서 내용이 읽기모드가 아니라 리스트 모드로 나오네요
1번처럼 나오게할수있는 방법없나요?
echo "<a href='주소?{$view[$i]['href']}'>";
echo "<a href='주소?{$list[$i]['href']}'>";
echo <?=$list[$i][href='주소']?>
echo <?=$list[$i][href][주소]?>
이렇게 별형태로해봐도 안되네요
또
게시판 관리에서 상단화일 하단 화일에 메뉴가 만들어져 있는 화일을 입력하면 됩니다
메뉴를 head.php 에 만들었다면 ../head.php 를 입력해주세요
라고 해서 해봤는데 안되네요 제가php로 만든게아니라 html로 만들어서 그 게시판이 들어가있는
페이지를 썻거든요 ../gallery.htm 이런식으로 썻는데도3번 처럼 그대로 나오네요
<?=$list[$i][href]?>
이상태에서 썻습니다.
첨부파일
댓글 3개
고돌스님 처럼 해봣고 요셉님꺼로도해봣는데 2번으로밖에 나오질안네요 본문 내용출력은
어느 부분에 넣는지 몰르겟고요
최신글이 잇는 파일은 main.html이고 연결된 게시판이있는 파일은 gallery.htm 입니다.
제꺼 최신글 파일 내용 올립니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 3; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=50; //표시할 이미지의 가로사이즈
$imgheight=35; //표시할 이미지의 세로사이즈
$image_h = 5; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" font color="#999999">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align=center valign="top" style="padding:0px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="17"><a href='{$list[$i]['href']}'><strong><?=$board[bo_subject]?></strong></a></td>
</tr>
</table>
<!-- 최신글 제목 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" font color="#999999">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo $list[$i][icon_reply] . " ";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td valign='top' align='left'><a href='{$list[$i]['href']}'> <img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center'
style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #434343; padding:0px'></a></td></tr>";
//echo "<tr><td align='center' height='17'> <a href='{$list[$i]['href']}'>{ <span style='font-size:8pt;'>{$list[$i]['subject']}
</span></a></td></tr>";
echo "</table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
<tr>
<td width="1%" height="0" align="center" valign="top">
<tr>
</td></tr></table>
</td></tr></table>
</td></tr></table>
어느 부분에 넣는지 몰르겟고요
최신글이 잇는 파일은 main.html이고 연결된 게시판이있는 파일은 gallery.htm 입니다.
제꺼 최신글 파일 내용 올립니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$cols = 3; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=50; //표시할 이미지의 가로사이즈
$imgheight=35; //표시할 이미지의 세로사이즈
$image_h = 5; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" font color="#999999">
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align=center valign="top" style="padding:0px">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="17"><a href='{$list[$i]['href']}'><strong><?=$board[bo_subject]?></strong></a></td>
</tr>
</table>
<!-- 최신글 제목 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" font color="#999999">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="<?=$col_width?>%" align="center" valign='top'>
<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image; //썸네일이 없을경우 원본출력
echo $list[$i][icon_reply] . " ";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td valign='top' align='left'><a href='{$list[$i]['href']}'> <img src='$img' width='{$imgwidth}' height='{$imgheight}' align='center'
style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #434343; padding:0px'></a></td></tr>";
//echo "<tr><td align='center' height='17'> <a href='{$list[$i]['href']}'>{ <span style='font-size:8pt;'>{$list[$i]['subject']}
</span></a></td></tr>";
echo "</table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
<tr>
<td width="1%" height="0" align="center" valign="top">
<tr>
</td></tr></table>
</td></tr></table>
</td></tr></table>
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기