스크린샷 2021-05-31 11.16.01.png

 

 

관련 내용을 찾아보니 스킨단에서 아래 같은 코드를

 

<!--@if(preg_match("/{@sticker:[\d]+\|[\d]+}/i", $content))-->{@ $content = '스티커 스티커';}<!--@end-->

 

위젯 스킨에 넣으면 된다고 해서 

 

widgets/hashtag_comment/skins/default/hashtag_comment.html 에 넣어봤는데 

 

해결이 안되네요. 

 

이 부분이 해결 되면 응용해서 알림부분도 수정이 될것 같아서 조언을 부탁 드려 봅니다. 

  • ?
           if($notification->target_summary) {
               preg_match('/\{@sticker:[0-9]+\|[0-9]+\}/', $notification->target_summary, $stickerMatch);
               if($stickerMatch) {
                   $notification->target_summary = '<span>[스티커 댓글]</span>';
               }
           }

     

    개인적으로 알림센터에 사용하는 코드입니다.

    위 코드를 적당히 변형하셔서 사용하시면 될 것 같습니다.

  • ? profile
    감사 합니다.
  • ? profile
    후아니님 알림 스티커 메세지 수정중인데요 /modules/ncenterlite/ncenterlite.controller.php 파일에
    알려 주신 구문을 넣는것이 아닌가요? 대략 몇 군데 넣어 봤는데 정확히 어디 부분에 달아야할지 감을 잘 잡지 못하겠습니다.
  • profile ?

    알림센터 알림 기준으로

     

    https://github.com/rhymix/rhymix/blob/master/modules/ncenterlite/ncenterlite.model.php#L553
    ncenterlite.model.php 파일의
    getNotificationText 함수 시작하는 부분에 추가하시면 될거에요