옵션에 비밀글 체크하는 부분이 있는데
자동으로 체크되어 있게끔 하고 싶습니다
어떻게 하면 될가요?
감사합니다~
안녕하세요~^^
1. FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/editor.php 파일에
아래의 코드를 찾아서
<label class="attr-value-option"><input type="checkbox" name="secret" value="true" onchange="kboard_toggle_password_field(this)"<?php if($content->secret):?> checked<?php endif?>> <?php echo __('Secret', 'kboard')?></label>
아래의 코드로 교체해보세요.
<label class="attr-value-option"><input type="checkbox" name="secret" value="true" onchange="kboard_toggle_password_field(this)" checked> <?php echo __('Secret', 'kboard')?></label>
2. 아래의 코드를 찾아서
<?php if($board->viewUsernameField()):?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-input-member-display"><?php echo __('Author', 'kboard')?></label>
<div class="attr-value"><input type="text" id="kboard-input-member-display" name="member_display" value="<?php echo $content->member_display?>" placeholder="<?php echo __('Author', 'kboard')?>..."></div>
</div>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-input-password"><?php echo __('Password', 'kboard')?></label>
<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo $content->password?>" placeholder="<?php echo __('Password', 'kboard')?>..."></div>
</div>
<?php else:?>
<input style="display:none" type="text" name="fake-autofill-fields">
<input style="display:none" type="password" name="fake-autofill-fields">
<!-- 비밀글 비밀번호 필드 시작 -->
<div class="kboard-attr-row secret-password-row"<?php if(!$content->secret):?> style="display:none"<?php endif?>>
<label class="attr-name" for="kboard-input-password"><?php echo __('Password', 'kboard')?></label>
<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo $content->password?>" placeholder="<?php echo __('Password', 'kboard')?>..."></div>
</div>
<!-- 비밀글 비밀번호 필드 끝 -->
<?php endif?>
아래의 코드로 교체해보세요.
<?php if($board->viewUsernameField()):?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-input-member-display"><?php echo __('Author', 'kboard')?></label>
<div class="attr-value"><input type="text" id="kboard-input-member-display" name="member_display" value="<?php echo $content->member_display?>" placeholder="<?php echo __('Author', 'kboard')?>..."></div>
</div>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-input-password"><?php echo __('Password', 'kboard')?></label>
<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo $content->password?>" placeholder="<?php echo __('Password', 'kboard')?>..."></div>
</div>
<?php endif?>
<input style="display:none" type="text" name="fake-autofill-fields">
<input style="display:none" type="password" name="fake-autofill-fields">
<!-- 비밀글 비밀번호 필드 시작 -->
<div class="kboard-attr-row secret-password-row">
<label class="attr-name" for="kboard-input-password"><?php echo __('Password', 'kboard')?></label>
<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo $content->password?>" placeholder="<?php echo __('Password', 'kboard')?>..."></div>
</div>
<!-- 비밀글 비밀번호 필드 끝 -->
고맙습니다.