From aa2beb70275046486c11f8ce51a7fb148340db7b Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 26 May 2014 10:34:43 +0900 Subject: [PATCH] =?UTF-8?q?sns=20=EB=8C=93=EA=B8=80=20url=20=EC=A0=84?= =?UTF-8?q?=EB=8B=AC=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_comment_update.php | 6 +++--- bbs/write_comment_update.sns.php | 2 ++ plugin/sns/view_comment_write.sns.skin.php | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php index 6d664d7b4..5d4d8a919 100644 --- a/bbs/write_comment_update.php +++ b/bbs/write_comment_update.php @@ -136,9 +136,6 @@ if ($w == 'c') // 댓글 입력 $wr_subject = get_text(stripslashes($wr['wr_subject'])); - // SNS 등록 - include_once("./write_comment_update.sns.php"); - $sql = " insert into $write_table set ca_name = '{$wr['ca_name']}', wr_option = '$wr_secret', @@ -238,6 +235,9 @@ if ($w == 'c') // 댓글 입력 mailer($wr_name, $wr_email, $unique_email[$i], $subject, $content, 1); } } + + // SNS 등록 + include_once("./write_comment_update.sns.php"); } else if ($w == 'cu') // 댓글 수정 { diff --git a/bbs/write_comment_update.sns.php b/bbs/write_comment_update.sns.php index 1e4e63436..0425f2d4c 100644 --- a/bbs/write_comment_update.sns.php +++ b/bbs/write_comment_update.sns.php @@ -53,6 +53,8 @@ if ($_POST['twitter_checked']) { include_once(G5_SNS_PATH."/twitter/twitterconfig.php"); if ( !(empty($_SESSION['access_token']) || empty($_SESSION['access_token']['oauth_token']) || empty($_SESSION['access_token']['oauth_token_secret'])) ) { + $comment_url = G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr['wr_parent'].'&#c_'.$comment_id; + $post = googl_short_url($comment_url).' '.$wr_content; $post = utf8_strcut($post, 140); diff --git a/plugin/sns/view_comment_write.sns.skin.php b/plugin/sns/view_comment_write.sns.skin.php index ba3e50012..4cd2b82ba 100644 --- a/plugin/sns/view_comment_write.sns.skin.php +++ b/plugin/sns/view_comment_write.sns.skin.php @@ -43,7 +43,7 @@ if (!$board['bo_use_sns']) return; echo ''; echo ''; echo ''; - echo ''; + echo ''; } echo ''; } @@ -101,7 +101,7 @@ if (!$board['bo_use_sns']) return; echo ''; echo ''; echo ''; - echo ''; + echo ''; } echo ''; }