YesYo.com MintState Forums
뒤로    YesYo.com MintState BBS > Miscellaneous > Q&A
검색
멤버이름    오토
비밀번호 
 

민트채팅방 유지시키기 질문드려요..

페이지 정보

작성자 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 2건 조회 13,693회 작성일 10-04-27 11:10

본문

아래 강백호님 게시물 팁을 따라서 했는데요, 방은 만들어지는데 리스트에서 방은 유지되는데요...

방에서 나온후에 다시 방을 클릭하면 존재하지 않는 채팅방입니다. 라고합니다...


우선 알려주신데로 g4_mint_chat_room 테이블에 room_keep 이라는 필드를 하나 만들고
채팅방 만드는 마지막 부분에 아래 코드를 만들고

view sourceprint?01 <? if ($is_admin == "super" || $is_auth) { ?> 

02    <tr> 

03        <td bgcolor="#F1F8FF">방유지</td> 

04        <td bgcolor="#FFFFFF"> 

05            <select name="keep" id="keep" onChange="maxSelect(this.value);"> 

06                <option value="0" selected>자동닫기</option> 

07                <option value="1">방유지</option> 

08   

09            </select> 

10        </td> 

11    </tr> 

12 <? } ?>

이렇게 해서 최고 관리자가 방유지를 시킬 수 있게 했습니다.


chat_act.php 부분에

$room_keep = $_POST[keep];
room_keep='$room_keep'

넣고


chat_act.php, chat_room.php, chat_roomInfoBox.php 이렇게 세개 화일에
$closeRoom_sql 부분에

$closeRoom_sql = "UPDATE `".$Mint[DB_chat]."_room` SET room_open='1' WHERE room_keep<>'1' and room_id='$_POST[RoomID]' ";
$closeRoom_sel = @mysql_query($closeRoom_sql);
$closeData_sql = "UPDATE `".$Mint[DB_chat]."_data` SET chat_open='1' WHERE room_keep<>'1' and room_id='$_POST[RoomID]' ";
$closeData_sel = @mysql_query($closeData_sql);

이렇게 넣었더니 잘 되네요^^ 감사합니다.

-강백호-





chat_act.php 부분에

$room_keep = $_POST[keep];
room_keep='$room_keep'


$mb_age					= $getAgeGender[age];
		$room_keep = $_POST[keep]; ////방유지 추가
		$put_sql = "INSERT INTO `".$Mint[DB_chat]."_room` SET 
						mb_id='$mb_id', mb_gender='$mb_gender', mb_age='$mb_age', 
						room_icon='$room_icon', room_title='$room_title', room_pass='$room_pass', 
						room_typeA='$room_typeA', room_typeB='$room_typeB', room_maxCnt='$room_maxCnt', room_regdate=now(), room_keep='$room_keep' "; //,room_keep='$room_keep' 방유지 추가 
		$put_sel = mysql_query($put_sql);

첨부 파일
파일 종류: jpg 000.jpg (121.3K, 2 views)

댓글목록

강백호님의 댓글

no_profile 강백호 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

헉 이제서야 글을 봤네요.
room_keep  int(1)  아니오  0 

mysql에서 g4_mint_chat_room 요기에 위에 필드를 하나 만드셔야 하는데 이걸 안 만드신거 같은데요.

Total 49건 1 페이지
Q&A 목록
번호 제목 글쓴이 조회 날짜
49 no_profile nick1224 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13123 05-25
48 no_profile 라아 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12807 11-13
47 no_profile 푸푸 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12183 11-01
46 no_profile 밤일기 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13450 08-30
45 no_profile 신재영 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13498 04-25
44 no_profile 수리매니아 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15038 02-06
43 no_profile orange 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 12988 01-31
42 no_profile MintState 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 14208 02-01
열람중 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13694 04-27
40 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14146 04-27
39 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15828 04-27
38 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13626 04-19
37 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14249 04-21
36 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14754 04-14
35 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13450 04-12
34 no_profile 카가 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14135 03-31
33 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13937 03-25
32 no_profile 태양11 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13721 03-13
31 no_profile 명예 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14542 03-12
30 no_profile shop1234 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15286 01-26
게시물 검색
모바일 버전으로 보기
CopyRight ©2004 - 2024, YesYo.com MintState. ™