게시판에 사용자 url 여분필드 생성 도움좀 부탁드려요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

게시판에 사용자 url 여분필드 생성 도움좀 부탁드려요 정보

게시판에 사용자 url 여분필드 생성 도움좀 부탁드려요

본문

배추라이트에서 사용자 url 여분필드를 생성하고 싶은데요. 팁을 봐도 쉽지가 않네요

배추라이트 "head.php"

<?
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:hover,
#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>|</span></td>
<td><a href="http://g4.miwit.com/bbs/board.php?bo_table=g4_skin" class=quick-link>배추스킨</a></td><td class=quick-div>|</span></td>
<td><a href="http://g4.miwit.com/?mw_menu=3" class=quick-link>배추팁</a></td><td class=quick-div>|</span></td>
<td><a href="http://g4.miwit.com/bbs/board.php?bo_table=g4_qna" class=quick-link>질문게시판</a></td><td class=quick-div>|</span></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>
  <!-- 그룹 메뉴 시작 -->
    <?
    ...
        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'>";
            $div_end = "</div>";
        }
  $group_link = (!empty($row['gr_2']))?$row['gr_2']:$g4['bbs_path'].'/'.'group.php?gr_id=' .$row['gr_id']; // 추가
        echo "$div_begin<a href=\"$group_link\">$row[gr_subject]</a>$div_end"; // 수정
    }
    ?>
    <!-- 그룹 메뉴 끝 -->

    <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">

여기에서...

중간쯤~ <!-- 그룹 메뉴 시작 -->부터 <!-- 그룹 메뉴 끝-->까지~
http://umz.kr/03Fv4 <- 사노라가노라님의 팁대로
그룹메뉴 여분필드2를 생성 해주었습니다~

하지만...

http://umz.kr/03GKS <-- 여기 팁대로 게시판 url 여부필드도 생성해주려는데

 <!-- 그룹 메뉴 시작 -->부터 <!-- 그룹 메뉴 끝-->사이에 소스를 추가해넣어주면 에러나고
?><--를 삭제했더니 에러는 없어졌는데  게시판 여분필드에서 입력해도..
아무런 반응이 없네요 ㅠ.ㅠ

(그룹 사용자 url 필드는 잘 적용됩니다)

어떤 식으로 넣어야 하는건지 도움좀 부탁드립니다.
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로