请访问https://discuz.dismall.com/thread-862372-1-1.html,下载升级包
1、覆盖四个文件
ppsearch.php
templates/default/ppsearch.htm
admin/qcomic.inc.php
api/image.php
2、修改templates/default/jsmenu.htm前加入
- <!--++ plugin_code qcomic begin-->
- <!--{if $_DCACHE['settings']['qihoo_image']['senable']}-->
- <li><a href="ppsearch.php?uid=$discuz_uid">我的组图</a></li>
- <!--{/if}-->
- <!--++ plugin_code qcomic end-->
复制代码 3、修改templates/default/space.htm- <!--{loop $menulist $menu}-->
复制代码 前加入
- <!--++ plugin_code qcomic begin-->
- <!--{if $_DCACHE['settings']['qihoo_image']['senable']}-->
- <a href="ppsearch.php?uid=$discuz_uid">组图</a>
- <!--{/if}-->
- <!--++ plugin_code qcomic end-->
复制代码 4、修改templates/default/discuz.htm前加入
- <!--++ plugin_code qcomic begin-->
- <!--{if $_DCACHE['settings']['qihoo_image']['senable']}-->
- <a href="ppsearch.php">组图展区</a>
- <!--{/if}-->
- <!--++ plugin_code qcomic end-->
复制代码 然后- <a href="member.php?action=markread"
复制代码 前加入
- <!--++ plugin_code qcomic begin-->
- <!--{if $_DCACHE['settings']['qihoo_image']['senable']}-->
- <a href="ppsearch.php?recent=1">查看新图</a>
- <!--{/if}-->
- <!--++ plugin_code qcomic end-->
复制代码 5、修改templates/default/forumdisplay.htm前加入
- <!--++ plugin_code qcomic begin-->
- <!--{if $_DCACHE['settings']['qihoo_image']['senable'] && (!$_DCACHE['settings']['qihoo_image']['sboard'] || strstr($_DCACHE['settings']['qihoo_image']['sboard'],',0,') || strstr($_DCACHE['settings']['qihoo_image']['sboard'],','.$fid.','))}-->
- <li><a href="ppsearch.php?fid=$fid">组图</a></li>
- <!--{/if}-->
- <!--++ plugin_code qcomic end-->
复制代码 6、修改include/newthread.inc.php替换qcomic_fopen这一行代码为
- qcomic_fopen("http://comic.xkoo.com/discuz/update.php?sid=".$_DCACHE['settings']['qihoo_image']['sid']."&code=".urlencode(authcode("spassword=".$_DCACHE['settings']['qihoo_image']['spassword']."&phid=$phid&tid=$tid&pid=$pid&fid=$fid&uid=".$discuz_uid."&ctime=".$timestamp."&mtime=$timestamp", '', $_DCACHE['settings']['qihoo_image']['skey']))."&title=".urlencode($subject)."&content=".urlencode(qcomic_spacecutstr($message, 500)), 10000, '', '', TRUE, '', 20, FALSE);
复制代码 7、修改include/newreply.inc.php替换qcomic_fopen这一行代码为
- qcomic_fopen("http://comic.xkoo.com/discuz/update.php?sid=".$_DCACHE['settings']['qihoo_image']['sid']."&code=".urlencode(authcode("spassword=".$_DCACHE['settings']['qihoo_image']['spassword']."&phid=$phid&tid=$tid&pid=$pid&fid=$fid&uid=".$discuz_uid."&ctime=".$timestamp."&mtime=$timestamp", '', $_DCACHE['settings']['qihoo_image']['skey']))."&title=".urlencode($subject)."&content=".urlencode(qcomic_spacecutstr($message, 500)), 10000, '', '', TRUE, '', 20, FALSE);
复制代码 8、修改include/editpost.inc.php替换qcomic_fopen这一行代码为
- qcomic_fopen("http://comic.xkoo.com/discuz/update.php?sid=".$_DCACHE['settings']['qihoo_image']['sid']."&code=".urlencode(authcode("spassword=".$_DCACHE['settings']['qihoo_image']['spassword']."&phid=$phid&tid=$tid&pid=$pid&fid=$fid&uid=".$postinfo['authorid']."&mtime=$timestamp", '', $_DCACHE['settings']['qihoo_image']['skey']))."&title=".urlencode($subject)."&content=".urlencode(qcomic_spacecutstr($message, 500)), 10000, '', '', TRUE, '', 20, FALSE);
复制代码
[ 本帖最后由 todidot 于 2008-4-7 14:26 编辑 ] |