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

에디터 사진 버튼 숨김 방법은? 채택완료

시린♡ 9년 전 조회 4,357

네이버 에디터 사용하면서 우측에 사진 클릭하면 업로드 할수있는 창이뜨는데

 

이걸 사진 아이콘 자체를 일정레벨에서는 안보이고

 

레벨조건이 되는 사용자들에게만 보여지게 하려면 어떻해 해줘야하나요??

 

</strong></p><p><span class="Apple-tab-span" style="white-space: pre; font-size: 9pt; font-family: 나눔고딕, NanumGothic;">				</span><span style="font-size: 9pt; font-family: 나눔고딕, NanumGothic;"><ul class="se2_multy"></span></p><p><span class="Apple-tab-span" style="white-space: pre; font-size: 9pt; font-family: 나눔고딕, NanumGothic;">					</span><span style="font-size: 9pt; font-family: 나눔고딕, NanumGothic;"><li class="se2_mn husky_seditor_ui_photo_attach"><button type="button" class="se2_photo ico_btn"><span class="se2_icon"></span><span class="se2_mntxt">사진<span class="se2_new"></span></span></button></li></span></p><p><span class="Apple-tab-span" style="white-space: pre; font-size: 9pt; font-family: 나눔고딕, NanumGothic;">				</span><span style="font-size: 9pt; font-family: 나눔고딕, NanumGothic;"></ul></span></p><p><span class="Apple-tab-span" style="white-space: pre; font-size: 9pt; font-family: 나눔고딕, NanumGothic;">			</span><span style="font-size: 9pt; font-family: 나눔고딕, NanumGothic;"></div></span></p><p><span class="Apple-tab-span" style="white-space: pre; font-size: 9pt; font-family: 나눔고딕, NanumGothic;">			</span><span style="font-size: 9pt; font-family: 나눔고딕, NanumGothic;"><!-- //704이상 --></span></p><p><span class="Apple-tab-span" style="white-space: pre; font-size: 9pt; font-family: 나눔고딕, NanumGothic;">		</span><span style="font-size: 9pt; font-family: 나눔고딕, NanumGothic;"></div></span></p><p> <strong style="color: rgb(127, 127, 127); font-family: 돋움, Dotum, sans-serif; font-size: 12px; letter-spacing: -0.01px; line-height: normal;">

이게 사진 아이콘 버튼의 소스인데 전에 어떤 소스 감싸면 회원에게만 보이고 또 거기에

어떤 문자 추가하면 일정 레벨 사용자에게만 보이도록 하는게 있던거같은데  방법이 어떤건지 기억이 안나네요..ㅜㅜ

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

답변 1개

채택된 답변
+20 포인트
P
9년 전

.html 파일이던데요.

웹서버(아파치등) 설정으로 .html도 php가 작동되도록 했으면...

php와 똑같이 하면 될것 같아요.

 

</p><p><?php</p><p> </p><p>// 예를 들어 레벨 6이상만 사진등록 아이콘 보이게 하려면...</p><p>// 레벨 6 이상 사진 등록 </p><p>if ( $member['mb_level'] > 5 )</p><p>{</p><p>?></p><p>    <ul class="se2_multy">
     <li class="se2_mn husky_seditor_ui_photo_attach"><button type="button" class="se2_photo ico_btn"><span class="se2_icon"></span><span class="se2_mntxt">사진<span class="se2_new"></span></span></button></li>
    </ul></p><p><?php</p><p>}</p><p> </p><p>?></p><p>

 

 

 

만약 .html 파일에는 php가 작동되지 않게 설정되어 있으면...

 

/plugin/editor/smarteditor2/SmartEditor2Skin.html 요파일 열어서 다른이름으로 저장하기 메뉴에서 SmartEditor2Skin.php 으로 확장자를 .php로 바꾸고...

 

/plugin/editor/smarteditor2/config.js 파일 11줄쯤과 /plugin/editor/smarteditor2/SmartEditor2.html 파일 29줄쯤 위 2개 파일 해당 줄에 SmartEditor2Skin.html 이걸 SmartEditor2Skin.php 이렇게 확장자를 바꾸시면 될것 같아요.

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

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

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

로그인