진짜초보 ))처음 스킨올리는중..스킨 올리는법 정보
진짜초보 ))처음 스킨올리는중..스킨 올리는법본문
스킨올리는 법 알려주세요
지금 올리는 스킨이 아래링크 거든요.
여기서
이미지 파일은 어느위치에 올리고
php파일은 또 어느위치에 올리는 건가요??
저는 php파일은
/public_html/gnuboard4/여기에올렸고.
이미지는 /public_html/gnuboard4/img/에 올렸거든요
근데 화면이 깨져서 나오네요..
틀린건가요?
지금 utf라서요 에디터에서 변경한뒤에 올렸거든요
php파일을 에디터에서 변경한뒤에 올리는것 맞죠?
그외 다른질문 몇가지.
메인화면에 이미지를 넣으려면 소스가 어떻게되야하나요?
그리고...게시판상단에 이미지 넣기말고
그 한번더 윗줄에 이미지를 넣으려면 어떻게하나요..
친절하게 설명해주세요. 감사합니다^^
댓글 전체

<img src="<?=$g4[path]?>/file/ca/line_mid_p1.gif">
파일을 살펴보면 파일 경로입니다..
풀어서 보시면
/public_html/gnuboard4/file/ca/line_mid_p1.gif
이런 경로에 이미지가 있어야 한다는 겁니다...
파일을 살펴보면 파일 경로입니다..
풀어서 보시면
/public_html/gnuboard4/file/ca/line_mid_p1.gif
이런 경로에 이미지가 있어야 한다는 겁니다...

