Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 雨哲超强嵌入点配置---随机帖子

[复制链接]
yz81 发表于 2012-7-12 08:53:48 | 显示全部楼层 |阅读模式
本帖最后由 yz81 于 2012-10-8 12:30 编辑

插件介绍:http://www.yuzhe.name/Item.asp?id=33
插件下载:https://addon.dismall.com/?ac=item&id=1154

亲测试几天时间,发现添加这个标签之后网站用户回帖与停留时间增加了,很多原来的帖子也有回帖量。
使用方法很简单,按照下面的配置通过雨哲超强嵌入点插件在后台直接添加就可以了。



配置名称一论坛 帖子 第一贴下行 随机(可自定)
配置变量名viewthread_endline_output(固定嵌入点)
是否数组
模板内容(用了官方的猜你喜欢这个插件的模板和css{:soso_e121:})
  1. </div>
  2. [yuzhehook:sql{select a.tid,a.subject,a.fid,a.author,a.authorid,b.name FROM [table:forum_thread] a inner join [table:forum_forum] b on a.fid=b.fid where a.isgroup=0 and a.displayorder!=-2 and a.displayorder!=-1 order by rand() LIMIT 0,10}]
  3. </div><div><style>
  4. .guessulike_threadlist { overflow: hidden; margin-top: 10px; margin-bottom: -11px; }
  5. .ie6 .guessulike_threadlist { margin-bottom: -11px; }
  6. .ie7 .guessulike_threadlist { margin-bottom: -2px; }
  7. .guessulike_threadlist li { float: left; margin-bottom: 10px; padding-bottom: 6px; width: 49.9%; height: 44px; border-bottom: 1px dotted #DDD; }
  8. .guessulike_threadlist .avt { float: left; }
  9. .guessulike_threadlist .avt img { padding: 1px; width: 36px; height: 36px; }
  10. .guessulike_threadlist p { overflow: hidden; margin-left: 50px; padding-right: 10px; height: 22px; }
  11. </style>
  12. <table cellspacing="0" cellpadding="0">
  13. <tr>
  14. <td class="pls">
  15. <div class="avatar"><b>随机推荐</b></div>
  16. 可以自己添加广告代码
  17. </td>
  18. <td class="plc">
  19. <div class="guessulike_cmt">
  20. <ul class="guessulike_threadlist cl">
  21. [loop]
  22. <li>
  23. <div class="avt"><a href="home.php?mod=space&uid=[field:authorid]" target="_blank" class="avt" c="1">{$avatar([field:authorid],small)}</a></div>
  24. <p class="xs2"><a href="forum.php?mod=viewthread&tid=[field:tid]" target="_blank">[field:subject]</a></p>
  25. <p class="xg1"><a href="home.php?mod=space&uid=[field:authorid]" target="_blank">[field:author]</a> 发表在 <a href="forum.php?mod=forumdisplay&fid=[field:fid]">[field:name]</a></p>
  26. </li>
  27. [/loop]
  28. </ul>
  29. </div>
  30. </td>
  31. </tr>
  32. <tr class="ad">
  33. <td class="pls"></td>
  34. <td class="plc"></td>
  35. </tr>
  36. </table>
  37. [/yuzhehook:sql]
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
中文名00 发表于 2012-7-12 08:56:36 | 显示全部楼层
随机帖子。还行吧?
回复

使用道具 举报

4535 发表于 2012-7-12 11:07:08 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| yz81 发表于 2012-10-8 12:33:00 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 07:04 , Processed in 0.127573 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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