배추빌더 라이트 질문 정보
배추빌더 라이트 질문본문
현재 배추빌더 라이트 쓰고있는데요 왼쬭에 채팅방을 넣고자 하는데요
제가 완전 생초보라.. 부탁드립니다.
왼쪽에 가가라이브 채팅방 소스 넣고자 하는데 경로와파일명좀 가르쳐주세요..
head 파일 인데요 head 파일에서 소스넣는거라면 서브매뉴 아래에 넣고 싶은데 어느칸에 넣어야 되나요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
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");
include_once("$g4[path]/head.sub.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>
<style type="text/css">
body { text-align:center; }
#mw-index { width:900px; margin:10px auto 0 auto; text-align:left; }
#head { margin:0 0 10px 0; }
#head .logo { }
#head .groups { color:#ddd; font-size:10px; text-align:right; vertical-align:bottom; padding:0 5px 2px 0; }
#head .groups a { color:#555; font-weight:bold; margin:0 2px 0 2px; }
#head .line { background:url(<?=$g4[path]?>/img/mw_search_div.gif) top center no-repeat; height:3px; line-height:1px; font-size:1px; }
#head .shadow { background:url(<?=$g4[path]?>/img/mw_search_shadow.gif) top center repeat-x; }
#head .shadow { height:2px; line-height:1px; font-size:1px; width:<?=$mw[config][cf_index_width]-20?>px; margin:auto; }
#head .left-link { margin:10px 0 0 10px; }
#head .left-link a { color:#E2F6FF; font-weight:bold; }
#head .right-link { margin:10px 0 0 0; }
#head .right-link a { color:#E2F6FF; font-weight:bold; }
#head .quick-link { float:left; padding:0 5px 0 5px; }
#head .quick-link { font-family:dotum; color:#383D41; font-size:11px; }
#head .quick-div { color:#ddd; font-size:8pt; }
#head .mw-index-menu-bar { clear:both; height:36px; margin:10px 0 0 0; background:url(<?=$g4[path]?>/img/search_bar_bg.gif); }
#head .mw-index-menu-bar a:hover,
#head .mw-index-menu-bar a:link,
#head .mw-index-menu-bar a:active,
#head .mw-index-menu-bar a:visited
{ color:#fff; text-decoration:none; font-size:12px; }
#head .mw-index-menu-left { height:36px; float:left; }
#head .mw-index-menu-right { height:36px; float:right; }
#head .mw-index-menu-item { float:left; padding:12px 7px 0 7px; font-weight:bold; }
#head .mw-index-menu-div { width:10px; height:36px; float:left; background:url(<?=$g4[path]?>/img/search_bar_div.gif) center no-repeat; }
#head .mw-index-menu-select1 { height:32px; float:left; padding:0; margin:4px 5px 0 5px; background:url(<?=$g4[path]?>/img/search_select_bg.gif); }
#head .mw-index-menu-select2 { height:32px; float:left; padding:0; margin:0; background:url(<?=$g4[path]?>/img/search_select_left.gif) top left no-repeat; }
#head .mw-index-menu-select3 { height:32px; float:left; padding:8px 10px 0 10px; margin:0; background:url(<?=$g4[path]?>/img/search_select_right.gif) top right no-repeat; }
#head .mw-index-menu-select3 a:hover,
#head .mw-index-menu-select3 a:link,
#head .mw-index-menu-select3 a:active,
#head .mw-index-menu-select3 a:visited { color:#000; font-weight:bold; }
#head .search-button {
width:50px;
height:35px;
border:1px solid #5997D3; /* total color */
background-color:#5997D3; /* total color */
color:#fff;
font-weight:bold;
}
#head .mw-index-menu-bar .mw-drop-menu { display:none; position:absolute; background-color:#fff; z-index:9999; border:1px solid #ddd; padding:10px; width:150px; }
#head .mw-index-menu-bar .mw-drop-menu div { height:20px; color:#444; background:url(<?=$g4[path]?>/img/dot.gif) 0 7px no-repeat; padding:0 0 0 7px; }
#head .mw-index-menu-bar .mw-drop-menu a:link,
#head .mw-index-menu-bar .mw-drop-menu a:visited,
#head .mw-index-menu-bar .mw-drop-menu a:active { color:#444; text-decoration:none; }
#head .mw-index-menu-bar .mw-drop-menu a:hover { text-decoration:underline; }
.poll { margin:10px 0 0 0; }
#sm { margin:10px 0 0 0; width:180px; }
#sm .sm_border { border:5px solid #efefef; }
#sm .sm_margin { border:1px solid #ccc; padding:10px; }
#sm .sm_item { margin:0 0 10px 0; border-bottom:1px solid #ddd; }
#sm .sm_title { height:25px; }
#sm .sm_title a { font-weight:bold; }
#sm .sm_sub { height:22px; padding:0 0 0 30px; background:url(<?=$g4[path]?>/img/menu.gif) left top no-repeat; }
#sm .sm_sub a { margin:2px 0 0 0; float:left; }
#sm .sm_sub.selected a { font-weight:bold; }
</style>
<div id="mw-index">
<!-- 헤더 시작 -->
<div id="head">
<table border=0 cellpadding=0 cellspacing=0 style="margin:0 auto 0 auto;" align="center">
<tr>
<td class="logo"><!-- 사이트 로고 --><a href="<?=$g4[path]?>"><img src="<?=$g4[path]?>/img/logo.png"></a></td>
<td width=10></td>
<td style="padding-top:20px;">
<!-- 상단검색창 시작 -->
<form name=fmainsearch action="<?=$g4[bbs_path]?>/search.php">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="text" size="35" name="stx" style="border:5px solid #5997D3; height:35px; font-size:15px; font-weight:bold; padding:5px; ime-mode:active;">
<input type="submit" value="검색" class="search-button">
</form>
<!-- 상단검색창 끝 -->
<!-- 퀵링크 시작 -->
<table style="margin-top:5px; text-align:center;" cellpadding=0 cellspacing=0 border=0>
<tr>
<td><a href="http://g4.miwit.com/" class=quick-link>배추빌더</a></td><td class=quick-div>|</td>
<td><a href="http://g4.miwit.com/bbs/board.php?bo_table=g4_skin" class=quick-link>배추스킨</a></td><td class=quick-div>|</td>
<td><a href="http://g4.miwit.com/?mw_menu=3" class=quick-link>배추팁</a></td><td class=quick-div>|</td>
<td><a href="http://g4.miwit.com/bbs/board.php?bo_table=g4_qna" class=quick-link>질문게시판</a></td><td class=quick-div>|</td>
<td><a href="http://bbs.miwit.com/bbs/board.php?bo_table=g4_free" class=quick-link>자유게시판</a></td>
</tr>
</table>
<!-- 퀵링크 끝 -->
</td>
<td width=70></td>
</tr>
</table>
<div class="mw-index-menu-bar">
<div class="mw-index-menu-left"><img src="<?=$g4[path]?>/img/search_bar_left.gif"></div>
<!-- 그룹 메뉴 시작 -->
<?
$select_div_begin = "<div class='mw-index-menu-select1'><div class='mw-index-menu-select2'><div class='mw-index-menu-select3'>";
$select_div_end = "</div></div></div>";
$sql = "select * from $g4[group_table] order by gr_1";
$qry = sql_query($sql);
for ($i=0; $row=sql_fetch_array($qry); $i++)
{
if ($i > 0) echo "<span class='mw-index-menu-div'></span>";
if ($gr_id == $row[gr_id]) {
$div_begin = $select_div_begin;
$div_end = $select_div_end;
} else {
$div_begin = "<div class='mw-index-menu-item' gr_id='{$row[gr_id]}'>";
$div_end = "</div>";
}
echo "$div_begin<a href=\"$g4[bbs_path]/group.php?gr_id=$row[gr_id]\">$row[gr_subject]</a>$div_end";
}
$sql = "select * from $g4[group_table] order by CAST(gr_1 AS SIGNED) asc ";
$qry = sql_query($sql);
for ($i=0; $row=sql_fetch_array($qry); $i++) {
?>
<div id="mw-drop-menu-<?=$row[gr_id]?>" class="mw-drop-menu">
<?
$sql2 = "select * from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search asc";
$qry2 = sql_query($sql2);
for ($j=0; $row2=sql_fetch_array($qry2); $j++) {
if ($row2[bo_table] == $bo_table) $class = "sm_sub selected"; else $class = "sm_sub";
?>
<div><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></div>
<? } ?>
</div> <!-- mw-drop-menu -->
<? } ?>
<!-- 그룹 메뉴 끝 -->
<div class="mw-index-menu-right"><img src="<?=$g4[path]?>/img/search_bar_right.gif"></div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$(".mw-index-menu-item").mouseenter(function () {
$(".mw-drop-menu").hide();
gr_id = $(this).attr("gr_id");
t = $(this).offset().top;
l = $(this).offset().left;
$("#mw-drop-menu-"+gr_id).css("top", t+30);
$("#mw-drop-menu-"+gr_id).css("left", l);
$("#mw-drop-menu-"+gr_id).show();
});
$(".mw-index-menu-bar").mouseleave(function () {
$(".mw-drop-menu").hide();
});
});
</script>
</div><!-- head -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" width="180">
<div class="outlogin"><?=outlogin("mw_lite")?></div>
<div id="sm">
<div class="sm_border">
<div class="sm_margin">
<?
$sql = "select * from $g4[group_table] ";
if ($gr_id)
$sql .= " where gr_id = '$gr_id' ";
$sql.= " order by gr_1 ";
$qry = sql_query($sql);
for ($i=0; $row=sql_fetch_array($qry); $i++) {
?>
<div class="sm_item">
<div class="sm_title"><a href="<?=$g4[bbs_path]?>/group.php?gr_id=<?=$row[gr_id]?>"><?=$row[gr_subject]?></a></div>
<?
$sql2 = "select * from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search asc";
$qry2 = sql_query($sql2);
for ($j=0; $row2=sql_fetch_array($qry2); $j++) {
if ($row2[bo_table] == $bo_table) $class = "sm_sub selected"; else $class = "sm_sub";
?>
<div class="<?=$class?>"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></div>
<? } ?>
</div> <!-- sm_item -->
<? } ?>
</div> <!-- sm_margin -->
</div> <!-- sm_border -->
</div> <!-- sm -->
<div class="poll"><?=poll("mw.poll")?></div>
</td>
<td width="10"></td>
<td valign="top">
제가 완전 생초보라.. 부탁드립니다.
왼쪽에 가가라이브 채팅방 소스 넣고자 하는데 경로와파일명좀 가르쳐주세요..
head 파일 인데요 head 파일에서 소스넣는거라면 서브매뉴 아래에 넣고 싶은데 어느칸에 넣어야 되나요?
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
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");
include_once("$g4[path]/head.sub.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
?>
<style type="text/css">
body { text-align:center; }
#mw-index { width:900px; margin:10px auto 0 auto; text-align:left; }
#head { margin:0 0 10px 0; }
#head .logo { }
#head .groups { color:#ddd; font-size:10px; text-align:right; vertical-align:bottom; padding:0 5px 2px 0; }
#head .groups a { color:#555; font-weight:bold; margin:0 2px 0 2px; }
#head .line { background:url(<?=$g4[path]?>/img/mw_search_div.gif) top center no-repeat; height:3px; line-height:1px; font-size:1px; }
#head .shadow { background:url(<?=$g4[path]?>/img/mw_search_shadow.gif) top center repeat-x; }
#head .shadow { height:2px; line-height:1px; font-size:1px; width:<?=$mw[config][cf_index_width]-20?>px; margin:auto; }
#head .left-link { margin:10px 0 0 10px; }
#head .left-link a { color:#E2F6FF; font-weight:bold; }
#head .right-link { margin:10px 0 0 0; }
#head .right-link a { color:#E2F6FF; font-weight:bold; }
#head .quick-link { float:left; padding:0 5px 0 5px; }
#head .quick-link { font-family:dotum; color:#383D41; font-size:11px; }
#head .quick-div { color:#ddd; font-size:8pt; }
#head .mw-index-menu-bar { clear:both; height:36px; margin:10px 0 0 0; background:url(<?=$g4[path]?>/img/search_bar_bg.gif); }
#head .mw-index-menu-bar a:hover,
#head .mw-index-menu-bar a:link,
#head .mw-index-menu-bar a:active,
#head .mw-index-menu-bar a:visited
{ color:#fff; text-decoration:none; font-size:12px; }
#head .mw-index-menu-left { height:36px; float:left; }
#head .mw-index-menu-right { height:36px; float:right; }
#head .mw-index-menu-item { float:left; padding:12px 7px 0 7px; font-weight:bold; }
#head .mw-index-menu-div { width:10px; height:36px; float:left; background:url(<?=$g4[path]?>/img/search_bar_div.gif) center no-repeat; }
#head .mw-index-menu-select1 { height:32px; float:left; padding:0; margin:4px 5px 0 5px; background:url(<?=$g4[path]?>/img/search_select_bg.gif); }
#head .mw-index-menu-select2 { height:32px; float:left; padding:0; margin:0; background:url(<?=$g4[path]?>/img/search_select_left.gif) top left no-repeat; }
#head .mw-index-menu-select3 { height:32px; float:left; padding:8px 10px 0 10px; margin:0; background:url(<?=$g4[path]?>/img/search_select_right.gif) top right no-repeat; }
#head .mw-index-menu-select3 a:hover,
#head .mw-index-menu-select3 a:link,
#head .mw-index-menu-select3 a:active,
#head .mw-index-menu-select3 a:visited { color:#000; font-weight:bold; }
#head .search-button {
width:50px;
height:35px;
border:1px solid #5997D3; /* total color */
background-color:#5997D3; /* total color */
color:#fff;
font-weight:bold;
}
#head .mw-index-menu-bar .mw-drop-menu { display:none; position:absolute; background-color:#fff; z-index:9999; border:1px solid #ddd; padding:10px; width:150px; }
#head .mw-index-menu-bar .mw-drop-menu div { height:20px; color:#444; background:url(<?=$g4[path]?>/img/dot.gif) 0 7px no-repeat; padding:0 0 0 7px; }
#head .mw-index-menu-bar .mw-drop-menu a:link,
#head .mw-index-menu-bar .mw-drop-menu a:visited,
#head .mw-index-menu-bar .mw-drop-menu a:active { color:#444; text-decoration:none; }
#head .mw-index-menu-bar .mw-drop-menu a:hover { text-decoration:underline; }
.poll { margin:10px 0 0 0; }
#sm { margin:10px 0 0 0; width:180px; }
#sm .sm_border { border:5px solid #efefef; }
#sm .sm_margin { border:1px solid #ccc; padding:10px; }
#sm .sm_item { margin:0 0 10px 0; border-bottom:1px solid #ddd; }
#sm .sm_title { height:25px; }
#sm .sm_title a { font-weight:bold; }
#sm .sm_sub { height:22px; padding:0 0 0 30px; background:url(<?=$g4[path]?>/img/menu.gif) left top no-repeat; }
#sm .sm_sub a { margin:2px 0 0 0; float:left; }
#sm .sm_sub.selected a { font-weight:bold; }
</style>
<div id="mw-index">
<!-- 헤더 시작 -->
<div id="head">
<table border=0 cellpadding=0 cellspacing=0 style="margin:0 auto 0 auto;" align="center">
<tr>
<td class="logo"><!-- 사이트 로고 --><a href="<?=$g4[path]?>"><img src="<?=$g4[path]?>/img/logo.png"></a></td>
<td width=10></td>
<td style="padding-top:20px;">
<!-- 상단검색창 시작 -->
<form name=fmainsearch action="<?=$g4[bbs_path]?>/search.php">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="text" size="35" name="stx" style="border:5px solid #5997D3; height:35px; font-size:15px; font-weight:bold; padding:5px; ime-mode:active;">
<input type="submit" value="검색" class="search-button">
</form>
<!-- 상단검색창 끝 -->
<!-- 퀵링크 시작 -->
<table style="margin-top:5px; text-align:center;" cellpadding=0 cellspacing=0 border=0>
<tr>
<td><a href="http://g4.miwit.com/" class=quick-link>배추빌더</a></td><td class=quick-div>|</td>
<td><a href="http://g4.miwit.com/bbs/board.php?bo_table=g4_skin" class=quick-link>배추스킨</a></td><td class=quick-div>|</td>
<td><a href="http://g4.miwit.com/?mw_menu=3" class=quick-link>배추팁</a></td><td class=quick-div>|</td>
<td><a href="http://g4.miwit.com/bbs/board.php?bo_table=g4_qna" class=quick-link>질문게시판</a></td><td class=quick-div>|</td>
<td><a href="http://bbs.miwit.com/bbs/board.php?bo_table=g4_free" class=quick-link>자유게시판</a></td>
</tr>
</table>
<!-- 퀵링크 끝 -->
</td>
<td width=70></td>
</tr>
</table>
<div class="mw-index-menu-bar">
<div class="mw-index-menu-left"><img src="<?=$g4[path]?>/img/search_bar_left.gif"></div>
<!-- 그룹 메뉴 시작 -->
<?
$select_div_begin = "<div class='mw-index-menu-select1'><div class='mw-index-menu-select2'><div class='mw-index-menu-select3'>";
$select_div_end = "</div></div></div>";
$sql = "select * from $g4[group_table] order by gr_1";
$qry = sql_query($sql);
for ($i=0; $row=sql_fetch_array($qry); $i++)
{
if ($i > 0) echo "<span class='mw-index-menu-div'></span>";
if ($gr_id == $row[gr_id]) {
$div_begin = $select_div_begin;
$div_end = $select_div_end;
} else {
$div_begin = "<div class='mw-index-menu-item' gr_id='{$row[gr_id]}'>";
$div_end = "</div>";
}
echo "$div_begin<a href=\"$g4[bbs_path]/group.php?gr_id=$row[gr_id]\">$row[gr_subject]</a>$div_end";
}
$sql = "select * from $g4[group_table] order by CAST(gr_1 AS SIGNED) asc ";
$qry = sql_query($sql);
for ($i=0; $row=sql_fetch_array($qry); $i++) {
?>
<div id="mw-drop-menu-<?=$row[gr_id]?>" class="mw-drop-menu">
<?
$sql2 = "select * from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search asc";
$qry2 = sql_query($sql2);
for ($j=0; $row2=sql_fetch_array($qry2); $j++) {
if ($row2[bo_table] == $bo_table) $class = "sm_sub selected"; else $class = "sm_sub";
?>
<div><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></div>
<? } ?>
</div> <!-- mw-drop-menu -->
<? } ?>
<!-- 그룹 메뉴 끝 -->
<div class="mw-index-menu-right"><img src="<?=$g4[path]?>/img/search_bar_right.gif"></div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$(".mw-index-menu-item").mouseenter(function () {
$(".mw-drop-menu").hide();
gr_id = $(this).attr("gr_id");
t = $(this).offset().top;
l = $(this).offset().left;
$("#mw-drop-menu-"+gr_id).css("top", t+30);
$("#mw-drop-menu-"+gr_id).css("left", l);
$("#mw-drop-menu-"+gr_id).show();
});
$(".mw-index-menu-bar").mouseleave(function () {
$(".mw-drop-menu").hide();
});
});
</script>
</div><!-- head -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" width="180">
<div class="outlogin"><?=outlogin("mw_lite")?></div>
<div id="sm">
<div class="sm_border">
<div class="sm_margin">
<?
$sql = "select * from $g4[group_table] ";
if ($gr_id)
$sql .= " where gr_id = '$gr_id' ";
$sql.= " order by gr_1 ";
$qry = sql_query($sql);
for ($i=0; $row=sql_fetch_array($qry); $i++) {
?>
<div class="sm_item">
<div class="sm_title"><a href="<?=$g4[bbs_path]?>/group.php?gr_id=<?=$row[gr_id]?>"><?=$row[gr_subject]?></a></div>
<?
$sql2 = "select * from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search asc";
$qry2 = sql_query($sql2);
for ($j=0; $row2=sql_fetch_array($qry2); $j++) {
if ($row2[bo_table] == $bo_table) $class = "sm_sub selected"; else $class = "sm_sub";
?>
<div class="<?=$class?>"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$row2[bo_table]?>"><?=$row2[bo_subject]?></a></div>
<? } ?>
</div> <!-- sm_item -->
<? } ?>
</div> <!-- sm_margin -->
</div> <!-- sm_border -->
</div> <!-- sm -->
<div class="poll"><?=poll("mw.poll")?></div>
</td>
<td width="10"></td>
<td valign="top">
댓글 전체