首页 > php教程 > php手册 > 正文

如何修改discuz!论坛程序的google搜索栏

WBOY
发布: 2016-06-21 09:07:40
原创
1481 人浏览过

google|程序|论坛|搜索|discuz

       在给discuz!论坛后台的扩展设置里启用 Google 搜索,然后选择要显示 Google 搜索框的位置,有:在论坛首页显示、在主题列表页面显示、在主题内容页面显示,推荐全部选择。至于后面的选择语言那就随便了,因为我们不调用这个。

找到论坛根目录下\include\javascript的google.js文件,将其内容替换为:

document.writeln('

');
document.writeln('');
document.writeln('');
document.writeln('
');
document.writeln('');
document.writeln('Google
');
document.writeln('
');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln('
');
document.writeln('');

其中www.alixixi.com和js.alixixi.com替换为你自己的域名,pub-6261914751398528替换为你的google ID,GB2312替换为你要的网页编码。至于还有一些需要修改的,你自己看着办吧。

演示示例可以访问阿里西西首页,http://www.alixixi.com/看看google的搜索栏效果.



相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门推荐
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!