论坛调用方法
最FTP里面找到template/default/forum/viewthread_node.htm文件
查找
<!--{if $post['invisible'] == 0}-->
在<!--{if $post['invisible'] == 0}-->代码上面添加以下代码
- <div class="box5 bb1">
- <h2 class="ttl02">天涯海角也要找到Ni:<span><a href="/search.php?mod=forum&searchid=2&orderby=lastpost&ascdesc=desc&searchsubmit=$thread[subject]" target="_blank" >$post[subject]</a></span></h2>
- <div class="clr"></div>
- <div class="space0">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="50%" align="left" style="border-width:0px 0px 0px 1px;">
- <img src="/images/baidu.gif" width="40" height="13" border="0" />中发现Ni:<a onclick='window.open("http://www.baidu.com/s?tn=alixixi_pg&ct=&lm=&z=&rn=&word=$thread[subject]+site%3Abbs.72jz.com")' href="javascript:">$thread[subject]</a><br />
- <img src="/images/yahoo.gif" width="40" height="13" border="0" />中发现Ni:
- <a onclick='window.open("http://search.cn.yahoo.com/search?p=$thread[subject]
- +site%3Abbs.72jz.com")' href="javascript:">$thread[subject]</a><br />
- <img src="/images/zhongsou.gif" width="40" height="13" border="0" />中发现Ni:<a onclick='window.open("http://p.zhongsou.com/p?w=$thread[subject]
- +site%3Abbs.72jz.com")' href="javascript:">$thread[subject]</a><br />
- <img src="/images/qihoo.gif" width="40" height="13" border="0" />中发现Ni:<a onclick='window.open("/search.php?mod=forum&searchid=2&orderby=lastpost&ascdesc=desc&searchsubmit=yes&kw=$thread[subject]
- ")' href="javascript:">$thread[subject]</a></td>
- <td width="50%" align="left" style="border-width:0px 1px 0px 0px;">
- <img src="/images/google.gif" width="40" height="13" border="0" />中发现Ni:<a onclick='window.open("http://www.google.com/search?hl=zh-CN&q=$thread[subject]
- +site%3Abbs.72jz.com")' href="javascript:">$thread[subject]</a><br />
- <img src="/images/sogou.gif" width="40" height="13" border="0" />中发现Ni:<a onclick='window.open("http://www.sogou.com/web?query=$thread[subject]
- +site%3Abbs.72jz.com")' href="javascript:">$thread[subject]</a><br />
- <img src="/images/yodao.gif" width="40" height="13" border="0" />中发现Ni:<a onclick='window.open("http://www.yodao.com/search?keyfrom=web.suggest&q=$thread[subject]
- +site%3Abbs.72jz.com")' href="javascript:">$thread[subject]</a><br />
- <img src="/images/soso.gif" width="40" height="13" border="0" />中发现Ni:<a onclick='window.open("http://www.soso.com/q?w=$thread[subject]
- +site%3Abbs.72jz.com")' href="javascript:">$thread[subject]</a></td>
- </tr></table>
- </div>
- </div>
复制代码 当然您也可以修改文章 比如把
天涯海角也要找到N i改成 相关搜索
中发现Ni 改成 中搜索
还有就是修改代码里面的链接可以去掉+site%3Abbs.72jz.com 也可以把bbs.72jz.com修改成您的域名
+site%3Abbs.72jz.com 代表从bbs.72jz.com这个域名下查找结果
把文件上传到论坛根目录
images.zip
(14.45 KB, 下载次数: 24)
|
上一篇: discuz X二次开发之目录和程序功能说明下一篇: lighttpd主机下使用dx2.0伪静态规则无错版
|