마이페이지에 관련된 질문드립니다. > 질문답변

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

질문답변

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

마이페이지에 관련된 질문드립니다.

페이지 정보

본문

마이페이지를 달아야할 필요가 생겨서 스킨자료실에 있는 마이페이지를 달았습니다.
제나에 있는 것과 같이 아래 부분에 공지사항과 최근게시글을 넣고 싶습니다.
공지사항 불러오는 방법과 최근게시글 불러오는 방법을 알려 주시면 감사하겠습니다.
좋은 밤 되십시요....
추천0

댓글목록

profile_image

제로님의 댓글

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

어렵게 생각하지 마시고 index.php 파일 수정하신다 생각하시고
스킨에 최신글 넣으세요

profile_image

쎄엠님의 댓글

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

앗 답변 감사합니다.
1. 불당 참고해서 댓글 달릴 때에 표시되는 것은 달았습니다.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=57161&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%B8%B6%C0%CC%C6%E4%C0%CC%C1%F6&sop=and
2. 공지사항도 어떤 분것을 활용해서 말씀하신 것처럼 달았습니다.
(최근게시글부분 수정해서 달았습니다).
3. 각 개인이 최근에 올린 게시글은 실력이 실력인지라 도저히 흉내를 못내겠더군요.
지금 안 되는 부분이 "개인별 최근올린 글입니다" 부분이 작동을 하지 않습니다.
한번 봐주십시요.
안 되는 부분 이미지 --> http://www.jesus91.net/MY.jpg

제나 마이페이지 부분과 공통부분은 빼고 나머지 부분 올려 보겠습니다.

<table width="100%" height="10" border="0" cellspacing="0" cellpadding="0"><tr><td></td></tr></table>
<table bgcolor="#dddddd" width='100%' cellpadding='1' cellspacing='1' border='0'>
    <tr class="trs">
        <td width="100%" colspan="6" class="status_form_content">
<p align="center"><b>『 최근 30 일 동안 <?=$member[mb_nick]?> 님의 게시글 입니다.』</b></p>
         
        </td>
    </tr>
    <tr class="trs" bgcolor="#F9F9F9" cellspacing="1" cellpadding="1">
        <td width="200" >
            <p align="center" >공지사항</p>
        </td>
        <td width="200" >
            <p align="center">최근올린 글</p>
        </td>
        <td width="200" >
    <p align="center">최근댓글</p>
        </td>
    </tr>
    <tr class="trs" bgcolor="#dddddd" cellspacing="0" cellpadding="0">
        <td width="33%" class="status_form_content">
            <p><a href='../bbs/board.php?bo_table=z1_1'>『 공지사항 입니다(<?=$total_count?>) 』</p>
            <?=latest("tingenara", "pgongi", 5, 15, "");?>

        </td>
        <td width="33%" class="status_form_content">

          <p><a href='../bbs/new.php?view=w&mb_id=hsamus'>『 최근 올린 글입니다(<?=$total_count?>) 』</a></P>
------> 이 부분부터 작동을 하지 않는 부분입니다.
<?
if (!$my_date)
    $my_date = "30"; // 아무런 입력이 없으면 최근 7일로...

// _WR_ROOT_ : 최상위 글
$sqlc = " SELECT * from $g4[board_new_table]
                  WHERE wr_id <> wr_parent
                  AND write_mb_id = '' ";
$resultc = mysql_query($sqlc);
for ($i=0; $rowc = sql_fetch_array($resultc); $i++){
    $sql8 = " SELECT * from $g4[write_prefix]$rowc[bo_table] where wr_id = '$rowc[wr_id]' ";
    $row8 = sql_fetch($sql8);

    if ($row8[wr_comment] == '0') { // 코멘트가 아닌경우
        sql_fetch(" UPDATE $g4[board_new_table] set write_mb_id = '_WR_ROOT_' where bn_id = '$rowc[bn_id]' ");
    } else { // 코멘트 경우 최상위글의 mb_id를 기록
        $sql9 = " SELECT * from $g4[write_prefix]$rowc[bo_table] where wr_num = '$row8[wr_num]' and wr_comment = '1' ";
        $row9= sql_fetch($sql9);

        sql_fetch(" UPDATE $g4[board_new_table] set write_mb_id = '$row9[mb_id]' where bn_id = '$rowc[bn_id]' ");

    }

}

