영카트 사용후기질문입니다..
본문
영카트에 사용후기에 작성자 이름을
홍 ** 이렇게 가리고 싶은데 ㅠㅠ 방법을 알려수실수 있으신가요 ㅠㅠ
답변 2
참고 : http://gnustudy.com/bbs/board.php?bo_table=yc_tip&wr_id=109
skin/shop/basic/itemuse.skin.php
$is_name = get_text($row['is_name']);
여기를 이렇게 수정
$is_name = preg_replace('/(?<=.{1})./u','*',$row['is_name']);
skin/shop/basic/itemuse.skin.php
$is_content = get_view_thumbnail(conv_content($row['is_content'], 1), $thumbnail_width);
위 코드 밑에 추가
$row['is_name'] = preg_replace('/(?<=.{1})./u','*',$row['is_name']);
list.php 이름 나오는 부분
$list[$i]['name'] = preg_replace('/(?<=.{1})./u','*',$list[$i]['wr_name']);
이런식으로 변경 하시면 됩니다.
답변을 작성하시기 전에 로그인 해주세요.