사이트맵에 관련하여 ... > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

서버정보나 계정정보는 보안유지를 위해 관리자쪽지나 메일로 발송해 주시거나 제작의뢰 게시판을 이용해 주시면 감사하겠습니다..

사이트맵에 관련하여 ...

페이지 정보

본문

안녕하세요

두가지 질문이 있습니다.
이곳 제로나라 하단에 보시면..
제로나라안내 - 이용/제작/견적안내 - 구입대행안내 - 책임의 한계와 법적고지 - 회원가입약관 - Privacy Policy - 이메일무단수집거부
이부분을 표시를 할려고 하는데요
제로나라는  <? echo select_gr_list("sel_gr", html, 10)?>  이렇게 한듯 합니다.
링크를 보게되면 http://zeronara.net/bbs/board.php?bo_table=html2 로 나오네요
그룹명이 아닌 그냥 html을 입력하는 이유와 방법좀 알고 싶습니다.
현재는 아래와 같이 사용하고 있습니다.
<? echo select_gr_list("sel_gr", 그룹, 출력게시판수)?>

두번째 질문은 이렇게 사용하다보니  Site Map을 표시를 할 수가 없더군요
내용에 sitemap.pnp파일 소스를 내용에다 넣으닌깐 에러가 나더라고요.

방법좀 알려주셨으면 합니다.
추천0

댓글목록

profile_image

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

html은 그룹명입니다..

<? echo select_gr_list("sel_gr", 그룹, 출력게시판수)?> 이게 맞습니다..
사이트 맵에 보시면 제외그룹이 설정되어 있을겁니다.원치 않는 그룹은 대상에서 삭제하시면 됩니다.

profile_image

hongx2님의 댓글

hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

여분 10번 필드에 LINK라는 값을 넣어주고 설정값에서 풀 도메인을 넣으면 될지 싶습니다.
타게시판도 그렇게 적용이 되는거 같더라구요7. ^^

profile_image

골든님의 댓글

골든쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

답변에 감사합니다.
그럼 저가 현재하고 있는것이 맞다는것인데요...

이곳에서 sitemap을 받아 소스를 보면 제외그룹 설정되어 있더군요. 그런데 전 기존 그대로 사용을 해서 보닌깐 하나만 딸랑 나오더군요

그래서 기존에 사용하는 내용

<?

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$row_my=array();
  $sql2 = "select gr_id,bo_table,bo_subject from $g4[board_table] where bo_table !='datatest' order by gr_id,bo_table";
  $result2 = sql_query($sql2); 
  for($mi=0; $row2=sql_fetch_array($result2); $mi++){   
  $tmp_write_table ="";
  $tmp_write_table = $g4[write_prefix] . $row2[bo_table];
  $sql3 = "select * from $tmp_write_table where wr_is_comment = 0 order by wr_id";  //원글만 
  $result3 = sql_query($sql3);
  $old_res_cnt=$res_cnt; $tmp_res_cnt="";   
  $tmp_res_cnt=mysql_num_rows($result3); //게시판별 구한수
  $res_cnt=$old_res_cnt+$tmp_res_cnt;
  $old_wr_hit=$res_wr_hit;    $res_wr_hit="";   
  $tmp_wr_hit=@mysql_result(@mysql_query("select sum(wr_hit) from $tmp_write_table"),0,0);           
  $res_wr_hit=$old_wr_hit+$tmp_wr_hit;
  $res_wr_hit1=number_format($res_wr_hit);
  }//for 

$time = date("Y-m-d");
$target1 = "1";
$target = "0";//지정일(지정일 이후에 등록된 글만 추출하기 위함(by nasca)
    $duration = date("Y-m-d", $g4[server_time] - ($target * 86400));
    $duration1 = date("Y-m-d", $g4[server_time] + ($target1 * 86400));
$sql = " select count(bn_id) as cnt from $g4[board_new_table]
              where bn_datetime between '$duration' and '$duration1'
              order by bn_datetime ";
$row = sql_fetch($sql);

$width= "97%";
?>

<table width='678' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td><img src='<?=$g4['path']?>/img/out_bco01.gif' width='7' height='6'></td>
<td background='<?=$g4['path']?>/img/out_bbg01.gif'></td>
<td><img src='<?=$g4['path']?>/img/out_bco02.gif' width='6' height='6'></td>
</tr>
<tr><td background='<?=$g4['path']?>/img/out_bbg02.gif' ></td>
<td>
<table width='665' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td>
<table width='97%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr>
<td align='left'><img src='<?=$g4['path']?>/img/sitemap.gif'></td>
</tr>
<tr><td height='20'></td></tr>
</table>
</td>
</tr>
</table>


ㆍ<span class='' style='#666666;'> 게시판명 <font color=red> 오늘등록글(<?=$row[cnt]?>)</font>/전체글(<?=$res_cnt?>)/<font color=blue>총열람수(<?=$res_wr_hit1?>)</font></span>
<table width="<?=$width?>" height="380" cellpadding=0 cellspacing=0 align="center" border="0">
<tr><td bgcolor="#CCCCCC" height="1"></td></tr>
<tr><td height="20"></td></tr>
<tr><td valign="top">

<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<?

$cells = 0;

switch(true)
{
case $member[mb_level] <= 4 : // 정회원 5 미만일때
$except="'member','content'"; // 제외 그룹
break;
case $member[mb_level] <= 5 : // 정회원일때
$except="'content'"; // 제외그룹
break;
default:
$except="''";
}

