Extra Form
PHP PHP 7.0
CMS Rhymix

사실 깃헙 이슈로도 제출해보려 했으나 ㅋㅋ 

 

포인트가 부족할때 게시물을 열람시, 게시물 안에서 '포인트가 없다..' 라는 문구가 출력되는데요.

이런식으로 하면 좀 큰 버그가 몇개 있습니다. 포인트가 부족해도 글 열람이 가능하다는;;;

 

그래서 알럿창 형식으로 해주고 싶은데 어디를 수정하면 될까요?

https://xe1.xpressengine.com/index.php?document_srl=19931543&search_keyword=%ED%8F%AC%EC%9D%B8%ED%8A%B8+%EB%B6%80%EC%A1%B1&mid=qna

 

이 팁처럼 하면 되려나...

  • ?
    $lang->msg_disallow_by_point 이쪽 위치 수정하면 될듯한데..
  • ?
    point.controller.php 에서 수정가능할듯 싶습니다.
  • ?
    // If the reader does not have enough points, deny access.
    if ($cur_point + $reader_point < 0 && $config->disable_read_document == 'Y')
    {
    if (!$logged_member_srl && $config->disable_read_document_except_robots == 'Y' && isCrawler())
    {
    $_SESSION['banned_document'][$obj->document_srl] = false;
    }
    else
    {
    $message = sprintf(lang('msg_disallow_by_point'), abs($reader_point), $cur_point);
    $obj->add('content', $message);
    $GLOBALS['XE_EXTRA_VARS'][$obj->document_srl] = array();
    $_SESSION['banned_document'][$obj->document_srl] = true;
    return new BaseObject(-1, $message);
    }
    }
    else
    {
    $_SESSION['banned_document'][$obj->document_srl] = false;
    }

     

    여기서 

     

    $message = sprintf(lang('msg_disallow_by_point'), abs($reader_point), $cur_point);
    $obj->add('content', $message);
    $GLOBALS['XE_EXTRA_VARS'][$obj->document_srl] = array();
    $_SESSION['banned_document'][$obj->document_srl] = true;
    return new BaseObject(-1, $message);

     

    이거 어떻게든 하면 될것 같은데 도저히 모르겠습니다 ㅠ

  • ?
    저는 권한이 없습니다. 처럼 포인트 없으면 아예 게시물 열람이 불가하도록 하고 싶습니다...
  • profile
    저도 포인트 소모 게시판을 만들었는데 포인트 없이도 열람이 돼서 골치가 아픕니다ㅠ
  • profile ?
    프..ㅠ
  • ?
    https://studyforus.com/help/511883