本帖最后由 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:}):- </div>
- [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}]
- </div><div><style>
- .guessulike_threadlist { overflow: hidden; margin-top: 10px; margin-bottom: -11px; }
- .ie6 .guessulike_threadlist { margin-bottom: -11px; }
- .ie7 .guessulike_threadlist { margin-bottom: -2px; }
- .guessulike_threadlist li { float: left; margin-bottom: 10px; padding-bottom: 6px; width: 49.9%; height: 44px; border-bottom: 1px dotted #DDD; }
- .guessulike_threadlist .avt { float: left; }
- .guessulike_threadlist .avt img { padding: 1px; width: 36px; height: 36px; }
- .guessulike_threadlist p { overflow: hidden; margin-left: 50px; padding-right: 10px; height: 22px; }
- </style>
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td class="pls">
- <div class="avatar"><b>随机推荐</b></div>
- 可以自己添加广告代码
- </td>
- <td class="plc">
- <div class="guessulike_cmt">
- <ul class="guessulike_threadlist cl">
- [loop]
- <li>
- <div class="avt"><a href="home.php?mod=space&uid=[field:authorid]" target="_blank" class="avt" c="1">{$avatar([field:authorid],small)}</a></div>
- <p class="xs2"><a href="forum.php?mod=viewthread&tid=[field:tid]" target="_blank">[field:subject]</a></p>
- <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>
- </li>
- [/loop]
- </ul>
- </div>
- </td>
- </tr>
- <tr class="ad">
- <td class="pls"></td>
- <td class="plc"></td>
- </tr>
- </table>
- [/yuzhehook:sql]
复制代码 |