楼上的,function_blog.php这个文件只需要查找“//空间更新”上方添加以下代码就可以
if($tagid){ //投稿到圈子
$tsetarr = array(
'tagid' => $tagid,
'uid' => $_SGLOBAL['supe_uid'],
'username' => $_SGLOBAL['supe_username'],
'dateline' => $_SGLOBAL['timestamp'],
'subject' => $POST['subject'],
'lastpost' => $_SGLOBAL['timestamp'],
'lastauthor' => $_SGLOBAL['supe_username'],
'lastauthorid' => $_SGLOBAL['supe_uid'],
'topicid' => 0
);
$tid = inserttable('thread', $tsetarr, 1);
$psetarr = array(
'tagid' => $tagid,
'tid' => $tid,
'uid' => $_SGLOBAL['supe_uid'],
'username' => $_SGLOBAL['supe_username'],
'ip' => getonlineip(),
'dateline' => $_SGLOBAL['timestamp'],
'message' => $message,
'isthread' => 1
);
//添加
inserttable('post', $psetarr);
//更新圈子统计
$_SGLOBAL['db']->query("UPDATE ".tname("mtag")." SET threadnum=threadnum+1 WHERE tagid='$tagid'");
} |