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

 找回密码
 立即注册
搜索

[其他] 仿网易163模板部分问题以及解决办法

[复制链接]
我要投宿 发表于 2007-6-19 09:04:19 | 显示全部楼层 |阅读模式
本机测试与虚拟测试发现的.
如果MYSQL版本是4.1.X以下的,如4.0.X,那么你可能出现意外情况,至少本机测试的 5.0.27版本和5.1版本没出现错误
如果PHP版本是5.0以下,可能出现意外情况,但 4.3.X或以下版本一般肯定会出现情况..........
测试最佳平台是 MYSQL5.0或更高,PHP5.0或5.2或更高.

主页面头部导航多个字跑位的修改INDEX.HTML.PHP
  1. <!--{loop $channels['menus'] $value}-->
  2. <li><a href="$value[url]">$value[name]</a></li>
  3. <!--{/loop}-->
  4. <!--{if !empty($channels['types']['news'])}-->
  5. <!--{block name="category" parameter="type/news/isroot/1/ischannel/2/order/c.displayorder/limit/0,15(这里是表示2个字的1级大分类,15是显示个数,不足的只显示全部,下面一样,自己修改)/cachetime/36800/cachename/category_news/tpl/data"}-->
  6. <!--{loop $_SBLOCK['category_news'] $value}-->
  7. <li class="a2"><a href="$value[url]" title="$value[name]">$value[name]</a></li>
  8. <!--{/loop}-->
  9. <!--{/if}-->
  10. <!--{if !empty($channels['types']['blog'])}-->
  11. <!--{block name="category" parameter="type/blog/isroot/1/ischannel/2/order/c.displayorder/limit/0,4/cachetime/37800/cachename/category_blog/tpl/data"}-->
  12. <!--{loop $_SBLOCK['category_blog'] $value}-->
  13. <li class="a4"><a href="$value[url]" title="$value[name]">$value[name]</a></li>
  14. <!--{/loop}-->
  15. <!--{/if}-->
  16. <!--{block name="bbsforum" parameter="type/forum/limit/0,4/order/f.displayorder/cachetime/21500/cachename/bbsforum/tpl/data"}-->
  17. <!--{loop $_SBLOCK['bbsforum'] $value}-->  (这里是显示3个字的,显示的论坛的版块, 0,4表示显示从版块ID为1开始的4个,如果需要显示4个字,把下面的 a3 直接改成 a4 )
  18. <li class="a3"><a href="$value[url]" title="$value[name]">$value[name]</a></li>
  19. <!--{/loop}-->
复制代码
2级页面头部出现越位(字数超过3个的),修改\css\index_image.css
  1. #menu  .a2 {width:33px; }
  2. #menu  .a3 {width:42px; }  (这里改成57,想再智能点自己改)
  3. #menu  .a4 {width:57px; }
复制代码
另外页面GOOGLE广告代码~~~
728*90
  1. <script type="text/javascript"><!--
  2. google_ad_client = "pub-1158893801392444";
  3. google_ad_width = 728;
  4. google_ad_height = 90;
  5. google_ad_format = "728x90_as";
  6. google_ad_type = "text_image";
  7. google_ad_channel = "";
  8. //-->
  9. </script>
  10. <script type="text/javascript"
  11.   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  12. </script>
复制代码
480*60
  1. <script type="text/javascript"><!--
  2. google_ad_client = "pub-1158893801392444";
  3. google_ad_width = 468;
  4. google_ad_height = 60;
  5. google_ad_format = "468x60_as";
  6. google_ad_type = "text_image";
  7. google_ad_channel = "";
  8. //-->
  9. </script>
  10. <script type="text/javascript"
  11.   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  12. </script>
复制代码
300*250
  1. <script type="text/javascript"><!--
  2. google_ad_client = "pub-1158893801392444";
  3. google_ad_width = 300;
  4. google_ad_height = 250;
  5. google_ad_format = "300x250_as";
  6. google_ad_type = "text_image";
  7. google_ad_channel = "";
  8. //-->
  9. </script>
  10. <script type="text/javascript"
  11.   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  12. </script>
复制代码
250*250
  1. <script type="text/javascript"><!--
  2. google_ad_client = "pub-1158893801392444";
  3. google_ad_width = 250;
  4. google_ad_height = 250;
  5. google_ad_format = "250x250_as";
  6. google_ad_type = "text_image";
  7. google_ad_channel = "";
  8. //-->
  9. </script>
  10. <script type="text/javascript"
  11.   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  12. </script>
复制代码
125*125
  1. <script type="text/javascript"><!--
  2. google_ad_client = "pub-1158893801392444";
  3. google_ad_width = 125;
  4. google_ad_height = 125;
  5. google_ad_format = "125x125_as";
  6. google_ad_type = "text_image";
  7. google_ad_channel = "";
  8. //-->
  9. </script>
  10. <script type="text/javascript"
  11.   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  12. </script>
复制代码
120*600
  1. <script type="text/javascript"><!--
  2. google_ad_client = "pub-1158893801392444";
  3. google_ad_width = 160;
  4. google_ad_height = 600;
  5. google_ad_format = "160x600_as";
  6. google_ad_type = "text_image";
  7. google_ad_channel = "";
  8. //-->
  9. </script>
  10. <script type="text/javascript"
  11.   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  12. </script>
复制代码
120*240
  1. <script type="text/javascript"><!--
  2. google_ad_client = "pub-1158893801392444";
  3. google_ad_width = 120;
  4. google_ad_height = 240;
  5. google_ad_format = "120x240_as";
  6. google_ad_type = "text_image";
  7. google_ad_channel = "";
  8. //-->
  9. </script>
  10. <script type="text/javascript"
  11.   src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  12. </script>
复制代码

[ 本帖最后由 我要投宿 于 2007-6-19 11:54 编辑 ]
回复

使用道具 举报

jsaren 发表于 2007-6-19 09:13:42 | 显示全部楼层
深奥,我是菜鸟,我的电脑里面安装的不知道是什么版本呢
回复

使用道具 举报

 楼主| 我要投宿 发表于 2007-6-19 10:04:19 | 显示全部楼层
我测试的发现只有版本过低就可能出现问题............
虚拟主机上就是,版本低,但本地测试一点问题没有
回复

使用道具 举报

 楼主| 我要投宿 发表于 2007-6-19 10:04:41 | 显示全部楼层
死吧,菜鸟...那我是菜青虫
回复

使用道具 举报

jejo2000 发表于 2007-6-19 11:36:03 | 显示全部楼层
能发一份GBK的防163的圈子首面的模版文件吗?group_index.html就是这个文件!谢谢了!我的邮箱是jejo2000@126.com
回复

使用道具 举报

appleshow 发表于 2007-6-19 11:55:06 | 显示全部楼层
想要750*X的代码啊
回复

使用道具 举报

vishior 发表于 2008-10-16 16:15:44 | 显示全部楼层
回复 1# 我要投宿 的帖子

多谢楼主
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-16 13:31 , Processed in 0.081455 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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