sns 댓글 url 전달되지 않는 오류 수정

This commit is contained in:
chicpro
2014-05-26 10:34:43 +09:00
parent 278c8ac541
commit aa2beb7027
3 changed files with 7 additions and 5 deletions

View File

@ -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') // 댓글 수정
{

View File

@ -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);

View File

@ -43,7 +43,7 @@ if (!$board['bo_use_sns']) return;
echo '<a href="'.$facebook_url.'" id="facebook_url" onclick="return false;"><img src="'.G5_SNS_URL.'/icon/facebook'.($facebook_user?'':'_off').'.png" id="facebook_icon"></a>';
echo '<label for="" class="sound_only">페이스북 동시 등록</label>';
echo '<input type="checkbox" name="facebook_checked" id="facebook_checked" disabled value="1">';
echo '<script>$(function(){ $("#facebook_url").click(function(){ window.open(this.href, "facebook_url", "width=600,height=250"); }); });</script>';
echo '<script>$(function(){ $("#facebook_url").live("click", function(){ window.open(this.href, "facebook_url", "width=600,height=250"); }); });</script>';
}
echo '</li>';
}
@ -101,7 +101,7 @@ if (!$board['bo_use_sns']) return;
echo '<a href="'.$twitter_url.'" id="twitter_url" onclick="return false;"><img src="'.G5_SNS_URL.'/icon/twitter'.($twitter_user?'':'_off').'.png" id="twitter_icon"></a>';
echo '<label for="" class="sound_only">트위터 동시 등록</label>';
echo '<input type="checkbox" name="twitter_checked" id="twitter_checked" disabled value="1">';
echo '<script>$(function(){ $("#twitter_url").click(function(){ window.open(this.href, "twitter_url", "width=600,height=250"); }); });</script>';
echo '<script>$(function(){ $("#twitter_url").live("click", function(){ window.open(this.href, "twitter_url", "width=600,height=250"); }); });</script>';
}
echo '</li>';
}