$today = getdate();
$before_time = date("Y-m-d H:i:s", $g4[server_time] - (86400 * $my_date));
$sql_common = " from $g4[board_new_table] where wr_id <> wr_parent and write_mb_id = '$member[mb_id]'  AND bn_datetime > '$before_time' ORDER BY bn_datetime DESC";

$sqlm = " select count(*) as cnt $sql_common ";
$rowm = sql_fetch($sqlm);
$total_countm = $rowm[cnt];

?>
<----------  여기까지가 작동하지 않는 부분입니다.

        </td>
        <td width="33%" class="status_form_content">
<p>『 최근 <?=$my_date?> 일 동안 코멘트가 달려있는 <?=$member[mb_nick]?> 님의 게시글은 <b><?=$total_countm?></b> 건 입니다. 』 </P>

<?//출력

$sqln = " select * $sql_common ";
$resultn = mysql_query($sqln);
for ($i=0; $rown = sql_fetch_array($resultn); $i++){
?>
<?
        $sql1 = " select wr_subject, wr_datetime from $g4[write_prefix]$rown[bo_table] where wr_id = '$rown[wr_parent]' ";
        $row1 = sql_fetch($sql1);
        $sql2 = " select bo_subject from $g4[board_table] where bo_table = '$rown[bo_table]' ";
        $row2 = sql_fetch($sql2);
?>
    <li> <?=$row2[bo_subject]?> :
    <a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$rown[bo_table]?>&wr_id=<?=$rown[wr_parent]?>#c_<?=$rown[wr_id]?>' onfocus='this.blur()'  title=<?=$rown[bn_datetime]?>>
    <?=cut_str($row1[wr_subject], 15)?></a> <font color=#999999><?echo "(".date('Y/m/d', strtotime($row1[wr_datetime])).")"; ?></font><br>
<? } ?>

</p>
        </td>
    </tr>
</table>

<!-- 마이페이지 끝 -->

profile_image

제로님의 댓글

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

프로그램의 실행을 위해서 g4_board_new 테이블에 필드를 추가 합니다.
parent_mb_id varchar(20)

이거 하셨나요..

profile_image

쎄엠님의 댓글의 댓글

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

아 달았습니다. 다시 확인해 볼께요
확인했습니다....
write_mb_id 필드도 추가해 놓았습니다....

Total 1,640건 24 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
1065 프라하쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10672 0 06-05
1064 hongx2쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10671 0 04-07
1063 디란도쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10669 0 11-01
1062 webpark쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10657 0 11-06
1061 소피쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10653 0 01-06
1060 오타짱쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10647 0 03-26
1059 포인트쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10633 0 05-23
1058 독신쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10618 0 02-22
1057 house쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10617 0 10-18
1056 다모아쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10615 0 08-16
1055 세분쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10615 1 05-31
1054 ubiple쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10598 0 01-04
1053 바라짱쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10596 0 06-13
1052 메빅맨쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10583 0 07-20
1051 Gmasta쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10573 0 03-20
1050
캐쉬관련 댓글1
강용쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10573 0 09-30
1049 바람나라쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10571 0 12-10
1048 프라하쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10567 0 10-23
1047 미라쿨OnA쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10561 0 06-02
1046 김성수쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10561 0 06-14
1045 소금쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10558 0 04-05
1044 아보병빠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10558 0 08-24
1043 WEBPD쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10557 0 03-26
1042 맙소사쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10556 0 06-15
1041 yb88쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10556 0 07-15

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
3,332
어제
7,570
최대
8,371
전체
1,651,752
Copyright (c) 株式会社YHPLUS. All rights reserved.