<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="7" height="7"><img src="<?=$g4[path]?>/img/line_mid_p1.gif"></td>
<td background="<?=$g4[path]?>/img/line_mid_p5.gif"></td>
<td width="7"><img src="<?=$g4[path]?>/img/line_mid_p2.gif"></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/img/line_mid_p8.gif"></td>
<td>
<?
// 나의 최근게시물
if ($member[mb_id])
{
$new_count = 5;
$cnt = 0;
$sql = " select bo_table, wr_parent from $g4[board_new_table] a
where mb_id = '$member[mb_id]'
-- and a.wr_id = a.wr_parent
group by bo_table, wr_parent
order by bn_id desc
limit $new_count ";
$res = sql_query($sql);
echo "<table width=95% cellpadding=0 cellspacing=0 align=center>";
echo "<tr height=25><td><img src='$g4[path]/img/list_icon.gif'> <a href='$g4[bbs_path]/new.php?view=w&mb_id=$member[mb_id]'><span style='color:#333333;'><b>나의 최근게시물</b></span></a></td></tr><tr><td height=1 bgcolor=#FF9900></td></tr>";
for ($i=0; $row=sql_fetch_array($res), $i<$new_count; $i++)
{
if (!$row[bo_table])
{
continue;
}
$tmp_table = $g4[write_prefix].$row[bo_table];
$sql2 = " select wr_subject, wr_comment from $tmp_table where wr_id = '$row[wr_parent]' ";
$row2 = sql_fetch($sql2);
$subj = get_text($row2[wr_subject]);
$comment = "";
if ($row2[wr_comment])
$comment = "<span class=small>($row2[wr_comment])</span>";
echo "<tr height=23><td class=bg_menu2 title='$subj'>";
echo "<nobr style='display:block;overflow:hidden;width:160px;'>";
echo "<img src='$g4[path]/img/list_icon2.gif'> <a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]&wr_id=$row[wr_parent]'>";
echo "<span style='color:#666666;'>$comment $subj</span></a>";
echo "</nobr></td></tr>";
$cnt++;
}
if (!$cnt)
echo "<tr><td><span style='color:gray;'>게시글이 없습니다.</span></td></tr>";
echo "</table>\n";
}
?>
</td>
<td background="<?=$g4[path]?>/img/line_mid_p6.gif"></td>
</tr>
<tr>
<td height="7"><img src="<?=$g4[path]?>/img/line_mid_p4.gif"></td>
<td background="<?=$g4[path]?>/img/line_mid_p7.gif"></td>
<td><img src="<?=$g4[path]?>/img/line_mid_p3.gif"></td>
</tr>
</table>
소스를 이렇게 바꾸어 보세요..
<tr>
<td width="7" height="7"><img src="<?=$g4[path]?>/img/line_mid_p1.gif"></td>
<td background="<?=$g4[path]?>/img/line_mid_p5.gif"></td>
<td width="7"><img src="<?=$g4[path]?>/img/line_mid_p2.gif"></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/img/line_mid_p8.gif"></td>
<td>
<?
// 나의 최근게시물
if ($member[mb_id])
{
$new_count = 5;
$cnt = 0;
$sql = " select bo_table, wr_parent from $g4[board_new_table] a
where mb_id = '$member[mb_id]'
-- and a.wr_id = a.wr_parent
group by bo_table, wr_parent
order by bn_id desc
limit $new_count ";
$res = sql_query($sql);
echo "<table width=95% cellpadding=0 cellspacing=0 align=center>";
echo "<tr height=25><td><img src='$g4[path]/img/list_icon.gif'> <a href='$g4[bbs_path]/new.php?view=w&mb_id=$member[mb_id]'><span style='color:#333333;'><b>나의 최근게시물</b></span></a></td></tr><tr><td height=1 bgcolor=#FF9900></td></tr>";
for ($i=0; $row=sql_fetch_array($res), $i<$new_count; $i++)
{
if (!$row[bo_table])
{
continue;
}
$tmp_table = $g4[write_prefix].$row[bo_table];
$sql2 = " select wr_subject, wr_comment from $tmp_table where wr_id = '$row[wr_parent]' ";
$row2 = sql_fetch($sql2);
$subj = get_text($row2[wr_subject]);
$comment = "";
if ($row2[wr_comment])
$comment = "<span class=small>($row2[wr_comment])</span>";
echo "<tr height=23><td class=bg_menu2 title='$subj'>";
echo "<nobr style='display:block;overflow:hidden;width:160px;'>";
echo "<img src='$g4[path]/img/list_icon2.gif'> <a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]&wr_id=$row[wr_parent]'>";
echo "<span style='color:#666666;'>$comment $subj</span></a>";
echo "</nobr></td></tr>";
$cnt++;
}
if (!$cnt)
echo "<tr><td><span style='color:gray;'>게시글이 없습니다.</span></td></tr>";
echo "</table>\n";
}
?>
</td>
<td background="<?=$g4[path]?>/img/line_mid_p6.gif"></td>
</tr>
<tr>
<td height="7"><img src="<?=$g4[path]?>/img/line_mid_p4.gif"></td>
<td background="<?=$g4[path]?>/img/line_mid_p7.gif"></td>
<td><img src="<?=$g4[path]?>/img/line_mid_p3.gif"></td>
</tr>
</table>
소스를 이렇게 바꾸어 보세요..
마침 오늘 저두 이 스킨을 제 홈페이지에 썼거든요.
보일부분에 넣으실 때
<? if($member[mb_id]) {?> <---------------- 요부분 하구요.
<? include_once("$g4[path]/skin/latest/my_view/my_view.php"); //나의 최근게시물?>
<? } ?> <---------------------- 요부분 넣어주셔야 합니다.
이 두분을 같이 넣어주셔야 제대로 보입니다.
일단은 저두 실력이 없는 관계로 뭐라 말씀드리기 힘든데
스킨 이미지 경로하고 파일 경로를 님 홈페이지에 맞게 수정하셔야 합니다.
위 처럼 저도 제 사이트에 맞게 경로를 수정했습니다.
보일부분에 넣으실 때
<? if($member[mb_id]) {?> <---------------- 요부분 하구요.
<? include_once("$g4[path]/skin/latest/my_view/my_view.php"); //나의 최근게시물?>
<? } ?> <---------------------- 요부분 넣어주셔야 합니다.
이 두분을 같이 넣어주셔야 제대로 보입니다.
일단은 저두 실력이 없는 관계로 뭐라 말씀드리기 힘든데
스킨 이미지 경로하고 파일 경로를 님 홈페이지에 맞게 수정하셔야 합니다.
위 처럼 저도 제 사이트에 맞게 경로를 수정했습니다.

if구문으로 테이블 처리하는 겁니다...백발청년님 처럼 해주셔도 되구요 안쪽으로 넣어 주셔도 됩니다..
<?
echo "<table width='100%' cellspacing='0' cellpadding='0'> ";
~~~~~
// 나의 최근게시물
if ($member[mb_id])
<?
echo "<table width='100%' cellspacing='0' cellpadding='0'> ";
~~~~~
// 나의 최근게시물
if ($member[mb_id])