로그인후 카운트 나타나게 하려면 어떻게 해야하는지요? 정보
그누보드 로그인후 카운트 나타나게 하려면 어떻게 해야하는지요?본문
예전 소스를 덮어 씌우는 바람에 도통 알길이 없네요.........^^
그리고
http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&wr_id=3638&x=0&y=0
루트님의 달력소스인데 적용해 보니 아래와 같은 에러가 주루룩 나오네요....^^
처음 <? include "./bbs/calendar.php"; ?>했을때 달력부분은 나왔는데 지금은 아래와 같은 에러가 주룩 나옵니다. 달력이 나왔을땐
<? if ($bo_table) { // 게시판이 존재할경우 달력표시 ?>
<? include "./bbs/calendar.php"; ?>
<? } ?>
이렇게 소스를 사용하면 된다라고 하셨는데 이걸 적용해 보니 에러는 나오질 않는데 달력이 보이질 않네요...^^
달력과 게시판을 같이 연결해야 될거 같은데...... 에구 주절주절 말이 많았습니다......^^
Warning: main(./calender/calendar.php): failed to open stream: No such file or directory in d:\apm_setup\htdocs\3_36\main.php on line 76
Warning: main(./calender/calendar.php): failed to open stream: No such file or directory in d:\apm_setup\htdocs\3_36\main.php on line 76
Warning: main(): Failed opening './calender/calendar.php' for inclusion (include_path='.') in d:\apm_setup\htdocs\3_36\main.php on line 76
그리고
http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&wr_id=3638&x=0&y=0
루트님의 달력소스인데 적용해 보니 아래와 같은 에러가 주루룩 나오네요....^^
처음 <? include "./bbs/calendar.php"; ?>했을때 달력부분은 나왔는데 지금은 아래와 같은 에러가 주룩 나옵니다. 달력이 나왔을땐
<? if ($bo_table) { // 게시판이 존재할경우 달력표시 ?>
<? include "./bbs/calendar.php"; ?>
<? } ?>
이렇게 소스를 사용하면 된다라고 하셨는데 이걸 적용해 보니 에러는 나오질 않는데 달력이 보이질 않네요...^^
달력과 게시판을 같이 연결해야 될거 같은데...... 에구 주절주절 말이 많았습니다......^^
Warning: main(./calender/calendar.php): failed to open stream: No such file or directory in d:\apm_setup\htdocs\3_36\main.php on line 76
Warning: main(./calender/calendar.php): failed to open stream: No such file or directory in d:\apm_setup\htdocs\3_36\main.php on line 76
Warning: main(): Failed opening './calender/calendar.php' for inclusion (include_path='.') in d:\apm_setup\htdocs\3_36\main.php on line 76
댓글 전체
eVerRock 님 알려줘서 감사합니다...............^^
찐짜 자~~알 되는군요...... ^^
찐짜 자~~알 되는군요...... ^^
저같은 경우엔 관리자만 볼 수 있도록 아래와 같이 처리했습니다.
참조만 하세요 ^^ head.php에서 사용한 소스입니다.
<!-- 카운터 -->
<?
//현재접속자...관리자만 볼 수 있게...
if($is_admin){
$sql = " select COUNT(*), SUM(IF(mb_id<>'',1,0)), SUM(IF(mb_id='',1,0)) from $cfg[table_login] ";
$row = sql_fetch($sql);
?>
현재접속자 : <? echo "{$row[0]}"; ?> 명<br><br><br>
회 원 : <? echo "{$row[1]}"; ?> 명<br>
손 님 : <? echo "{$row[2]}"; ?> 명<br><br>
<? include "./bbs/count.php"; ?>
<? } ?>
참조만 하세요 ^^ head.php에서 사용한 소스입니다.
<!-- 카운터 -->
<?
//현재접속자...관리자만 볼 수 있게...
if($is_admin){
$sql = " select COUNT(*), SUM(IF(mb_id<>'',1,0)), SUM(IF(mb_id='',1,0)) from $cfg[table_login] ";
$row = sql_fetch($sql);
?>
현재접속자 : <? echo "{$row[0]}"; ?> 명<br><br><br>
회 원 : <? echo "{$row[1]}"; ?> 명<br>
손 님 : <? echo "{$row[2]}"; ?> 명<br><br>
<? include "./bbs/count.php"; ?>
<? } ?>
로그인후 카운터 보기에 성공하니 또 잔잔히 궁금증이 유발되는군요....
관리자 로그인시에만 카운터보기는 어떻게 해야 하는지요?.............
궁금한게 끝이 없군요...............^^
if (!$is_admin ---> 뭐 이런식으로 시작되어야 할것 같은데......이래저래 해봐도 안되는군요. T.T 이힝,......
관리자 로그인시에만 카운터보기는 어떻게 해야 하는지요?.............
궁금한게 끝이 없군요...............^^
if (!$is_admin ---> 뭐 이런식으로 시작되어야 할것 같은데......이래저래 해봐도 안되는군요. T.T 이힝,......
앗!!!
이렇게 답변 주셨구요..........^^
바로 실행해보니 정답이네요...................^^ 감사합니다...............
로그인후 카운터보기는 성공입니다...................^^
이렇게 답변 주셨구요..........^^
바로 실행해보니 정답이네요...................^^ 감사합니다...............
로그인후 카운터보기는 성공입니다...................^^
앗..혹시 이건지 모르겠습니다.
<?
if($member[mb_id]) {
include "./bbs/count.php";
}
?>
<?
if($member[mb_id]) {
include "./bbs/count.php";
}
?>
main소슨는 아래와 같습니다..... 실험용 데이터라 지저분 합니다.............^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "그누보드3";
?>
<table width='100%' cellpadding=0 cellspacing=0>
<colgroup width=''>
<colgroup width=5>
<colgroup width=163>
<tr>
<td valign=top>
<?
// 최신글 시작
$sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
//echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0> <img src='image/icon_01.gif' align=absmiddle> <a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr></table>";
# 이 함수가 바로 최신글을 추출하는 역할을 합니다.
# 사용방법
# latest(스킨, 게시판아이디, 출력라인, 글자수);
# 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
latest('', $row[bo_table], 5, 70);
echo "<p>";
}
// 최신글 끝
?>
</td>
<td></td>
<td valign=top><!-- 투표 -->
<? include "./bbs/vote.php"; ?><!-- 공백 -->
<!--로또일주일 삽입-------->
<table width=100% height=5>
<tr>
<td></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="45">Lotto</td>
<td>
<p align="center"><? include "./lotto/lotto7.php"; ?></p>
</td>
</tr>
</table>
<!-- 로또 당첨번호 리스트 가져오기 -->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><? include "./lotto/lotto_list.php"; ?></td>
</tr>
</table>
<!-- 주식시세 -->
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="white"><? include "./lotto/stock.php"; ?></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<!-- 카렌다 -->
<td>
<? include "./calender/calendar.php"; ?>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<!--게시판을 디렉토리처럼 보이게하기-->
<td><? include "./category.php"; ?></td>
</tr>
</table>
<table width=100% height=5>
<tr>
<td></td>
</tr>
</table>
<!--로또 삽입 끝-----------><!-- 카운터 -->
<img src='image/bar_count.gif' border=0><br><? include "./bbs/count.php"; ?></td>
</tr>
</table>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "DESIGN");
$html_title = "그누보드3";
?>
<table width='100%' cellpadding=0 cellspacing=0>
<colgroup width=''>
<colgroup width=5>
<colgroup width=163>
<tr>
<td valign=top>
<?
// 최신글 시작
$sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
//echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0> <img src='image/icon_01.gif' align=absmiddle> <a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr></table>";
# 이 함수가 바로 최신글을 추출하는 역할을 합니다.
# 사용방법
# latest(스킨, 게시판아이디, 출력라인, 글자수);
# 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
latest('', $row[bo_table], 5, 70);
echo "<p>";
}
// 최신글 끝
?>
</td>
<td></td>
<td valign=top><!-- 투표 -->
<? include "./bbs/vote.php"; ?><!-- 공백 -->
<!--로또일주일 삽입-------->
<table width=100% height=5>
<tr>
<td></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="45">Lotto</td>
<td>
<p align="center"><? include "./lotto/lotto7.php"; ?></p>
</td>
</tr>
</table>
<!-- 로또 당첨번호 리스트 가져오기 -->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td><? include "./lotto/lotto_list.php"; ?></td>
</tr>
</table>
<!-- 주식시세 -->
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="white"><? include "./lotto/stock.php"; ?></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<!-- 카렌다 -->
<td>
<? include "./calender/calendar.php"; ?>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<!--게시판을 디렉토리처럼 보이게하기-->
<td><? include "./category.php"; ?></td>
</tr>
</table>
<table width=100% height=5>
<tr>
<td></td>
</tr>
</table>
<!--로또 삽입 끝-----------><!-- 카운터 -->
<img src='image/bar_count.gif' border=0><br><? include "./bbs/count.php"; ?></td>
</tr>
</table>