New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
추천/비추천/추천삭제 기능추가. #140
추천/비추천/추천삭제 기능추가. #140
Conversation
아..그리고 스킨의 라이선스가 LGPL이던데, 이것도 라이믹스 코어에 종속되는 스킨이니 라이선스를 GPL v2 으로 변경해뒀습니다. 문제가 있다면 알려주세용 ~ |
그런데 |
|
|
@kijin 추천과 비추천을 나눌 필요가 있을까요? 어차피 캔슬시에는 false으로 반환될거고요. 다만, SESSION을 이용하여 지속적인 추천, 취소를 막기위해서 |
@qw5414 스킨에서 추천취소단추를 보여줄지 비추취소단추를 보여줄지 결정하기 위해서는 예전에 추천했는지 비추했는지 쉽게 알 수 있어야 합니다. 기본스킨에서는 구분하지 않을지도 모르지만, 스킨에 따라서는 매우 중요한 기능이 될 수도 있어요. 포인트만 정확하게 계산해 준다면 추천했다가 취소했다가 다시 추천하는 행위를 계속 반복하더라도 서버 부하 이외의 문제는 없을 거예요. 서버 부하 유발은 굳이 추천을 반복하지 않더라도 F5 키만 계속 눌러주면 얼마든지 유발할 수 있으니 추천 액션에서 막는다고 어차피 막히는 것도 아니고요. |
@kijin 방금 커밋한 내용 봐주세용~~ |
@qw5414 문자열 반환은 불필요합니다. 숫자로 해야 |
@@ -64,7 +64,7 @@ | |||
</li> | |||
</ul> | |||
<script> | |||
var sTitle = '{str_ireplace(array('<script', '</script'), array("<scr'+'ipt", "</scr'+'ipt"), addslashes($oDocument->getTitleText()))}'; | |||
var sTitle = '{$oDocument->getTitleText()}'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 때문에 도저히.. ㅠㅠ 그냥 지워둬도 괜찮을것 같아요(SNS제목 띄울껀데 -0-.)
<action name="procDocumentVoteDown" type="controller" /> | ||
<action name="procDocumentVoteDownCancel" type="controller" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거.. 때문에 짜증나느데..ㅠ.ㅠ 그냥 전부 탭으로 밀어버릴까요?
이게 자꾸 탭이 이상하게 인식하네요 ㅡ,.ㅡ
#150 추천/비추천/신고 모듈과 혹시 충돌하는 부분이 없는지 확인 부탁드립니다. 특히 "레벨별 추천개수 조정기능" 사용시 추천을 취소하면 어떻게 되는지 점검이 필요합니다. 5점을 추천하고 1점만 취소한다든지... |
@kijin 별개로 동작하는 모듈이네요. |
충돌적인 요소나 포인트 요소는 좀 더 확인하고.. 제작해볼께요. |
function getVoted() | ||
{ | ||
if(!$this->document_srl) return; | ||
if($_SESSION['voted_document'][$this->document_srl] == '1') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 조건식을 더 간단하게
if($_SESSION['voted_document'][$this->document_srl])
{
return $_SESSION['voted_document'][$this->document_srl];
}
이렇게 하면 될 듯... (아래 391~398줄도 마찬가지)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
어.... 나에겐 왜 이런 머리가 없는거지
@@ -1201,11 +1294,15 @@ function updateVotedCount($document_srl, $point = 1) | |||
if($point < 0) | |||
{ | |||
$args->blamed_count = $oDocument->get('blamed_count') + $point; | |||
// Leave in the session information | |||
$_SESSION['voted_document'][$document_srl] = -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기랑 아랫줄도 그냥 $point
를 넣으면 됩니다.
그런데 일반적으로 추천을 취소할때는 비추천을 누르는게 아니라 구글 플러스 좋아요나 페이스북 좋아요와 마찬가지로 |
생각하신대로 한번 더 눌러서 취소가 될 수 있도록 되어있습니다. |
저같은경우 추천을 한번 더 클릭 하였을시 이렇게 반응 됩니다. |
이 PR에 담겨져있는 파일중에, 여러이슈에서 이러한 게시판적인 부분을 라이믹스에서 지원하지 못해서 Sketchbook 같은 대중적인 스킨의 경우 라이믹스로 같이 진행해보자고 의견 모으고 있지만, 현재 바로 들어가는건 힘들것 같아서 해당 스킨 합치는 작업은 보류하고 있습니다. |
#118 이슈 에서 일딴 추천만 캔슬할 수 잇는 기능 추가 했습니다.
추가적으로 계속코드 추가할 예정입니다.
지금은..피곤해성 ㅠㅠ..