改前记得备份文件。 source/include/spacecp/spacecp_favorite.php  行 118

   //收藏的时候,将收藏内容作为回复发表。。。
 //     $favid = C::t('home_favorite')->insert($arr, true); 之前插入:
  1. if($arr['idtype']=='tid'){
  2. $data['message']=$arr['description'];
  3. $data['first']=0;
  4. $data['invisible']=0;
  5. $data['anonymous']=0;
  6. $data['htmlon']=0;
  7. $data['bbcodeoff']=1;
  8. $data['smileyoff']=0;
  9. $data['attachment']=0;
  10. $data['rate']=0;
  11. $data['parseurloff']=0;
  12. $data['authorid']=$_G['uid'];
  13. $data['author']=$_G['username'];
  14. $data['tid']=$arr['id'];
  15. $fidarr=DB::fetch_first('SELECT `fid`,`maxposition` FROM '.DB::table('forum_thread').' WHERE tid='.$data['tid']);
  16. $data['fid']=$fidarr['fid'];
  17. $data['useip']=$_G['clientip'];
  18. $data['usesig']=1;
  19. $data['dateline']=$_G['timestamp'];
  20. $data['position']=$fidarr['maxposition']?$fidarr['maxposition']+1:2;
  21. include libfile('function/forum');
  22. $flg=@insertpost($data);
  23. if($flg){
  24. @DB::query('UPDATE '.DB::table('forum_thread').' SET `maxposition`=`maxposition`+1 WHERE `tid`='.$data['tid'].' LIMIT 1');
  25. }
  26. }
  27. //END
source/module/forum/forum_misc.php  行 634
       //评分理由作为回复发表。 by www.weixiaoduo.com 。
//C::t('forum_ratelog')->insert($insertarr); 之前插入:
  1. $score=$insertarr['score']>0?'+'.$insertarr['score']:$insertarr['score'];
  2. $data['message']='[quote]'.$score.$_G['setting']['extcredits'][1]['unit'].$_G['setting']['extcredits'][1]['title'].'[/quote]'.$insertarr['reason'];
  3. //$data['message']=$insertarr['reason'];
  4. $data['first']=0;
  5. $data['invisible']=0;
  6. $data['anonymous']=0;
  7. $data['htmlon']=0;
  8. $data['bbcodeoff']=0;
  9. $data['smileyoff']=0;
  10. $data['attachment']=0;
  11. $data['rate']=0;
  12. $data['parseurloff']=0;
  13. $data['authorid']=$_G['uid'];
  14. $data['author']=$_G['username'];
  15. $tidarr=DB::fetch_first('SELECT `tid` FROM '.DB::table('forum_post').' WHERE pid='.$insertarr['pid']);
  16. $fidarr=DB::fetch_first('SELECT `fid`,`maxposition` FROM '.DB::table('forum_thread').' WHERE tid='.$tidarr['tid']);
  17. $data['tid']=$tidarr['tid'];
  18. $data['fid']=$fidarr['fid'];
  19. $data['useip']=$_G['clientip'];
  20. $data['usesig']=1;
  21. $data['dateline']=$_G['timestamp'];
  22. $data['position']=$fidarr['maxposition']?$fidarr['maxposition']+1:2;
  23. $flg=@insertpost($data);
  24. if($flg){
  25. @DB::query('UPDATE '.DB::table('forum_thread').' SET `maxposition`=`maxposition`+1 WHERE `tid`='.$tidarr['tid'].' LIMIT 1');
  26. }
  27. //exit();
  28. //END