Home > php教程 > php手册 > 如何修改discuz!论坛程序的google搜索栏

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

WBOY
Release: 2016-06-21 09:07:40
Original
1525 people have browsed it

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的搜索栏效果.



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template