OpenID 를 코멘트에 달기 – 한국워드프레스사용자모임 https://kopress.kr/topic/openid-%eb%a5%bc-%ec%bd%94%eb%a9%98%ed%8a%b8%ec%97%90-%eb%8b%ac%ea%b8%b0/feed/ Fri, 17 May 2024 05:50:42 +0000 https://bbpress.org/?v=2.6.9 ko-KR https://kopress.kr/topic/openid-%eb%a5%bc-%ec%bd%94%eb%a9%98%ed%8a%b8%ec%97%90-%eb%8b%ac%ea%b8%b0/#post-5907 <![CDATA[OpenID 를 코멘트에 달기]]> https://kopress.kr/topic/openid-%eb%a5%bc-%ec%bd%94%eb%a9%98%ed%8a%b8%ec%97%90-%eb%8b%ac%ea%b8%b0/#post-5907 Fri, 20 Apr 2007 13:50:48 +0000 nuzl 일단 플러그인을 다운로드 받아야겠죠.
http://the-notebook.org/12/01/2006/openid-comments-for-wordpress/
여기가면 플러그인을 받을수 있습니다

***** 먼저 수정하시기 전에 백업 해주세요*****

압축을(zip)풀어보면 plugin 과 theme 디렉토리가 있죠

http://nuzl.com/wp//wp-content/plugins/openid/

/openid 이 디렉토리를 plugin/ 밑에 업로드 합니다
(제도메인은 임시로 넣었습니다 자신의 도메인이 되겠죠)

themes 디렉토리

는 자신이 사용중인 테마가 있는곳

http://nuzl.com/wp/wp-content/themes/ver2/

저는 제가 만든 ver2 테마기 때문에 ver2 디렉토리에 넣었습니다(업로드 하시면 됩니다)

openidform.php
openidtrustpage.php
이 두개의 화일을 업로드

이제 관리자 페이지로 가서 플러그인을 활성화 해주신후

comments.php 를 에디터로 열어서 수정 해야 합니다

클래식 테마를 대상으로 설명 하겠습니다
(대부분 비슷할테니.. K2 는 약간 복잡해서 적용이 어려울수도 있습니다)

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

<?php if ( $user_ID ) : ?>

<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a></p>

<?php else : ?>

<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>

<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>

<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>

<?php endif; ?>

<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->

<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>

</form>

comment.php 에서 이부분을 다 지우신후

<?php include TEMPLATEPATH . '/openidform.php'?>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<?php do_action('comment_form', $post->ID); ?>

요 3줄을 추가 하고 저장하고 업로드 합니다

테스트후 잘되면 계속 사용 하시면 됩니다

…쉬운것도 어렵게 설명해서.. 어려워 보일수도 있습니다 T_T

http://nuzl.com/522/
테스트/구경 을 위한 포스트입니다
제스타일에 맞게 수정 했어요

]]>