게시판 스킨 내용창에서 제목이 안나와요 ... ㅜ.ㅜ 정보
게시판 스킨 내용창에서 제목이 안나와요 ... ㅜ.ㅜ본문
댓글 전체
일반적인 경우라면 <?=$view[subject]?> 또는 <?=$view[wr_subject]?>
그런데 어떤 스킨을 어떻게 만졌는데 상단과 같이 되었다는 과정은 누락되어 있군요.
또한, 경우에 따라서는 그누보드 배포버전에 따라서도,
그 제목의 표시 방법(관련 변수의 언급)에 약간의 차이가 있을 가능성도 무시할 수 없습니다.
질문은 한번에 명확히 파악될 수 있도록 좀 더 신경을 쓰셔야 할 것 같습니다.
그런데 어떤 스킨을 어떻게 만졌는데 상단과 같이 되었다는 과정은 누락되어 있군요.
또한, 경우에 따라서는 그누보드 배포버전에 따라서도,
그 제목의 표시 방법(관련 변수의 언급)에 약간의 차이가 있을 가능성도 무시할 수 없습니다.
질문은 한번에 명확히 파악될 수 있도록 좀 더 신경을 쓰셔야 할 것 같습니다.
글이 안보이는게 아니라 점으로 표현된다는 말 아닌가요?
그렇다면, 각 게시판 설정에 보면 제목길이가 너무 작은 숫자로 적혀 있어서 그런거 아닐까요?
상상이 지나치나? ^^;
그렇다면, 각 게시판 설정에 보면 제목길이가 너무 작은 숫자로 적혀 있어서 그런거 아닐까요?
상상이 지나치나? ^^;
그건 아니에요 목록이 아니구 내용창에서 만 제목이 안보여요^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel='stylesheet' type='text/css' href='<?=$board_skin_path?>/style.css'>
<style>
.mystyle { font-size:9pt; color:#5E5E5E}
.v_padding1 { PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.v_padding2 { PADDING-LEFT: 5px; PADDING-right: 0px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.v_padding3 { PADDING-LEFT: 0px; PADDING-right: 0px; PADDING-BOTTOM: 7px; PADDING-TOP: 10px; }
.v_padding4 { PADDING-LEFT: 5px; PADDING-right: 0px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.v_padding5 { PADDING-LEFT: 10px; PADDING-right: 20px; PADDING-BOTTOM: 7px; PADDING-TOP: 10px; }
.v_padding6 { PADDING-LEFT: 20px; PADDING-right: 20px; PADDING-BOTTOM: 20px; PADDING-TOP: 20px; }
.v_text1 { BORDER-RIGHT: #D3D3D3 1px solid; BORDER-TOP: #D3D3D3 1px solid; BORDER-LEFT: #D3D3D3 1px solid; BORDER-BOTTOM: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
</style>
<table width=<?=$width?> align="center" cellpadding="0" cellspacing="0"><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td width="100%" height="1" bgcolor=F0F0F0></td></tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
<tr height=30 align="center">
<td
width="10%" align="center" valign="middle" bgcolor="#FAFAFA" style="border-width:1; border-top-color:black; border-right-color:rgb(240,240,240); border-bottom-color:rgb(240,240,240); border-left-color:black; border-top-style:none; border-right-style:solid; border-bottom-style:none; border-left-style:none;">
<font style="font-family:돋움; font-size:9pt; color:888888"><strong>제목</strong></font></td>
<td style="border-width:1; border-top-color:black; border-right-color:black; border-bottom-color:rgb(240,240,240); border-left-color:rgb(240,240,240); border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:solid;"
width="90%" align="left" valign="middle" bgcolor="FAFAFA">
<font class="mystyle"><b> <? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
<? if ($board[bo_1]) { // 옵션1에 내용이 있으면 view화면의 제목길이에 적용한다.
$view[subject]=cut_str($view[subject],$board[bo_1]);
echo "$view[subject]";
} else { //옵션 1에 내용이 없으면, list화면의 제목길이를 view화면의 제목에도 적용한다.
$view[subject]=cut_str($view[subject],$board[bo_subject_len]);
echo "$view[subject]";
}
?>
</b></font></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
<tr height=30 align="center">
<td style="border-width:1; border-top-color:rgb(240,240,240); border-right-color:rgb(240,240,240); border-bottom-color:black; border-left-color:black; border-top-style:solid; border-right-style:solid; border-bottom-style:none; border-left-style:none;"
width="10%" align="center" valign="middle" bgcolor="FAFAFA">
<font style="font-family:돋움; font-size:9pt; color:888888"><strong>글쓴이</strong></font></td>
<td width="90%" align="left" valign="middle" bgcolor="FAFAFA" style="border-width:1; border-top-color:rgb(240,240,240); border-right-color:black; border-bottom-color:black; border-left-color:rgb(240,240,240); border-top-style:solid; border-right-style:none; border-bottom-style:none; border-left-style:solid;">
<font class="mystyle"> <?=$view[name]?></font><? if ($is_ip_view) { echo " ($ip)"; } ?> <font class="mystyle"> (<?=substr($view[wr_datetime],2,14)?>)</font></td>
</tr>
</table>
<table width="100%" height=30 cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
<? if ($trackback_url) { ?>
<tr>
<td
style="border-width:1; border-top-color:rgb(240,240,240); border-right-color:rgb(240,240,240); border-bottom-color:rgb(240,240,240); border-left-color:black; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:none;"
width="10%" height=30 align="center" valign="middle" bgcolor="#FFFFFF">
<font style="font-family:돋움; font-size:9pt; color:#FF9966"><strong>트랙백</strong></font>
</td>
<td style="border-width:1; border-color:rgb(240,240,240); border-style:solid;" width="60%" bgcolor=#FFFFFF align=left>
<a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a>
<script language="JavaScript">
function clipboard_trackback(str) {
if (g4_is_gecko)
prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
else if (g4_is_ie) {
window.clipboardData.setData("Text", str);
alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
}
}
</script>
</td>
<td style="border-width:1; border-top-color:rgb(240,240,240); border-right-color:black; border-bottom-color:rgb(240,240,240); border-left-color:rgb(240,240,240); border-top-style:solid; border-right-style:none; border-bottom-style:solid; border-left-style:solid;" width="25%" align="center" valign="middle" bgcolor="#FFFFFF">
<font style="font-family:돋움; font-size:9pt; color:888888"><b>조회</b>(<?=$view[wr_hit]?>)</font>
<? if ($is_good) echo "<font style='font-family:돋움; font-size:9pt; color:888888'><b>추천</b>($view[wr_good])</font>";?>
<? if ($is_nogood) echo "<font style='font-family:돋움; font-size:9pt; color:888888'><b>비추천</b>($view[wr_nogood])</font>";?></td>
</tr>
</table>
<table width=100% border=0 align="center" cellpadding="0" cellspacing="0">
<? } ?>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo <<<HEREDOC
<tr>
<td width="5%" align="right" class=v_padding3><img src="{$board_skin_path}/img/file_icon.gif" width="13" height="13"></td>
<td width="5%" align="center" class=v_padding3><font class="mystyle">#{$cnt}</font></td>
<td width="90%" align="left" class=v_padding5><a href='{$view[file][$i][href]}'><font class="mystyle">{$view[file][$i][source]} ({$view[file][$i][size]}), Down:{$view[file][$i][download]}</FONT></a></td>
</tr>
<tr>
<td height="1" colspan="3" align="right" background="{$board_skin_path}/img/dot_bg.gif"></td>
</tr>
HEREDOC;
}
}
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo <<<HEREDOC
<tr>
<td width="5%" align="right" class=v_padding3><img src="{$board_skin_path}/img/link_icon.gif" width="13" height="13"></td>
<td width="5%" align="center" class=v_padding3><font class="mystyle">#{$cnt}</font></td>
<td width="90%" align="left" class=v_padding5><a href="{$view[link_href][$i]}" target="_blank"><font class="mystyle">{$link} ({$view[link_hit][$i]})</FONT></a></td>
</tr>
<tr>
<td height="1" colspan="3" align="right" background="{$board_skin_path}/img/dot_bg.gif"></td>
</tr>
HEREDOC;
}
}
?>
<tr>
<td colspan="4" valign="top" class=v_padding6>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<font class="mystyle"><?=$view[content];?></font>
<?//echo $view[rich_content]; // {img:0} 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?><br/>
<div><IMG src="<?=$board_skin_path?>/img/icon_list.gif" border="0" align="absmiddle" alt="" > <span class=small><a href='<?=$g4[bbs_path]?>/new.php?mb_id=<?=$view[mb_id]?>'><u><?=$view[wr_name]?>님의 다른글 보기</u></a> <a href='<?=$g4[bbs_path]?>/new.php?=<?=$view[mb_id]?>' target='_blank'>[새창]</a></span></div>
<!-- 게시물 신고 by 헐랭이님 시작-->
<?
//회원만 보이며 신고가능함
if ($member[mb_id]){
//신고한 메모에서 현재 이게시물의 링크주소를 만듬
$subc_board_url ="".$g4[url]."/bbs/board.php?bo_table=".$bo_table."&wr_id=".$wr_id."";
//신고할 관리자의 아이디
//게시판의 관리자가 있다면 게시판 관리자에게 신고
if ($board[bo_admin]){
$madmin_id =$board[bo_admin];
} else {
//게시판의 관리자가 없다면 최고 관리자에게 신고
$madmin_id =$config[cf_admin];
}
$sub_admin = $madmin_id;
?>
<!-- le 와 불여우 호환 토글용 스크립트 - 헐랭이 -->
<script language="javascript">
function Displaytoggle_memocv(index) {
for (i=1; i<=2; i++)
if (index == i) {
thisMenumocv2 = eval(document.getElementById("toggle_memocv" + i + "").style);
thisMenumocv2.display = "none";
document.getElementById("toggle_memocv").style.display = "none";
}
else {
otherMenumocv2 = eval(document.getElementById("toggle_memocv" + i + "").style);
otherMenumocv2.display = "";
document.getElementById("toggle_memocv").style.display = "";
}
}
</script>
<span class="ct">
<div id="toggle_memocv1" style="display:;"><a href="javascript:Displaytoggle_memocv(1)" class="button" onfocus='this.blur()'><br /><font color=red class=small> * 이게시물을 신고하기</font></a></div>
<div id="toggle_memocv" style="display:none;width:100%;">
<span id="toggle_memocv2" style="display:none;"><a href="javascript:Displaytoggle_memocv(2)" class="button" onfocus='this.blur()'><br /><font color=#ff9966 class=small>* 신고하기 창닫기</font></a></span>
<br><font color=#7A8FDB class=small>* 받는이 : <?=$sub_admin?></font> <font color=#ff8FDB class=small> * 이게시물을 신고할 사유를 간략하게 적어주세요. </font>
<br><font color=#6C8FDB class=small>* 참고1 : 코멘트 신고일 경우 코멘트의 작성자와 내용을 간략하게 표기해 주세요.</font>
<br><font color=#7A8FDB class=small>* 참고2 : 신고한 내용이 장난 , 허위 등의 부당한 신고일 경우 활동에 불이익을 당할수 있습니다.</font>
<span style="cursor: pointer;" onclick="textarea_decrease('me_memo', 5);"><img src="<?=$board_skin_path?>/img/up.gif" align='absmiddle'></span>
<span style="cursor: pointer;" onclick="textarea_original('me_memo', 5);"><img src="<?=$board_skin_path?>/img/start.gif" align='absmiddle'></span>
<span style="cursor: pointer;" onclick="textarea_increase('me_memo', 5);"><img src="<?=$board_skin_path?>/img/down.gif" align='absmiddle'></span>
<form name=fmemoform method=post action="./memo_form_update.php" target="hiddenframe" style="margin:2px;">
<input type="hidden" name="me_recv_mb_id" value="<?=$sub_admin?>">
<textarea id="me_memo" name="me_memo" rows="7" required itemname='내용' style='width:90%; word-break:break-all;' class=tx>제목: <?=$view[wr_subject]?>
작성자 : <?=$view[wr_name]?>(<?=$view[mb_id]?>)
위치 : <?=$subc_board_url?>
신고사유 :
</textarea> <input type="image" src="<?=$board_skin_path?>/img/ok_btn.gif" align="absmiddle" border="0">
</form>
</div>
</span>
<?
}
?>
<!-- 게시물 신고 by 헐랭이님 끝-->
</span>
<? if ($is_member) { ?>
<span class="ct"><? include "$board_skin_path/inc_visit.php"; ?></span>
<?}?>
<span class="ct"><? include "$board_skin_path/list_view_total.php"; ?></span>
</td>
</tr>
<tr><td colspan="4" bgcolor=F0F0F0 height=1></td></tr>
</table>
<table width="100%" cellpadding="0" >
<tr>
<?
// 이글의 작성자가 회원들에게 받은 포인트 합계를 구함
$numpoints2 = str_replace("-","","$board[bo_read_point]");
$sql3 = " select * from $g4[point_table]
where po_rel_table ='$bo_table'
and po_rel_id = '$wr_id'
and po_rel_action = '읽기' ";
$resultm = sql_query($sql3);
while ($rowm = sql_fetch_array($resultm))
{
if ($rowm[po_point])
{
$totalpo +=(int)$rowm[po_point];
}
}
$numtotalpo = str_replace("-",""," $totalpo");
?>
<? if ($numpoints2) { ?>
<td height="20"> 이글을 읽은 회원은 자신의 포인트에서 글작성자에게 <font style="font-family:돋움; font-size:9pt; color:#FF9066"><?=number_format($numpoints2)?></font> 포인트를 <font style="font-family:돋움; font-size:9pt; color:#FF9066">1</font>번만 차감 합니다. <font style="font-family:돋움; font-size:9pt; color:#FF9066">(이글의 적립포인트: <?=number_format($numtotalpo)?>)</font></td>
<? } else { ?>
<td height="1"></td>
<? } ?>
</tr>
</table>
<? if ($write[wr_2]) {?>
<table width="100%" cellpadding="0" >
<tr>
<td height="1" background="<?=$board_skin_path?>/img/dot.gif"></td>
</tr>
</table>
<table width="100%" cellpadding="0" >
<tr>
<td> <img src='<?=$board_skin_path?>/img/poll.gif' align="absmiddle"> <b>게시물평가</b> <img src='<?=$board_skin_path?>/img/u_marr1.gif' align="absmiddle"> <span class='small'>이 게시물에 대한 느낌을 선택해주세요.</span></td>
</tr>
</table>
<table width="100%" cellpadding="0" >
<tr>
<td height="1" background="<?=$board_skin_path?>/img/dot.gif"></td>
</tr>
</table>
<table width="100%" cellpadding="5" >
<form name=fpollskin method=post action="<?=$board_skin_path?>/poll_answer_update.php" onsubmit="return fpollskin_check(this.form);" target="hiddenframe">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<tr>
<td><?
// 투표한 사람만 결과가 보임
if (get_cookie("ck_{$bo_table}_{$wr_id}") == "{$bo_table}_{$wr_id}")
$is_poll = true;
else
$is_poll = false;
$max = 1;
$total = 0;
$tmp = explode(",", $view[wr_1]);
for ($i=0; $i<count($tmp); $i++)
{
$total += (int)$tmp[$i];
if ((int)$tmp[$i] > $max)
$max = (int)$tmp[$i];
}
echo "<table>";
$ans = explode("\n", $view[wr_2]);
for ($i=0; $i<count($ans); $i++)
{
echo "<tr>";
echo "<td>";
echo "<img src={$board_skin_path}/img/{$i}.gif align=absmiddle border=0><input type=radio name='ans' id='ans{$i}' value='{$i}'><label for='ans{$i}'>";
echo $ans[$i];
echo "</label> ";
if ($is_poll)
{
if ($total > 0)
$rate = ((int)$tmp[$i] / $total) * 100;
$bar = (int)((int)$tmp[$i] / $max * 100);
echo "</td>";
echo "<td width=200>";
echo "<table width=100% height=10 cellspacing=0 cellpadding=0>";
echo "<tr><td><div style='width:100%;height:10px;border:1px solid #999999;background-color:#ffffff'><img src='$board_skin_path/img/poll_bar.gif' width='{$bar}%' height='8' title='' border='0'></div></td></tr>";
echo "</table>";
echo "<td width=50 align=right>".number_format($tmp[$i])."명</td>";
echo "<td width=70 align=right><b>".number_format($rate,2)."% </b></td>";
}
echo "</td></tr>";
}
if ($is_poll)
{
echo "<tr>";
echo "<td></td>";
echo "<td align=right>평가자 총 </td>";
echo "<td align=right>".number_format($total)."명</td></tr>";
}
echo "</table>";
?>
<input type=hidden name=max_ans value="<?=$i?>">
<?
if ($is_poll)
{
echo "<br><font color=gray>이미 설문에 참여하셨습니다.</font>";
}
else
{
echo "<br><input type=submit value=' 투 표 '>";
}
?></td>
</tr>
</form>
</table>
<table width="100%" cellpadding="0" >
<tr>
<td height="1" background="<?=$board_skin_path?>/img/dot.gif"></td>
</tr>
</table>
<? }?>
<br>
<?
include_once("./view_comment.php");
?>
<!-- 링크 -->
<table width=100% align=center border=0 >
<tr colspan=3 height=3><td></td></tr>
<tr>
<td width=80% align=left height=25>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<td width=20% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<? if ($admin_href) { ?>
<td height=25 align=right><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" border="0" align="absmiddle"></a></td>
<? } ?>
</tr>
</table>
</td></tr></table>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
잘 몰라서 스킨 view..php를 통째로 올려 봅니다 ㅜ.ㅜ
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<link rel='stylesheet' type='text/css' href='<?=$board_skin_path?>/style.css'>
<style>
.mystyle { font-size:9pt; color:#5E5E5E}
.v_padding1 { PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.v_padding2 { PADDING-LEFT: 5px; PADDING-right: 0px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.v_padding3 { PADDING-LEFT: 0px; PADDING-right: 0px; PADDING-BOTTOM: 7px; PADDING-TOP: 10px; }
.v_padding4 { PADDING-LEFT: 5px; PADDING-right: 0px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.v_padding5 { PADDING-LEFT: 10px; PADDING-right: 20px; PADDING-BOTTOM: 7px; PADDING-TOP: 10px; }
.v_padding6 { PADDING-LEFT: 20px; PADDING-right: 20px; PADDING-BOTTOM: 20px; PADDING-TOP: 20px; }
.v_text1 { BORDER-RIGHT: #D3D3D3 1px solid; BORDER-TOP: #D3D3D3 1px solid; BORDER-LEFT: #D3D3D3 1px solid; BORDER-BOTTOM: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
</style>
<table width=<?=$width?> align="center" cellpadding="0" cellspacing="0"><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td width="100%" height="1" bgcolor=F0F0F0></td></tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
<tr height=30 align="center">
<td
width="10%" align="center" valign="middle" bgcolor="#FAFAFA" style="border-width:1; border-top-color:black; border-right-color:rgb(240,240,240); border-bottom-color:rgb(240,240,240); border-left-color:black; border-top-style:none; border-right-style:solid; border-bottom-style:none; border-left-style:none;">
<font style="font-family:돋움; font-size:9pt; color:888888"><strong>제목</strong></font></td>
<td style="border-width:1; border-top-color:black; border-right-color:black; border-bottom-color:rgb(240,240,240); border-left-color:rgb(240,240,240); border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:solid;"
width="90%" align="left" valign="middle" bgcolor="FAFAFA">
<font class="mystyle"><b> <? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
<? if ($board[bo_1]) { // 옵션1에 내용이 있으면 view화면의 제목길이에 적용한다.
$view[subject]=cut_str($view[subject],$board[bo_1]);
echo "$view[subject]";
} else { //옵션 1에 내용이 없으면, list화면의 제목길이를 view화면의 제목에도 적용한다.
$view[subject]=cut_str($view[subject],$board[bo_subject_len]);
echo "$view[subject]";
}
?>
</b></font></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
<tr height=30 align="center">
<td style="border-width:1; border-top-color:rgb(240,240,240); border-right-color:rgb(240,240,240); border-bottom-color:black; border-left-color:black; border-top-style:solid; border-right-style:solid; border-bottom-style:none; border-left-style:none;"
width="10%" align="center" valign="middle" bgcolor="FAFAFA">
<font style="font-family:돋움; font-size:9pt; color:888888"><strong>글쓴이</strong></font></td>
<td width="90%" align="left" valign="middle" bgcolor="FAFAFA" style="border-width:1; border-top-color:rgb(240,240,240); border-right-color:black; border-bottom-color:black; border-left-color:rgb(240,240,240); border-top-style:solid; border-right-style:none; border-bottom-style:none; border-left-style:solid;">
<font class="mystyle"> <?=$view[name]?></font><? if ($is_ip_view) { echo " ($ip)"; } ?> <font class="mystyle"> (<?=substr($view[wr_datetime],2,14)?>)</font></td>
</tr>
</table>
<table width="100%" height=30 cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
<? if ($trackback_url) { ?>
<tr>
<td
style="border-width:1; border-top-color:rgb(240,240,240); border-right-color:rgb(240,240,240); border-bottom-color:rgb(240,240,240); border-left-color:black; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:none;"
width="10%" height=30 align="center" valign="middle" bgcolor="#FFFFFF">
<font style="font-family:돋움; font-size:9pt; color:#FF9966"><strong>트랙백</strong></font>
</td>
<td style="border-width:1; border-color:rgb(240,240,240); border-style:solid;" width="60%" bgcolor=#FFFFFF align=left>
<a href="javascript:clipboard_trackback('<?=$trackback_url?>');" style="letter-spacing:0;" title='이 글을 소개할 때는 이 주소를 사용하세요'><?=$trackback_url?></a>
<script language="JavaScript">
function clipboard_trackback(str) {
if (g4_is_gecko)
prompt("이 글의 고유주소입니다. Ctrl+C를 눌러 복사하세요.", str);
else if (g4_is_ie) {
window.clipboardData.setData("Text", str);
alert("트랙백 주소가 복사되었습니다.\n\n<?=$trackback_url?>");
}
}
</script>
</td>
<td style="border-width:1; border-top-color:rgb(240,240,240); border-right-color:black; border-bottom-color:rgb(240,240,240); border-left-color:rgb(240,240,240); border-top-style:solid; border-right-style:none; border-bottom-style:solid; border-left-style:solid;" width="25%" align="center" valign="middle" bgcolor="#FFFFFF">
<font style="font-family:돋움; font-size:9pt; color:888888"><b>조회</b>(<?=$view[wr_hit]?>)</font>
<? if ($is_good) echo "<font style='font-family:돋움; font-size:9pt; color:888888'><b>추천</b>($view[wr_good])</font>";?>
<? if ($is_nogood) echo "<font style='font-family:돋움; font-size:9pt; color:888888'><b>비추천</b>($view[wr_nogood])</font>";?></td>
</tr>
</table>
<table width=100% border=0 align="center" cellpadding="0" cellspacing="0">
<? } ?>
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
echo <<<HEREDOC
<tr>
<td width="5%" align="right" class=v_padding3><img src="{$board_skin_path}/img/file_icon.gif" width="13" height="13"></td>
<td width="5%" align="center" class=v_padding3><font class="mystyle">#{$cnt}</font></td>
<td width="90%" align="left" class=v_padding5><a href='{$view[file][$i][href]}'><font class="mystyle">{$view[file][$i][source]} ({$view[file][$i][size]}), Down:{$view[file][$i][download]}</FONT></a></td>
</tr>
<tr>
<td height="1" colspan="3" align="right" background="{$board_skin_path}/img/dot_bg.gif"></td>
</tr>
HEREDOC;
}
}
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo <<<HEREDOC
<tr>
<td width="5%" align="right" class=v_padding3><img src="{$board_skin_path}/img/link_icon.gif" width="13" height="13"></td>
<td width="5%" align="center" class=v_padding3><font class="mystyle">#{$cnt}</font></td>
<td width="90%" align="left" class=v_padding5><a href="{$view[link_href][$i]}" target="_blank"><font class="mystyle">{$link} ({$view[link_hit][$i]})</FONT></a></td>
</tr>
<tr>
<td height="1" colspan="3" align="right" background="{$board_skin_path}/img/dot_bg.gif"></td>
</tr>
HEREDOC;
}
}
?>
<tr>
<td colspan="4" valign="top" class=v_padding6>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<font class="mystyle"><?=$view[content];?></font>
<?//echo $view[rich_content]; // {img:0} 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?><br/>
<div><IMG src="<?=$board_skin_path?>/img/icon_list.gif" border="0" align="absmiddle" alt="" > <span class=small><a href='<?=$g4[bbs_path]?>/new.php?mb_id=<?=$view[mb_id]?>'><u><?=$view[wr_name]?>님의 다른글 보기</u></a> <a href='<?=$g4[bbs_path]?>/new.php?=<?=$view[mb_id]?>' target='_blank'>[새창]</a></span></div>
<!-- 게시물 신고 by 헐랭이님 시작-->
<?
//회원만 보이며 신고가능함
if ($member[mb_id]){
//신고한 메모에서 현재 이게시물의 링크주소를 만듬
$subc_board_url ="".$g4[url]."/bbs/board.php?bo_table=".$bo_table."&wr_id=".$wr_id."";
//신고할 관리자의 아이디
//게시판의 관리자가 있다면 게시판 관리자에게 신고
if ($board[bo_admin]){
$madmin_id =$board[bo_admin];
} else {
//게시판의 관리자가 없다면 최고 관리자에게 신고
$madmin_id =$config[cf_admin];
}
$sub_admin = $madmin_id;
?>
<!-- le 와 불여우 호환 토글용 스크립트 - 헐랭이 -->
<script language="javascript">
function Displaytoggle_memocv(index) {
for (i=1; i<=2; i++)
if (index == i) {
thisMenumocv2 = eval(document.getElementById("toggle_memocv" + i + "").style);
thisMenumocv2.display = "none";
document.getElementById("toggle_memocv").style.display = "none";
}
else {
otherMenumocv2 = eval(document.getElementById("toggle_memocv" + i + "").style);
otherMenumocv2.display = "";
document.getElementById("toggle_memocv").style.display = "";
}
}
</script>
<span class="ct">
<div id="toggle_memocv1" style="display:;"><a href="javascript:Displaytoggle_memocv(1)" class="button" onfocus='this.blur()'><br /><font color=red class=small> * 이게시물을 신고하기</font></a></div>
<div id="toggle_memocv" style="display:none;width:100%;">
<span id="toggle_memocv2" style="display:none;"><a href="javascript:Displaytoggle_memocv(2)" class="button" onfocus='this.blur()'><br /><font color=#ff9966 class=small>* 신고하기 창닫기</font></a></span>
<br><font color=#7A8FDB class=small>* 받는이 : <?=$sub_admin?></font> <font color=#ff8FDB class=small> * 이게시물을 신고할 사유를 간략하게 적어주세요. </font>
<br><font color=#6C8FDB class=small>* 참고1 : 코멘트 신고일 경우 코멘트의 작성자와 내용을 간략하게 표기해 주세요.</font>
<br><font color=#7A8FDB class=small>* 참고2 : 신고한 내용이 장난 , 허위 등의 부당한 신고일 경우 활동에 불이익을 당할수 있습니다.</font>
<span style="cursor: pointer;" onclick="textarea_decrease('me_memo', 5);"><img src="<?=$board_skin_path?>/img/up.gif" align='absmiddle'></span>
<span style="cursor: pointer;" onclick="textarea_original('me_memo', 5);"><img src="<?=$board_skin_path?>/img/start.gif" align='absmiddle'></span>
<span style="cursor: pointer;" onclick="textarea_increase('me_memo', 5);"><img src="<?=$board_skin_path?>/img/down.gif" align='absmiddle'></span>
<form name=fmemoform method=post action="./memo_form_update.php" target="hiddenframe" style="margin:2px;">
<input type="hidden" name="me_recv_mb_id" value="<?=$sub_admin?>">
<textarea id="me_memo" name="me_memo" rows="7" required itemname='내용' style='width:90%; word-break:break-all;' class=tx>제목: <?=$view[wr_subject]?>
작성자 : <?=$view[wr_name]?>(<?=$view[mb_id]?>)
위치 : <?=$subc_board_url?>
신고사유 :
</textarea> <input type="image" src="<?=$board_skin_path?>/img/ok_btn.gif" align="absmiddle" border="0">
</form>
</div>
</span>
<?
}
?>
<!-- 게시물 신고 by 헐랭이님 끝-->
</span>
<? if ($is_member) { ?>
<span class="ct"><? include "$board_skin_path/inc_visit.php"; ?></span>
<?}?>
<span class="ct"><? include "$board_skin_path/list_view_total.php"; ?></span>
</td>
</tr>
<tr><td colspan="4" bgcolor=F0F0F0 height=1></td></tr>
</table>
<table width="100%" cellpadding="0" >
<tr>
<?
// 이글의 작성자가 회원들에게 받은 포인트 합계를 구함
$numpoints2 = str_replace("-","","$board[bo_read_point]");
$sql3 = " select * from $g4[point_table]
where po_rel_table ='$bo_table'
and po_rel_id = '$wr_id'
and po_rel_action = '읽기' ";
$resultm = sql_query($sql3);
while ($rowm = sql_fetch_array($resultm))
{
if ($rowm[po_point])
{
$totalpo +=(int)$rowm[po_point];
}
}
$numtotalpo = str_replace("-",""," $totalpo");
?>
<? if ($numpoints2) { ?>
<td height="20"> 이글을 읽은 회원은 자신의 포인트에서 글작성자에게 <font style="font-family:돋움; font-size:9pt; color:#FF9066"><?=number_format($numpoints2)?></font> 포인트를 <font style="font-family:돋움; font-size:9pt; color:#FF9066">1</font>번만 차감 합니다. <font style="font-family:돋움; font-size:9pt; color:#FF9066">(이글의 적립포인트: <?=number_format($numtotalpo)?>)</font></td>
<? } else { ?>
<td height="1"></td>
<? } ?>
</tr>
</table>
<? if ($write[wr_2]) {?>
<table width="100%" cellpadding="0" >
<tr>
<td height="1" background="<?=$board_skin_path?>/img/dot.gif"></td>
</tr>
</table>
<table width="100%" cellpadding="0" >
<tr>
<td> <img src='<?=$board_skin_path?>/img/poll.gif' align="absmiddle"> <b>게시물평가</b> <img src='<?=$board_skin_path?>/img/u_marr1.gif' align="absmiddle"> <span class='small'>이 게시물에 대한 느낌을 선택해주세요.</span></td>
</tr>
</table>
<table width="100%" cellpadding="0" >
<tr>
<td height="1" background="<?=$board_skin_path?>/img/dot.gif"></td>
</tr>
</table>
<table width="100%" cellpadding="5" >
<form name=fpollskin method=post action="<?=$board_skin_path?>/poll_answer_update.php" onsubmit="return fpollskin_check(this.form);" target="hiddenframe">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<tr>
<td><?
// 투표한 사람만 결과가 보임
if (get_cookie("ck_{$bo_table}_{$wr_id}") == "{$bo_table}_{$wr_id}")
$is_poll = true;
else
$is_poll = false;
$max = 1;
$total = 0;
$tmp = explode(",", $view[wr_1]);
for ($i=0; $i<count($tmp); $i++)
{
$total += (int)$tmp[$i];
if ((int)$tmp[$i] > $max)
$max = (int)$tmp[$i];
}
echo "<table>";
$ans = explode("\n", $view[wr_2]);
for ($i=0; $i<count($ans); $i++)
{
echo "<tr>";
echo "<td>";
echo "<img src={$board_skin_path}/img/{$i}.gif align=absmiddle border=0><input type=radio name='ans' id='ans{$i}' value='{$i}'><label for='ans{$i}'>";
echo $ans[$i];
echo "</label> ";
if ($is_poll)
{
if ($total > 0)
$rate = ((int)$tmp[$i] / $total) * 100;
$bar = (int)((int)$tmp[$i] / $max * 100);
echo "</td>";
echo "<td width=200>";
echo "<table width=100% height=10 cellspacing=0 cellpadding=0>";
echo "<tr><td><div style='width:100%;height:10px;border:1px solid #999999;background-color:#ffffff'><img src='$board_skin_path/img/poll_bar.gif' width='{$bar}%' height='8' title='' border='0'></div></td></tr>";
echo "</table>";
echo "<td width=50 align=right>".number_format($tmp[$i])."명</td>";
echo "<td width=70 align=right><b>".number_format($rate,2)."% </b></td>";
}
echo "</td></tr>";
}
if ($is_poll)
{
echo "<tr>";
echo "<td></td>";
echo "<td align=right>평가자 총 </td>";
echo "<td align=right>".number_format($total)."명</td></tr>";
}
echo "</table>";
?>
<input type=hidden name=max_ans value="<?=$i?>">
<?
if ($is_poll)
{
echo "<br><font color=gray>이미 설문에 참여하셨습니다.</font>";
}
else
{
echo "<br><input type=submit value=' 투 표 '>";
}
?></td>
</tr>
</form>
</table>
<table width="100%" cellpadding="0" >
<tr>
<td height="1" background="<?=$board_skin_path?>/img/dot.gif"></td>
</tr>
</table>
<? }?>
<br>
<?
include_once("./view_comment.php");
?>
<!-- 링크 -->
<table width=100% align=center border=0 >
<tr colspan=3 height=3><td></td></tr>
<tr>
<td width=80% align=left height=25>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<td width=20% align=right>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
<? if ($admin_href) { ?>
<td height=25 align=right><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" border="0" align="absmiddle"></a></td>
<? } ?>
</tr>
</table>
</td></tr></table>
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
var target = document.getElementsByName('target_resize_image[]');
var image_width = parseInt('<?=$board[bo_image_width]?>');
var image_height = 0;
for(i=0; i<target.length; i++) {
// 원래 사이즈를 저장해 놓는다
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
// 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
if(target[i].width > image_width) {
image_height = parseFloat(target[i].width / target[i].height)
target[i].width = image_width;
target[i].height = parseInt(image_width / image_height);
}
}
}
window.onload = resize_image;
</script>
잘 몰라서 스킨 view..php를 통째로 올려 봅니다 ㅜ.ㅜ
관리자모드 > 게시판 여분필드 설정
각각의 게시판에 지원되는 기본적인 여분필드를 활용한 기능성 스킨의 view이군요.
사용중인 헐랭이님의 스킨에서 주의사항 및 설정방법대로 활용해 보시고,
특히 사용중인 버전에 관해 언급된 부분도 놓치지 마시기 바랍니다.
### 가능성이라면 게시판 설정 > 제목길이 설정(숫자로 설정)###
상단과 같은 설정에서 너무나도 적은 숫자를 기입했거나 누락된 것도 가정해 볼 수는 있겠으나,
이런 경우라면, 해당 게시판 리스트에서도 제목이 정상적으로 출력되지 않아야 합니다.
왜냐하면 리스트에서 제어되는 게시물 제목길이는 view의 게시물 제목길이와 직결되기 때문입니다.
각각의 게시판에 지원되는 기본적인 여분필드를 활용한 기능성 스킨의 view이군요.
사용중인 헐랭이님의 스킨에서 주의사항 및 설정방법대로 활용해 보시고,
특히 사용중인 버전에 관해 언급된 부분도 놓치지 마시기 바랍니다.
### 가능성이라면 게시판 설정 > 제목길이 설정(숫자로 설정)###
상단과 같은 설정에서 너무나도 적은 숫자를 기입했거나 누락된 것도 가정해 볼 수는 있겠으나,
이런 경우라면, 해당 게시판 리스트에서도 제목이 정상적으로 출력되지 않아야 합니다.
왜냐하면 리스트에서 제어되는 게시물 제목길이는 view의 게시물 제목길이와 직결되기 때문입니다.
아하 나스카님 감사 합니다^^
> $view[subject]=cut_str($view[subject],$board[bo_1]);
게시판의 여분필드가 사용되었습니다.
$board[bo_1]
참고로 각각의 게시물에 대한 여분필드의 표현은 다음과 같습니다.
$write[wr_1~10]
게시판의 여분필드가 사용되었습니다.
$board[bo_1]
참고로 각각의 게시물에 대한 여분필드의 표현은 다음과 같습니다.
$write[wr_1~10]
