Discuz教程网

[代码修改] Discuz X2 使用QQ微博转播时+发帖时QQ微博转播时自动增加话题

[复制链接]
authicon dly 发表于 2011-7-29 12:44:56 | 显示全部楼层 |阅读模式
效果图:
191126g19hk6olg1185q9p.jpg


演示地址:
http://t.qq.com/k/Yx%E8%AE%BA%E5%9D%9B%E5%9B%BE%E4%BA%AB


source/plugin/qqconnect/spacecp.ini.php
搜索
  1. $params['reason'] = $_G['gp_reason'];
复制代码

在下面增加
  1. $params['reason'] = '#Yx论坛图享#'.$params['reason'];
复制代码

复制代码保存 即可
source/module/conect/connect_feed.php
搜索
  1. $params = array(
  2. 'client_ip' => $_G['clientip'],
  3. 'thread_id' => $tid,
  4. 'author_id' => $thread['authorid'],
  5. 'author' => $thread['author'],
  6. 'forum_id' => $thread['fid'],
  7. 'p_id' => $post['pid'],
  8. 'u_id' => $_G['uid'],
  9. 'subject' => $thread['subject'],
  10. 'bbcode_content' => $post['message'],
  11. 'read_permission' => $thread['readperm'],
  12. 'f_type' => $f_type,
  13. );
复制代码

改为
  1. $params = array(
  2. 'client_ip' => $_G['clientip'],
  3. 'thread_id' => $tid,
  4. 'author_id' => $thread['authorid'],
  5. 'author' => $thread['author'],
  6. 'forum_id' => $thread['fid'],
  7. 'p_id' => $post['pid'],
  8. 'u_id' => $_G['uid'],
  9. 'subject' => '#Yx论坛图享#'.$thread['subject'],
  10. 'bbcode_content' => $post['message'],
  11. 'read_permission' => $thread['readperm'],
  12. 'f_type' => $f_type,
  13. );
复制代码

当中的 Yx论坛图享 可改成你的话题~

感谢杨哥的帮忙以及测试




上一篇:Discuz X2 判断性别和当前在线代码,给需要的朋友
下一篇:诸葛请进,请教一个内容来源插件的问题。
authicon rfvrfv 发表于 2011-7-29 16:11:14 | 显示全部楼层
看看先,还是不太会。
authicon 都市dt1752 发表于 2011-7-30 18:41:33 | 显示全部楼层
这个不错哦,感谢分享
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-8-2 14:58

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表