修改include/newthread.inc.php
在修改附件信息,即之前,加如下代码- if($qcomic['enable'] && $phid) {
- require_once DISCUZ_ROOT.'./include/qcomic.inc.php';
- qcomic_update($pid, $tid, $phid);
- qcomic_fopen($qcomic['domain']."/discuz/update.php?sid=".$qcomic['sid']."&code=".urlencode(authcode("spassword=".$qcomic['spassword']."&phid=$phid&tid=$tid&pid=$pid&uid=".$postinfo['authorid']."&ctime=".$postinfo['dateline']."&mtime=$timestamp", '', $qcomic['skey']))."&title=".urlencode($subject)."&content=".urlencode(qcomic_spacecutstr($message, 500)), 10000, '', '', TRUE, '', 20, FALSE);
- }
复制代码 修改include/newreply.inc.php
在修改附件信息,即之前,加如下代码- if($qcomic['enable'] && $phid) {
- require_once DISCUZ_ROOT.'./include/qcomic.inc.php';
- qcomic_update($pid, $tid, $phid);
- if(empty($subject)) {
- $threadsubject = $db->fetch_array($db->query("SELECT subject FROM {$tablepre}threads WHERE tid='$tid'"));
- $subject = $threadsubject['subject'];
- }
- qcomic_fopen($qcomic['domain']."/discuz/update.php?sid=".$qcomic['sid']."&code=".urlencode(authcode("spassword=".$qcomic['spassword']."&phid=$phid&tid=$tid&pid=$pid&uid=".$postinfo['authorid']."&ctime=".$postinfo['dateline']."&mtime=$timestamp", '', $qcomic['skey']))."&title=".urlencode($subject)."&content=".urlencode(qcomic_spacecutstr($message, 500)), 10000, '', '', TRUE, '', 20, FALSE);
- }
复制代码 修改include/editpost.inc.php
在获取帖子信息,即- $query = $db->query("SELECT * FROM {$tablepre}posts WHERE pid='$pid' AND tid='$tid' AND fid='$fid'");
- $postinfo = $db->fetch_array($query);
复制代码 之后,加如下代码- if($qcomic['enable']) {
- $qihoophid = $db->fetch_array($db->query("SELECT phid FROM {$tablepre}qihooimages WHERE pid='$pid' AND tid='$tid' LIMIT 1"));
- $postinfo['phid'] = empty($qihoophid['phid']) ? 0 : $qihoophid['phid'];
- }
复制代码 修改viewthread.php
在获取帖子信息,即- $onlineauthors = array();
- $query = $db->query("SELECT p.*, m.uid, m.username, m.groupid
复制代码 之前,加如下代码- if($qcomic['enable']) {
- $fieldsadd .= ', qi.pid AS qipid, qi.thid, qi.phid ';
- $tablesadd = "LEFT JOIN {$tablepre}qihooimages qi USING (pid)";
- }
复制代码 在接下来的获取帖子的SQl语句行尾加上$tablesadd,即这一行改为- FROM {$tablepre}posts p $tablesadd
复制代码 |