new.php 특정그룹에 포함시키기 재 질문입니다 정보
new.php 특정그룹에 포함시키기 재 질문입니다본문
위의 질문에서 new.php 을 그룹 home 에 포함 시키기 위해 rolo님의 의견대로 했는데..
home 그룹으로 인식은 하는 것 같은데 new.php 페이지의 셀렉트 박스에서 다른 그룹을 선택하면 다른 그룹의 글목르로 으로 바뀌질 않습니다..
뭔가 이상하거든요
댓글 전체
해당 페이지 주소를 적어 주세요.
아니면 소스라도......
아니면 소스라도......
아래는 new.php 주소이고
http://www.beomsu.com/gnu/bbs/new.php
현재 new.php 입니다..
<?
include_once("./_common.php");
//$gr_id = "home";
$g4[title] = "최근 게시물";
include_once("./_head.php");
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = 'home' and b.bo_use_search = '1' ";
//if ($gr_id)
// $sql_common .= " and b.gr_id = '$gr_id' ";
if ( false && $gr_id)
$sql_common .= " and b.gr_id = '$gr_id' ";
if ($view == "w")
$sql_common .= " and a.wr_id = a.wr_parent ";
else if ($view == "c")
$sql_common .= " and a.wr_id <> a.wr_parent ";
if ($mb_id)
$sql_common .= " and a.mb_id = '$mb_id' ";
$sql_order = " order by a.bn_id desc ";
$sql = " select count(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$rows = $config[cf_new_rows];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$group_select = "<select name=gr_id id=gr_id onchange='select_change();'><option value=''>전체그룹";
$sql = " select gr_id, gr_subject from $g4[group_table] order by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$group_select .= "<option value='$row[gr_id]'>$row[gr_subject]";
}
$group_select .= "</select>";
$list = array();
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
$sql_common
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$tmp_write_table = $g4[write_prefix] . $row[bo_table];
if ($row[wr_id] == $row[wr_parent]) // 원글
{
$comment = "";
$comment_link = "";
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_id]' ");
$list[$i] = $row2;
$name = get_sideview($row2[mb_id], cut_str($row2[wr_name], $config[cf_cut_name]), $row2[wr_email], $row2[wr_homepage]);
// 당일인 경우 시간으로 표시함
$datetime = substr($row2[wr_datetime],0,10);
$datetime2 = $row2[wr_datetime];
if ($datetime == $g4[time_ymd])
$datetime2 = substr($datetime2,11,5);
else
$datetime2 = substr($datetime2,5,5);
}
else // 코멘트
{
$comment = "[코] ";
$comment_link = "#c_{$row[wr_id]}";
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_parent]' ");
$row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from $tmp_write_table where wr_id = '$row[wr_id]' ");
$list[$i] = $row2;
$list[$i][mb_id] = $row3[mb_id];
$list[$i][wr_name] = $row3[wr_name];
$list[$i][wr_email] = $row3[wr_email];
$list[$i][wr_homepage] = $row3[wr_homepage];
$name = get_sideview($row3[mb_id], cut_str($row3[wr_name], $config[cf_cut_name]), $row3[wr_email], $row3[wr_homepage]);
// 당일인 경우 시간으로 표시함
$datetime = substr($row3[wr_datetime],0,10);
$datetime2 = $row3[wr_datetime];
if ($datetime == $g4[time_ymd])
$datetime2 = substr($datetime2,11,5);
else
$datetime2 = substr($datetime2,5,5);
}
$list[$i][gr_id] = $row[gr_id];
$list[$i][bo_table] = $row[bo_table];
$list[$i][name] = $name;
$list[$i][comment] = $comment;
$list[$i][href] = "./board.php?bo_table=$row[bo_table]&wr_id=$row2[wr_id]{$comment_link}";
$list[$i][datetime] = $datetime;
$list[$i][datetime2] = $datetime2;
$list[$i][gr_subject] = $row[gr_subject];
$list[$i][bo_subject] = $row[bo_subject];
$list[$i][wr_subject] = $row2[wr_subject];
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page=");
$new_skin_path = "$g4[path]/skin/new/$config[cf_new_skin]";
echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
include_once("$new_skin_path/new.skin.php");
include_once("./_tail.php");
?>
http://www.beomsu.com/gnu/bbs/new.php
현재 new.php 입니다..
<?
include_once("./_common.php");
//$gr_id = "home";
$g4[title] = "최근 게시물";
include_once("./_head.php");
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = 'home' and b.bo_use_search = '1' ";
//if ($gr_id)
// $sql_common .= " and b.gr_id = '$gr_id' ";
if ( false && $gr_id)
$sql_common .= " and b.gr_id = '$gr_id' ";
if ($view == "w")
$sql_common .= " and a.wr_id = a.wr_parent ";
else if ($view == "c")
$sql_common .= " and a.wr_id <> a.wr_parent ";
if ($mb_id)
$sql_common .= " and a.mb_id = '$mb_id' ";
$sql_order = " order by a.bn_id desc ";
$sql = " select count(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$rows = $config[cf_new_rows];
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$group_select = "<select name=gr_id id=gr_id onchange='select_change();'><option value=''>전체그룹";
$sql = " select gr_id, gr_subject from $g4[group_table] order by gr_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$group_select .= "<option value='$row[gr_id]'>$row[gr_subject]";
}
$group_select .= "</select>";
$list = array();
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id
$sql_common
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$tmp_write_table = $g4[write_prefix] . $row[bo_table];
if ($row[wr_id] == $row[wr_parent]) // 원글
{
$comment = "";
$comment_link = "";
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_id]' ");
$list[$i] = $row2;
$name = get_sideview($row2[mb_id], cut_str($row2[wr_name], $config[cf_cut_name]), $row2[wr_email], $row2[wr_homepage]);
// 당일인 경우 시간으로 표시함
$datetime = substr($row2[wr_datetime],0,10);
$datetime2 = $row2[wr_datetime];
if ($datetime == $g4[time_ymd])
$datetime2 = substr($datetime2,11,5);
else
$datetime2 = substr($datetime2,5,5);
}
else // 코멘트
{
$comment = "[코] ";
$comment_link = "#c_{$row[wr_id]}";
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '$row[wr_parent]' ");
$row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from $tmp_write_table where wr_id = '$row[wr_id]' ");
$list[$i] = $row2;
$list[$i][mb_id] = $row3[mb_id];
$list[$i][wr_name] = $row3[wr_name];
$list[$i][wr_email] = $row3[wr_email];
$list[$i][wr_homepage] = $row3[wr_homepage];
$name = get_sideview($row3[mb_id], cut_str($row3[wr_name], $config[cf_cut_name]), $row3[wr_email], $row3[wr_homepage]);
// 당일인 경우 시간으로 표시함
$datetime = substr($row3[wr_datetime],0,10);
$datetime2 = $row3[wr_datetime];
if ($datetime == $g4[time_ymd])
$datetime2 = substr($datetime2,11,5);
else
$datetime2 = substr($datetime2,5,5);
}
$list[$i][gr_id] = $row[gr_id];
$list[$i][bo_table] = $row[bo_table];
$list[$i][name] = $name;
$list[$i][comment] = $comment;
$list[$i][href] = "./board.php?bo_table=$row[bo_table]&wr_id=$row2[wr_id]{$comment_link}";
$list[$i][datetime] = $datetime;
$list[$i][datetime2] = $datetime2;
$list[$i][gr_subject] = $row[gr_subject];
$list[$i][bo_subject] = $row[bo_subject];
$list[$i][wr_subject] = $row2[wr_subject];
}
$write_pages = get_paging($config[cf_write_pages], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page=");
$new_skin_path = "$g4[path]/skin/new/$config[cf_new_skin]";
echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
include_once("$new_skin_path/new.skin.php");
include_once("./_tail.php");
?>
rolo님 답변감사하며//////////동시에 죄송합니다...
시간에 오래되서 집의 컴퓨터를 껏거든요(집에 서버라) 답변 시간이 03:42 일 줄은 생각못햇습니다..
new 스킨 소스입니다..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.n_title1 { font-family:돋움; font-size:9pt; color:#FFFFFF; }
.n_title2 { font-family:돋움; font-size:9pt; color:#5E5E5E; }
</style>
</style>
<!-- 분류 시작 -->
<form name=fnew method=get style="margin:0px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=30>
<?=$group_select?>
<select id=view name=view onchange="select_change()">
<option value=''>전체게시물
<option value='w'>원글만
<option value='c'>코멘트만
</select>
<b>회원아이디 : </b>
<input type=text id='mb_id' name='mb_id' value='<?=$mb_id?>'>
<input type=submit value='검색'>
<script language="JavaScript">
function select_change()
{
document.fnew.submit();
}
document.getElementById("gr_id").value = "<?=$gr_id?>";
document.getElementById("view").value = "<?=$view?>";
</script>
</td>
</tr>
</table>
</form>
<!-- 분류 끝 -->
<!-- 제목 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4" height="33" bgcolor="#346583"><img src="<?=$new_skin_path?>/img/list_top_01.gif" width="4" height="33"></td>
<td width="100" align="center" bgcolor="#346583" height="30"><font class=n_title1><strong>그룹</strong></font></td>
<td width="5" align="center" valign="middle" bgcolor="#346583"><img src="<?=$new_skin_path?>/img/list_top_02.gif" width="5" height="33"></td>
<td width="5" align="center" valign="middle" bgcolor="#EEEEEE"><img src="<?=$new_skin_path?>/img/list_top_03.gif" width="5" height="33"></td>
<td width="100" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>게시판</strong></font></td>
<td width="" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>제목</strong></font></td>
<td width="120" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>이름</strong></font></td>
<td width="60" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>일시</strong></font></td>
<td width="4" bgcolor="#EEEEEE"><img src="<?=$new_skin_path?>/img/list_top_04.gif" width="4" height="33"></td>
</tr>
<?
for ($i=0; $i<count($list); $i++)
{
$gr_subject = cut_str($list[$i][gr_subject], 10);
$bo_subject = cut_str($list[$i][bo_subject], 10);
$wr_subject = get_text(cut_str($list[$i][wr_subject], 40));
echo <<<HEREDOC
<tr>
<td align="center" height="30" colspan=3><a href='./new.php?gr_id={$list[$i][gr_id]}'>{$gr_subject}</a></td>
<td align="center" colspan=2><a href='./board.php?bo_table={$list[$i][bo_table]}'>{$bo_subject}</a></td>
<td width=""> <a href='{$list[$i][href]}'>{$list[$i][comment]}{$wr_subject}</a></td>
<td align="center">{$list[$i][name]}</td>
<td align="center" colspan=2>{$list[$i][datetime2]}</td>
<!-- <a href="javascript:;" onclick="document.getElementById('mb_id').value='{$list[$i][mb_id]}';">·</a> -->
</tr>
<tr>
<td colspan="9" height="1" background="{$new_skin_path}/img/dot_bg.gif"></td>
</tr>
HEREDOC;
}
?>
<? if ($i == 0) { ?>
<tr><td colspan="9" height=50 align=center>게시물이 없습니다.</td></tr>
<? } ?>
<tr>
<td colspan="9" height="30" align="center"><?=$write_pages?></td>
</tr>
</table>
너무 불편하게 해서 죄송합니다..
시간에 오래되서 집의 컴퓨터를 껏거든요(집에 서버라) 답변 시간이 03:42 일 줄은 생각못햇습니다..
new 스킨 소스입니다..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.n_title1 { font-family:돋움; font-size:9pt; color:#FFFFFF; }
.n_title2 { font-family:돋움; font-size:9pt; color:#5E5E5E; }
</style>
</style>
<!-- 분류 시작 -->
<form name=fnew method=get style="margin:0px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=30>
<?=$group_select?>
<select id=view name=view onchange="select_change()">
<option value=''>전체게시물
<option value='w'>원글만
<option value='c'>코멘트만
</select>
<b>회원아이디 : </b>
<input type=text id='mb_id' name='mb_id' value='<?=$mb_id?>'>
<input type=submit value='검색'>
<script language="JavaScript">
function select_change()
{
document.fnew.submit();
}
document.getElementById("gr_id").value = "<?=$gr_id?>";
document.getElementById("view").value = "<?=$view?>";
</script>
</td>
</tr>
</table>
</form>
<!-- 분류 끝 -->
<!-- 제목 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4" height="33" bgcolor="#346583"><img src="<?=$new_skin_path?>/img/list_top_01.gif" width="4" height="33"></td>
<td width="100" align="center" bgcolor="#346583" height="30"><font class=n_title1><strong>그룹</strong></font></td>
<td width="5" align="center" valign="middle" bgcolor="#346583"><img src="<?=$new_skin_path?>/img/list_top_02.gif" width="5" height="33"></td>
<td width="5" align="center" valign="middle" bgcolor="#EEEEEE"><img src="<?=$new_skin_path?>/img/list_top_03.gif" width="5" height="33"></td>
<td width="100" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>게시판</strong></font></td>
<td width="" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>제목</strong></font></td>
<td width="120" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>이름</strong></font></td>
<td width="60" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>일시</strong></font></td>
<td width="4" bgcolor="#EEEEEE"><img src="<?=$new_skin_path?>/img/list_top_04.gif" width="4" height="33"></td>
</tr>
<?
for ($i=0; $i<count($list); $i++)
{
$gr_subject = cut_str($list[$i][gr_subject], 10);
$bo_subject = cut_str($list[$i][bo_subject], 10);
$wr_subject = get_text(cut_str($list[$i][wr_subject], 40));
echo <<<HEREDOC
<tr>
<td align="center" height="30" colspan=3><a href='./new.php?gr_id={$list[$i][gr_id]}'>{$gr_subject}</a></td>
<td align="center" colspan=2><a href='./board.php?bo_table={$list[$i][bo_table]}'>{$bo_subject}</a></td>
<td width=""> <a href='{$list[$i][href]}'>{$list[$i][comment]}{$wr_subject}</a></td>
<td align="center">{$list[$i][name]}</td>
<td align="center" colspan=2>{$list[$i][datetime2]}</td>
<!-- <a href="javascript:;" onclick="document.getElementById('mb_id').value='{$list[$i][mb_id]}';">·</a> -->
</tr>
<tr>
<td colspan="9" height="1" background="{$new_skin_path}/img/dot_bg.gif"></td>
</tr>
HEREDOC;
}
?>
<? if ($i == 0) { ?>
<tr><td colspan="9" height=50 align=center>게시물이 없습니다.</td></tr>
<? } ?>
<tr>
<td colspan="9" height="30" align="center"><?=$write_pages?></td>
</tr>
</table>
너무 불편하게 해서 죄송합니다..

최신글관련 소스와 스킨은 수정하지 말구요.
각 페이지마다 출력되는 최신글 링크가 나오는데
그링크를 http://www.beomsu.com/gnu/bbs/new.php?gr_id=<?$gr_id?>
이런식으로 하여 링크에서 해당 그룹명을 직접 받아서 걸어 버리면 될듯 합니다.
각 페이지마다 출력되는 최신글 링크가 나오는데
그링크를 http://www.beomsu.com/gnu/bbs/new.php?gr_id=<?$gr_id?>
이런식으로 하여 링크에서 해당 그룹명을 직접 받아서 걸어 버리면 될듯 합니다.
헐랭이님 감사합니다..///
그런데 위 처럼하면 다른 그룹을 클릭했을 때.....분명 다른 그룹들의 글이 출력되는데...
현재 홈페이지의 head.php 가 하나로 되어있거든요....
new.php에서 그룹을 선택하면 head.php 가 출력되는데... http://www.beomsu.com/gnu/bbs/new.php?gr_id=<?$gr_id?> 와 같이 된 링크를 클릭하면 head.php 가 출력이 안됩니다..
즉,, 실제 주소는 http://www.beomsu.com/gnu/bbs/new.php?gr_id=home 이런 식으로 연결이 되겠죠...
셀렉트를 클릭하면 자바스크립트 오류가 뜨고요...
그런데 위 처럼하면 다른 그룹을 클릭했을 때.....분명 다른 그룹들의 글이 출력되는데...
현재 홈페이지의 head.php 가 하나로 되어있거든요....
new.php에서 그룹을 선택하면 head.php 가 출력되는데... http://www.beomsu.com/gnu/bbs/new.php?gr_id=<?$gr_id?> 와 같이 된 링크를 클릭하면 head.php 가 출력이 안됩니다..
즉,, 실제 주소는 http://www.beomsu.com/gnu/bbs/new.php?gr_id=home 이런 식으로 연결이 되겠죠...
셀렉트를 클릭하면 자바스크립트 오류가 뜨고요...

http://www.beomsu.com/gnu/bbs/new.php <-이주소로 들어가도 출력이 안되는듯 하네요.
그리고 링크에서 gr_id=<?$gr_id?> 그룹명을 못가져 오고 있는듯 하네요.
그리고 링크에서 gr_id=<?$gr_id?> 그룹명을 못가져 오고 있는듯 하네요.
예... 그렇습니다...
그래서 new.php 에서 그룹명을 정해주려고 하는데.........되지를 않네요....
new.php 를 위한 head.php 를 별로로 생성하여 하면 되지만...head.php 를 하나만 써서 해결하고 싶거든요...
거의 된듯한데..몇일째 new.php 때문에 ........진척이 없네요...
그래서 new.php 에서 그룹명을 정해주려고 하는데.........되지를 않네요....
new.php 를 위한 head.php 를 별로로 생성하여 하면 되지만...head.php 를 하나만 써서 해결하고 싶거든요...
거의 된듯한데..몇일째 new.php 때문에 ........진척이 없네요...

방금 테스트 해보니 성공하신듯 하네요^^
아..............해결되었습니다...
헐랭이님이 알려주신 대로 했는데.............약간의 오타가 있었네요..
gr_id=<?$gr_id?> 을................gr_id=<?=$gr_id?> 와 같이하니 해결이 된듯합니다...
조금더 테스테해보겠습니다............
우선 부터 기쁜김에 감사드립니다....
헐랭이님이 알려주신 대로 했는데.............약간의 오타가 있었네요..
gr_id=<?$gr_id?> 을................gr_id=<?=$gr_id?> 와 같이하니 해결이 된듯합니다...
조금더 테스테해보겠습니다............
우선 부터 기쁜김에 감사드립니다....

ㅎㅎㅎ 오타때문에 햇갈렸네요^^
헐랭이님//////////////제가 오늘 헐랭이님 때문이 .................
기분이 무지무지...........좋습니다................
헐랭이님 거듭감사드립니다.....................복 엄청 받으실겁니다...
하하하................................
기분이 무지무지...........좋습니다................
헐랭이님 거듭감사드립니다.....................복 엄청 받으실겁니다...
하하하................................

몇일동안 고생하셨구요. 둘러보니 완벽하게 성공하신듯 합니다.
축하드립니다.^^
축하드립니다.^^
제가 실력은 없고 해결은 못하고 그누보드를 몇일 헤메고 이제 겨우 됬다 싶으면 다른 오류가 발견되고.....아주 몸이 바싹 마름니다...
head.php를 new.php만 따로 만들면 그룹을 클릭했을때 안되고....
head.php를 하나로 하면 전체그룹이 안되고.....뭐가뭔지 모르겠습니다..
head.php 입니다...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1004;
?>
<!-- END switch_enable_greeting_popup -->
<script language="JavaScript">
function autoBlur(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
document.body.focus();
}
document.onfocusin=autoBlur;
</script>
<script language="JavaScript">
function openNewWindow(window) {
open (window,"NewWindow","left=0, top=0, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=750, height=680");
}
</script>
<script language="JavaScript">
<!--
var imgObj = new Image();
function showImgWin(imgName) {
imgObj.src = imgName;
setTimeout("createImgWin(imgObj)", 100);
}
function createImgWin(imgObj) {
if (! imgObj.complete) {
setTimeout("createImgWin(imgObj)", 100);
return;
}
imageWin = window.open("", "imageWin",
"width=" + imgObj.width + ",height=" + imgObj.height);
imageWin.document.write("<html><body style='margin:0'>");
imageWin.document.write("<a href=javascript:window.close()><img src='" + imgObj.src + "' border=0></a>");
imageWin.document.write("</body><html>");
imageWin.document.title = imgObj.src;
}
-->
</script>
<script type="text/javascript" src="<?=$g4['path']?>/js/iezn_embed_patch.js"></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/radius.js"></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/scroll_menu.js"></script>
<link rel="stylesheet" href="<?=$g4['path']?>/style_<?=$gr_id?>.css" type="text/css">
</head>
<body background="<?=$g4['path']?>/images/<?=$gr_id?>_bg.gif" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" bgproperties="fixed">
<div id="STATICMENU" style="position:absolute;">
<?
include_once("$g4[path]/menu/quick_menu.php");
?>
</div>
<script language="javascript">
<!--
InitializeStaticMenu(); // 스크롤메뉴를 가동하는 자바스크립트
//-->
</script>
<?
include_once("$g4[path]/menu/star.php");
?>
<!---------------------- 가장 바깥 테두리 ------------------->
<table id="Table_01" width="953" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan=2 width="239" height="95">
<!-------------로고셀 ///-----------(이곳에 로그를 넣어도 됨)레어어를 이용한 플래시로 처리함------->
</td>
<td align=right valign=top>
<?
include_once("$g4[path]/menu/top_menu.php");
?>
</td>
</tr>
<tr>
<td>
<!------------------메인메뉴 테이블시작----------------->
<table id="Table_01" width="650" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height=40 align=center background="<?=$g4['path']?>/images/main_menu_<?=$gr_id?>_bg.gif">
<?
include_once("$g4[path]/menu/main_menu.php");
?>
</td></tr></table>
<!-------------------메인메뉴 테이블끝------------->
</td>
</tr>
<tr>
<td width="239" align=center valign=top>
<!-----------------왼쪽 메뉴 셀--------------------------------------------------->
<?=outlogin("lonecat_basic"); // 외부 로그인 ?>
<br>
<br>
<?
include_once("$g4[path]/menu/sub_menu.php");
?>
<br>
<?
include_once("$g4[path]/menu/site_info.php"); //사이트현황
?>
<!--------------------------------그룹 최신글------------------------------------->
<br>
<table id="Table_01" width="202" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="<?=$g4[path]?>/images/sub_box_01.gif" width="12" height="13" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/sub_box_02.gif" width="178" height="13" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/sub_box_03.gif" width="12" height="13" alt=""></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/images/sub_box_04.gif" width="12">
</td>
<td height=25 background="<?=$g4[path]?>/images/m_title_bg.gif">
<font color="white">▶</font><?
if($group[gr_subject]!='') {
echo "<b>$group[gr_subject] <font color='white'>[그룹 최신글]</font></b>";
}
else {
echo "<b>HOME<font color='white'>[그룹 최신글]</font></b>";
}
?>
</td>
<td background="<?=$g4[path]?>/images/sub_box_06.gif" width="12">
</td>
</tr>
<tr>
<td background="<?=$g4[path]?>/images/sub_box_04.gif" width="12">
</td>
<td bgcolor=#FFFFFF valign=top>
<br>
<? echo latest_group("group", $gr_id, 5, 18);?>
</td>
<td background="<?=$g4[path]?>/images/sub_box_06.gif" width="12">
</td>
</tr>
<tr>
<td>
<img src="<?=$g4[path]?>/images/sub_box_07.gif" width="12" height="14" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/sub_box_08.gif" width="178" height="14" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/sub_box_09.gif" width="12" height="14" alt=""></td>
</tr>
</table>
<!-------------------------------- 그룹 최신글 끝---------------------- -->
<br>
<? if (!$member['mb_id']) { ?>
<!------------- 로그인 이전------------- -->
<?=visit("basic"); // 방문자수 ?>
<br>
<?=connect(); // 현재 접속자수 ?>
<div style='height:10px;'></div>
<!-------------- 로그인 이후------------ -->
<? } ?>
<? if ($member[mb_level]>1) { ?>
<br>
<?
include_once("$g4[path]/my_latest.php");
?>
<? } else { ?>
<? } ?>
<br>
<!-------------- 로그인 이후끝------------ -->
<div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<br>
<? echo latest_banner("banner_scroll","home_banner", 10, 1);//배너 게시판 최신게시물 ?>
<br>
<?
include_once("$g4[path]/menu/search.php"); //검색 폼
?>
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
f.action = "<?=$g4['bbs_path']?>/search.php";
f.submit();
}
</script>
<!-- 검색 끝 -->
<div style='height:18px;'></div>
<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>
</td>
<td valign=top >
<!-----------------오른쪽 메인 셀 시작--///메인 메뉴와 게시판이 들어가는 곳--------------------->
<?
include_once("$g4[path]/menu/main_img.php"); ////메인 상단 이미지부분
?>
<table id="Table_01" width="714" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="<?=$g4[path]?>/images/main_out_line_01.gif" width="33" height="32" alt=""></td>
<td background="<?=$g4[path]?>/images/main_out_line_02.gif" height="32">
</td>
<td>
<img src="<?=$g4[path]?>/images/main_out_line_03.gif" width="98" height="32" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/main_out_line_04.gif" width="1" height="32" alt=""></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/images/main_out_line_05.gif" width="33">
</td>
<td bgcolor=#FFFFFF valign=top>
..................
어디서 손을 대야할지 모르겠습니다..
head.php를 new.php만 따로 만들면 그룹을 클릭했을때 안되고....
head.php를 하나로 하면 전체그룹이 안되고.....뭐가뭔지 모르겠습니다..
head.php 입니다...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1004;
?>
<!-- END switch_enable_greeting_popup -->
<script language="JavaScript">
function autoBlur(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
document.body.focus();
}
document.onfocusin=autoBlur;
</script>
<script language="JavaScript">
function openNewWindow(window) {
open (window,"NewWindow","left=0, top=0, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=750, height=680");
}
</script>
<script language="JavaScript">
<!--
var imgObj = new Image();
function showImgWin(imgName) {
imgObj.src = imgName;
setTimeout("createImgWin(imgObj)", 100);
}
function createImgWin(imgObj) {
if (! imgObj.complete) {
setTimeout("createImgWin(imgObj)", 100);
return;
}
imageWin = window.open("", "imageWin",
"width=" + imgObj.width + ",height=" + imgObj.height);
imageWin.document.write("<html><body style='margin:0'>");
imageWin.document.write("<a href=javascript:window.close()><img src='" + imgObj.src + "' border=0></a>");
imageWin.document.write("</body><html>");
imageWin.document.title = imgObj.src;
}
-->
</script>
<script type="text/javascript" src="<?=$g4['path']?>/js/iezn_embed_patch.js"></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/radius.js"></script>
<script type="text/javascript" src="<?=$g4['path']?>/js/scroll_menu.js"></script>
<link rel="stylesheet" href="<?=$g4['path']?>/style_<?=$gr_id?>.css" type="text/css">
</head>
<body background="<?=$g4['path']?>/images/<?=$gr_id?>_bg.gif" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" bgproperties="fixed">
<div id="STATICMENU" style="position:absolute;">
<?
include_once("$g4[path]/menu/quick_menu.php");
?>
</div>
<script language="javascript">
<!--
InitializeStaticMenu(); // 스크롤메뉴를 가동하는 자바스크립트
//-->
</script>
<?
include_once("$g4[path]/menu/star.php");
?>
<!---------------------- 가장 바깥 테두리 ------------------->
<table id="Table_01" width="953" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan=2 width="239" height="95">
<!-------------로고셀 ///-----------(이곳에 로그를 넣어도 됨)레어어를 이용한 플래시로 처리함------->
</td>
<td align=right valign=top>
<?
include_once("$g4[path]/menu/top_menu.php");
?>
</td>
</tr>
<tr>
<td>
<!------------------메인메뉴 테이블시작----------------->
<table id="Table_01" width="650" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height=40 align=center background="<?=$g4['path']?>/images/main_menu_<?=$gr_id?>_bg.gif">
<?
include_once("$g4[path]/menu/main_menu.php");
?>
</td></tr></table>
<!-------------------메인메뉴 테이블끝------------->
</td>
</tr>
<tr>
<td width="239" align=center valign=top>
<!-----------------왼쪽 메뉴 셀--------------------------------------------------->
<?=outlogin("lonecat_basic"); // 외부 로그인 ?>
<br>
<br>
<?
include_once("$g4[path]/menu/sub_menu.php");
?>
<br>
<?
include_once("$g4[path]/menu/site_info.php"); //사이트현황
?>
<!--------------------------------그룹 최신글------------------------------------->
<br>
<table id="Table_01" width="202" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="<?=$g4[path]?>/images/sub_box_01.gif" width="12" height="13" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/sub_box_02.gif" width="178" height="13" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/sub_box_03.gif" width="12" height="13" alt=""></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/images/sub_box_04.gif" width="12">
</td>
<td height=25 background="<?=$g4[path]?>/images/m_title_bg.gif">
<font color="white">▶</font><?
if($group[gr_subject]!='') {
echo "<b>$group[gr_subject] <font color='white'>[그룹 최신글]</font></b>";
}
else {
echo "<b>HOME<font color='white'>[그룹 최신글]</font></b>";
}
?>
</td>
<td background="<?=$g4[path]?>/images/sub_box_06.gif" width="12">
</td>
</tr>
<tr>
<td background="<?=$g4[path]?>/images/sub_box_04.gif" width="12">
</td>
<td bgcolor=#FFFFFF valign=top>
<br>
<? echo latest_group("group", $gr_id, 5, 18);?>
</td>
<td background="<?=$g4[path]?>/images/sub_box_06.gif" width="12">
</td>
</tr>
<tr>
<td>
<img src="<?=$g4[path]?>/images/sub_box_07.gif" width="12" height="14" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/sub_box_08.gif" width="178" height="14" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/sub_box_09.gif" width="12" height="14" alt=""></td>
</tr>
</table>
<!-------------------------------- 그룹 최신글 끝---------------------- -->
<br>
<? if (!$member['mb_id']) { ?>
<!------------- 로그인 이전------------- -->
<?=visit("basic"); // 방문자수 ?>
<br>
<?=connect(); // 현재 접속자수 ?>
<div style='height:10px;'></div>
<!-------------- 로그인 이후------------ -->
<? } ?>
<? if ($member[mb_level]>1) { ?>
<br>
<?
include_once("$g4[path]/my_latest.php");
?>
<? } else { ?>
<? } ?>
<br>
<!-------------- 로그인 이후끝------------ -->
<div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<br>
<? echo latest_banner("banner_scroll","home_banner", 10, 1);//배너 게시판 최신게시물 ?>
<br>
<?
include_once("$g4[path]/menu/search.php"); //검색 폼
?>
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
f.action = "<?=$g4['bbs_path']?>/search.php";
f.submit();
}
</script>
<!-- 검색 끝 -->
<div style='height:18px;'></div>
<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>
</td>
<td valign=top >
<!-----------------오른쪽 메인 셀 시작--///메인 메뉴와 게시판이 들어가는 곳--------------------->
<?
include_once("$g4[path]/menu/main_img.php"); ////메인 상단 이미지부분
?>
<table id="Table_01" width="714" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="<?=$g4[path]?>/images/main_out_line_01.gif" width="33" height="32" alt=""></td>
<td background="<?=$g4[path]?>/images/main_out_line_02.gif" height="32">
</td>
<td>
<img src="<?=$g4[path]?>/images/main_out_line_03.gif" width="98" height="32" alt=""></td>
<td>
<img src="<?=$g4[path]?>/images/main_out_line_04.gif" width="1" height="32" alt=""></td>
</tr>
<tr>
<td background="<?=$g4[path]?>/images/main_out_line_05.gif" width="33">
</td>
<td bgcolor=#FFFFFF valign=top>
..................
어디서 손을 대야할지 모르겠습니다..

head.sub.php 의 하단쯤에
아래의 소스를 추가해 보세요.
// 그룹명이 없다면 기본그룹으로 만들어 버린다.
if ($gr_id =="")
$gr_id ="home";
아래의 소스를 추가해 보세요.
// 그룹명이 없다면 기본그룹으로 만들어 버린다.
if ($gr_id =="")
$gr_id ="home";
감사합니다...........그런데 그러면 head.php 는 적용되는데...........
그룹전체글을 한번에 출력할 수는 없군요..
head.sub.php 를 아래와 같이 했습니다....아마 제가 위 내용을 잘못 적용했겠죠.............
<?
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$begin_time = get_microtime();
if (!$g4['title'])
$g4['title'] = $config['cf_title'];
//실시간 메모사용때문에 주석처리함 by 헐랭이
// 쪽지를 받았나?
/*if ($member['mb_memo_call']) {
$mb = get_member($member[mb_memo_call], "mb_nick");
sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' ");
alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}
*/
// 현재 접속자
//$lo_location = get_text($g4[title]);
//$lo_location = $g4[title];
// 게시판 제목에 ' 포함되면 오류 발생
$lo_location = addslashes($g4['title']);
if (!$lo_location)
$lo_location = $_SERVER['REQUEST_URI'];
//$lo_url = $g4[url] . $_SERVER['REQUEST_URI'];
$lo_url = $_SERVER['REQUEST_URI'];
if (strstr($lo_url, "/$g4[admin]/") || $is_admin == "super") $lo_url = "";
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
if ($gr_id =="")
$gr_id ="home";
?>
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title><?=$g4['title']?></title>
<link rel="stylesheet" href="<?=$g4['path']?>/style.css" type="text/css">
</head>
<script language="javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path = "<?=$g4['path']?>";
var g4_bbs = "<?=$g4['bbs']?>";
var g4_bbs_img = "<?=$g4['bbs_img']?>";
var g4_url = "<?=$g4['url']?>";
var g4_is_member = "<?=$is_member?>";
var g4_is_admin = "<?=$is_admin?>";
var g4_bo_table = "<?=isset($bo_table)?$bo_table:'';?>";
var g4_sca = "<?=isset($sca)?$sca:'';?>";
var g4_charset = "<?=$g4['charset']?>";
var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<? if ($is_admin) { echo "var g4_admin = '{$g4['admin']}';"; } ?>
</script>
<script language="javascript" src="<?=$g4['path']?>/js/common.js"></script>
<body bgproperties="fixed" topmargin="0" leftmargin="0" <?=isset($g4['body_script']) ? $g4['body_script'] : "";?>>
<a name="g4_head"></a>
그룹전체글을 한번에 출력할 수는 없군요..
head.sub.php 를 아래와 같이 했습니다....아마 제가 위 내용을 잘못 적용했겠죠.............
<?
// 이 파일은 새로운 파일 생성시 반드시 포함되어야 함
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$begin_time = get_microtime();
if (!$g4['title'])
$g4['title'] = $config['cf_title'];
//실시간 메모사용때문에 주석처리함 by 헐랭이
// 쪽지를 받았나?
/*if ($member['mb_memo_call']) {
$mb = get_member($member[mb_memo_call], "mb_nick");
sql_query(" update {$g4[member_table]} set mb_memo_call = '' where mb_id = '$member[mb_id]' ");
alert($mb[mb_nick]."님으로부터 쪽지가 전달되었습니다.", $_SERVER[REQUEST_URI]);
}
*/
// 현재 접속자
//$lo_location = get_text($g4[title]);
//$lo_location = $g4[title];
// 게시판 제목에 ' 포함되면 오류 발생
$lo_location = addslashes($g4['title']);
if (!$lo_location)
$lo_location = $_SERVER['REQUEST_URI'];
//$lo_url = $g4[url] . $_SERVER['REQUEST_URI'];
$lo_url = $_SERVER['REQUEST_URI'];
if (strstr($lo_url, "/$g4[admin]/") || $is_admin == "super") $lo_url = "";
// 자바스크립트에서 go(-1) 함수를 쓰면 폼값이 사라질때 해당 폼의 상단에 사용하면
// 캐쉬의 내용을 가져옴. 완전한지는 검증되지 않음
header("Content-Type: text/html; charset=$g4[charset]");
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
header("Expires: 0"); // rfc2616 - Section 14.21
header("Last-Modified: " . $gmnow);
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
if ($gr_id =="")
$gr_id ="home";
?>
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$g4['charset']?>">
<title><?=$g4['title']?></title>
<link rel="stylesheet" href="<?=$g4['path']?>/style.css" type="text/css">
</head>
<script language="javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path = "<?=$g4['path']?>";
var g4_bbs = "<?=$g4['bbs']?>";
var g4_bbs_img = "<?=$g4['bbs_img']?>";
var g4_url = "<?=$g4['url']?>";
var g4_is_member = "<?=$is_member?>";
var g4_is_admin = "<?=$is_admin?>";
var g4_bo_table = "<?=isset($bo_table)?$bo_table:'';?>";
var g4_sca = "<?=isset($sca)?$sca:'';?>";
var g4_charset = "<?=$g4['charset']?>";
var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<? if ($is_admin) { echo "var g4_admin = '{$g4['admin']}';"; } ?>
</script>
<script language="javascript" src="<?=$g4['path']?>/js/common.js"></script>
<body bgproperties="fixed" topmargin="0" leftmargin="0" <?=isset($g4['body_script']) ? $g4['body_script'] : "";?>>
<a name="g4_head"></a>

최신글에서 그룹id명 때문에 $gr_id 충돌현상이 발생하는듯 합니다.
처음부터 그룹명을 가져와서 뿌려 줄때에
변환 처리를 거쳐야 하는데
그룹명을 그대로 사용하다보니 그런현상이 발생 하는듯 합니다.
예제
$s_gr_id =$gr_id;
이렇게한후
이미지나 스타일시트를 불러올때는
<?=$s_gr_id?>_파일이름
이렇게한후 아래처럼 하면 충돌이 나오지 않게 됩니다.^^
if ($gr_id =="")
$s_gr_id ="home";
처음부터 그룹명을 가져와서 뿌려 줄때에
변환 처리를 거쳐야 하는데
그룹명을 그대로 사용하다보니 그런현상이 발생 하는듯 합니다.
예제
$s_gr_id =$gr_id;
이렇게한후
이미지나 스타일시트를 불러올때는
<?=$s_gr_id?>_파일이름
이렇게한후 아래처럼 하면 충돌이 나오지 않게 됩니다.^^
if ($gr_id =="")
$s_gr_id ="home";

작업하시면서 변수명이 먹히지 않을경우 충돌이 나오거나
어제처럼 평션에서 값을 가져올때에 글로벌 선언이 안된 경우가 대부분 이므로
참고 하시면 됩니다.
그리고 그누보드의 기본 변수값을 끌어와서 추가되는 곳에 사용할때는 가능하면
변환 과정을 한번 거치면 충돌현상은 대부분 피하게 됩니다.^^
어제처럼 평션에서 값을 가져올때에 글로벌 선언이 안된 경우가 대부분 이므로
참고 하시면 됩니다.
그리고 그누보드의 기본 변수값을 끌어와서 추가되는 곳에 사용할때는 가능하면
변환 과정을 한번 거치면 충돌현상은 대부분 피하게 됩니다.^^
감사합니다.................////이제 해결된듯합니다...
head.sub.php 에
$s_gr_id =$gr_id;
if ($gr_id =="")
$s_gr_id ="home"; ////home는 그룹 이름중 하나로서 그룹이 없으면 home 그룹이 출력됨
이렇게 삽입 한 후
이미지나 스타일시트를 불러올때는
<?=$s_gr_id?>_파일이름
이렇게 불러오면 충돌이 나오지 않는 군요.^^
===밤이 깊었습니다.......좋은밤 되세요..
head.sub.php 에
$s_gr_id =$gr_id;
if ($gr_id =="")
$s_gr_id ="home"; ////home는 그룹 이름중 하나로서 그룹이 없으면 home 그룹이 출력됨
이렇게 삽입 한 후
이미지나 스타일시트를 불러올때는
<?=$s_gr_id?>_파일이름
이렇게 불러오면 충돌이 나오지 않는 군요.^^
===밤이 깊었습니다.......좋은밤 되세요..
페이지인식_1