테스트 사이트 - 개발 중인 베타 버전입니다

게시판에 글을 쓰면, 현재 날짜와 시간으로 등록이 되는데요. 채택완료

침노하는자 10년 전 조회 2,876

게시판에 올리는 글을 과거날짜에 쓴걸로 하고 싶은데요.

 

방법이 없는지요? 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
10년 전
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

침노하는자
10년 전
답변 주셔서 감사드립니다.

댓글을 작성하려면 로그인이 필요합니다.

스아이
10년 전

방법이 있죠!!없긴 왜없어요!!!

우선 write_update.php 파일에

</p><p><span style="font-size: 11pt; line-height: 1.5;"></span></p><p style="font-size: 14.6666669845581px;">            if(isset($_POST['<span style="font-size: 14.6666669845581px; line-height: 1.5;">wr_datetime</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">']) && $_POST['</span><span style="font-size: 14.6666669845581px; line-height: 1.5;">wr_datetime</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">'])</span></p><p style="font-size: 14.6666669845581px;">                $<span style="font-size: 14.6666669845581px; line-height: 1.5;">wr_datetime</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 14.6666669845581px; line-height: 1.5;">​</span><span style="font-size: 14.6666669845581px; line-height: 1.5;"> = clean_xss_tags(trim($_POST['</span><span style="font-size: 14.6666669845581px; line-height: 1.5;">wr_datetime</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span id="husky_bookmark_end_1440075977143" style="font-size: 11pt; line-height: 1.5;"></span><span style="font-size: 11pt; line-height: 1.5;">']));</span></p><p style="font-size: 14.6666669845581px;">            else</p><p style="font-size: 14.6666669845581px;">                $<span style="font-size: 14.6666669845581px; line-height: 1.5;">wr_datetime</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 14.6666669845581px; line-height: 1.5;">​</span><span style="font-size: 14.6666669845581px; line-height: 1.5;"> = </span><span style="font-size: 14.6666669845581px; line-height: 1.5;">G5_TIME_YMDHIS</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">;</span></p><p style="font-size: 14.6666669845581px;"><span style="font-size: 11pt; line-height: 1.5;">

를 추가시켜주십니다

그리고 찾기로

</span></p><p><span style="font-size: 11pt; line-height: 1.5;">wr_datetime = '".G5_TIME_YMDHIS."',</span></p><p><span style="font-size: 11pt; line-height: 1.5;">

위구문을 아래구문으로 바꿔주십니다.

</span></p><p><span style="font-size: 14.6666669845581px; line-height: 1.5;">wr_datetime = '"$"</span><span style="font-size: 14.6666669845581px; line-height: 1.5;">wr_datetime</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span id="husky_bookmark_end_1440075882910" style="font-size: 11pt; line-height: 1.5;"></span><span style="font-size: 11pt; line-height: 1.5;">"',</span><span style="font-size: 11pt; line-height: 1.5;"> </span></p><p><span style="font-size: 11pt; line-height: 1.5;">

 

 

그후 글작성 스킨에 아래구문을 추가해주시면되겠습니다(_ _)ㅋ;

</p><p> <input type="text" name="<span style="font-size: 14.6666669845581px; line-height: 1.5;">wr_datetime</span><span style="font-size: 11pt; line-height: 1.5;">​</span><span style="font-size: 11pt; line-height: 1.5;">"</span><span style="font-size: 11pt; line-height: 1.5;">></span></p><p><span style="font-size: 11pt; line-height: 1.5;">

 

간만에 그누보드 파일 열어봤네요;;

 

뭐 이런식이 될텐데... 테스트는 안해봤어요^^;; 해보시고 안되면 참고해서 만드시면 될겁니다^^;

 

인풋라인에 작성하시게되면 0000-00-00 00:00:00 뭐 대충이런식으로 작성하셔야할겁니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

침노하는자
10년 전
답변 주셔서 감사드립니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인