$sql = " select  gr_id, gr_subject from $g4[group_table] where gr_id not in ($except) order by gr_subject desc ";
$rst1 = sql_query($sql);

while ($row=sql_fetch_array($rst1)) {

if($cells%3==0)
echo "</tr><tr>";

echo "<td width='33%' valign='top' align='center'>";
echo "<table width='179' height='100%' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td background='$g4[path]/img/sitemap_bg1.gif' width='179' height='42' style='padding-left:22px;'><img src='$g4[path]/img/title_site.gif' width='32' height='32' align='absmiddle'>&nbsp;&nbsp;<strong>$row[gr_subject]</strong></td></tr></table><table width='190' height='100%' cellpadding='0' cellspacing='0' border='0'>"; // 그룹명 출력

$sql2 = " select bo_8, bo_table, bo_subject,bo_count_write from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search ";
$rst2 = sql_query($sql2);
$cells++;
while ($row2=sql_fetch_array($rst2)) {

$time = date("Y-m-d");
    $target1 = "1";
    $target = "0";//지정일(지정일 이후에 등록된 글만 추출하기 위함(by nasca)
    $duration = date("Y-m-d", $g4[server_time] - ($target * 86400));
    $duration1 = date("Y-m-d", $g4[server_time] + ($target1 * 86400));
    $sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime between '$duration' and '$duration1'  ";
             
    $row3 = sql_fetch($sql3);

$tmp_wr_hit=@mysql_result(@mysql_query("select sum(wr_hit) from $g4[write_prefix]$row2[bo_table]"),0,0);
if ($row3[cnt] > 0)
$new = "<span class='' style='color:#666666;'>(<font color=red>$row3[cnt]</font>/$row2[bo_count_write]/<font color=blue>$tmp_wr_hit</font>) <img src='$g4[path]/img/icon_new.gif'> </span>&nbsp;"; // new 아이콘
else
$new = "<span class='' style='#666666;'>(<font color=red>$row3[cnt]</font>/$row2[bo_count_write]/<font color=blue>$tmp_wr_hit</font>) </span>"; //new 아이콘 없음
echo "<tr><td style='padding-left:0px; height:26px;'>ㆍ<a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a>$new <br /></td>";
echo "<tr><td height='1' bgcolor='#E9E9E9'></td></tr>";
}
echo "<tr><td height='20'></td></tr></table>";
echo "</td>";
}
?>
</tr>
</table>

</td></tr>
<tr><td height="10"></td><tr>
<tr><td bgcolor="#E9E9E9" height="1"></td></tr>
<tr><td height="10"></td><tr>
</table>


</td>
<td background="<?=$g4['path']?>/img/out_bbg03.gif"></td>
</tr>
<tr>
<td><img src="<?=$g4['path']?>/img/out_bco03.gif" width="7" height="6"></td>
<td background="<?=$g4['path']?>/img/out_bbg04.gif"></td>
<td><img src="<?=$g4['path']?>/img/out_bco04.gif" width="6" height="6"></td>
</tr>
</table>

이것을 사용하니 잘나오더군요
그런데 사이트맵에 그룹전체를 보이지 않게 할려니 잘 안되는데 이곳 제로나라에서 받은것 소스를 보면 제외할 그룹명을 입력을 하라고 되어 있더군요
그부분을 위 소스에 추가를 할려면 어떻게 추가를 해야 하나요?

한수 부탁드립니다.

profile_image

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

$except="'member','content'"; // 제외 그룹
이부분에 적으면 됩니다..활용방법은 같습니다..

profile_image

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

<?
echo "<a href='{$list[$i][wr_1]}'  target='{$list[$i][wr_2]}'>";
            echo "<font style='font-size:9pt; color:#FFFFFF;'><strong>{$list[$i]['wr_5']}</strong></font>";
            echo "<br><font style='font-size:9pt; color:#FFFFFF;'>{$list[$i]['wr_6']}</font>";
            echo "<br><font style='font-size:9pt; color:#FFFFFF;'>{$list[$i]['wr_7']}</font>";
            echo "</a>";

            ?>

profile_image

골든님의 댓글의 댓글

골든쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

감사합니다. 아 있었군요... 이궁 유심히 볼껄...

Total 1,640건 9 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
1440 첫만남의감격쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13028 0 08-05
1439 맙소사쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12996 0 06-30
1438
아빠님.^^ 댓글9
맙소사쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12982 0 08-02
1437 보아스쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12977 0 07-17
1436 심봉사쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12960 0 09-07
1435 sharepia쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12946 0 09-25
1434 독신쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12942 0 07-30
1433 데이빗쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12941 0 03-15
1432 용용쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12933 0 09-17
1431 보아스쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12914 0 07-12
1430 용용쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12891 0 02-07
1429 맙소사쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12860 0 07-24
1428 힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12848 0 03-02
1427 박미영쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12818 0 06-26
1426 quarterback쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12794 0 02-16
1425 쾌지나칭칭나네쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12793 0 02-28
1424 김성수쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12777 0 03-15
1423 수형아빠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12769 0 07-08
1422 검정하늘쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12735 1 01-03
1421 오타짱쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12726 0 03-19
1420 davi쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12722 0 02-17
1419 골든쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12711 0 06-11
1418 공감쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12688 0 08-17
1417 알럽투데이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12679 0 10-21
열람중 골든쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12670 0 09-08

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
3,761
어제
4,618
최대
7,259
전체
1,239,309
Copyright (c) 株式会社YHPLUS. All rights reserved.