傲慢与偏见

开始前先登一则寻人启事,刚好在小弟回广东的那几天,我们这次DH的合租者之一我的好友 临府咖啡,又叫Suwarm、Caine(==名字还真多哦)在拼命地找小弟我,貌似是因为要放弃就有的.cn域名而找我帮手,但那几天因为刚回来家里还没来得及装宽带,到了我装上宽带能看到邮件的时候貌似已经太晚了,这一个月以来毫无音信,无论是Mail、Gtalk还是在V2EX上的动向,都毫无头绪,希望谁知道他的去向的给小弟捎个信,谢谢!

回到正题了,周而复始,周而复始~为什么我们还要抱着老态度去面对新的事物呢?IE7虽然不好使,但IE6也实在是太糟糕了吧?!Safari其实应该不错,不过程序暂时还很多bug。今天在CB看了篇文章,头一热就尝试check一下代码,才发现有一大堆错,最汗的是<td <td>这样的闭合都出现,而且是貌似是很久以前就有的bug,看来是我太弱了。
下面总结一下debug成果:

diff ./header.php new/header.php
49,50c49
< <div id="archives" class="fix" style="display: none;">
< <ul class="fix">
---
> <div id="archives" class="fix" style="display: none;">
52d50
< </ul>

diff second.php new/second.php
6,8c6,8
< <ul><?php get_recent_comments(); ?></ul>
< <img src="<?php sparkStats_imgURI(); ?>" alt="SparkStats"/>
< </ul><br/>
---
> <ul><?php get_recent_comments(); ?>
> <br/><img src="<?php sparkStats_imgURI(); ?>" alt="SparkStats"/>
> </ul>

diff third.php new/third.php
1,51c1,51
< <div id="tertCol">
< <div id="elseWhere">
< <h3>About</h3>
< <p>
< <?php query_posts('pagename=about'); ?>
< <?php if (have_posts()) : ?>
< <?php while (have_posts()) : the_post(); ?>
< <?php the_content(); ?>
< <?php endwhile; ?>
< <?php endif; ?></p>
< </div>
< <div id="elseWhere">
< <h3>Twitter</h3>
< <p><a href="http://static.twitter.com/OiCkilL">What are you doing?</a></p>
< <br>
< <div style="width:200px;text-align:center"><embed
< src="http://static.twitter.com/flash/twitter_timeline_badge.swf" flashvars="user_id=1603771&color1=0x686868&color2=0x333333&textColor1=0xFFFFFF&textColor2=0x9A9A9A&backgroundColor=0xFFFFFF&textSize=12" width="230" height="350" quality="high" name="twitter_timeline_badge" align="middle" type="application/x-shockwave-flash" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></div>
<
< <!--
< <div id="elseWhere">
< <h3>Flickr</h3>
< <p>Online photo sharing</p>
< <P><div class="ul_flickr">
< <?php if ( (function_exists('get_flickrRSS')) ) { ?>
<
< <?php get_flickrrss(); ?>
<
< <?php } else { ?>
<
< <p>If you have a Flickr account, you can display your photos here using the <a href="http://eightface.com/code/wp-flickrrss/">flickrRSS</a> plugin.</p>
<
< <p>If you have already downloaded the flickrRSS plugin, but are getting this message, <a href="<?php echo get_settings('home'); ?>/wp-admin/plugins.php">click here to make sure that the plugin is activated</a>.</p>
<
< <p>If you do not have a Flickr account you can:
< <ul>
< <li>Create a Flickr account at <a href="http://www.flickr.com/signup/">flickr.com</a>.</li>
< <li>Remove this block.</li>
< </ul>
< </p>
<
< <?php } ?>
< <div class="clear"></div>
< </div></p>
< </div> -->
<
< <div id="elseWhere">
< <h3>G.F.W Suck</h3>
< <p><a href="http://blog.donews.com/keepwalking/archive/2006/06/01/898146.aspx"><img src="http://blog.donews.com/images/blog_donews_com/keso/130783/o_f_ck_gfw.gif" alt="Anti-GFW" width="200" height="200" border="0"></a><br />我已经没有理由相信神的存在,但是我相信冥冥中有种力量可以帮助我们,那就是真正的民意。</P></div>
<
< </div><!-- close #imgLinks -->
< </div><!-- close #tertCol -->
---
> <div id="tertCol">
> <div id="elseWhere">
> <h3>About</h3>
> <p>
> <?php query_posts('pagename=about'); ?>
> <?php if (have_posts()) : ?>
> <?php while (have_posts()) : the_post(); ?>
> <?php the_content(); ?>
> <?php endwhile; ?>
> <?php endif; ?></p>
> </div>
> <div id="elseWhere">
> <h3>Twitter</h3>
> <p><a href="http://static.twitter.com/OiCkilL">What are you doing?</a></p>
> <br>
> <div style="width:200px;text-align:center"><embed
> src="http://static.twitter.com/flash/twitter_timeline_badge.swf" flashvars="user_id=1603771&color1=0x686868&color2=0x333333&textColor1=0xFFFFFF&textColor2=0x9A9A9A&backgroundColor=0xFFFFFF&textSize=12" width="230" height="350" quality="high" name="twitter_timeline_badge" align="middle" type="application/x-shockwave-flash" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></div>
>
> <!--
> <div id="elseWhere">
> <h3>Flickr</h3>
> <p>Online photo sharing</p>
> <P><div class="ul_flickr">
> <?php if ( (function_exists('get_flickrRSS')) ) { ?>
>
> <?php get_flickrrss(); ?>
>
> <?php } else { ?>
>
> <p>If you have a Flickr account, you can display your photos here using the <a href="http://eightface.com/code/wp-flickrrss/">flickrRSS</a> plugin.</p>
>
> <p>If you have already downloaded the flickrRSS plugin, but are getting this message, <a href="<?php echo get_settings('home'); ?>/wp-admin/plugins.php">click here to make sure that the plugin is activated</a>.</p>
>
> <p>If you do not have a Flickr account you can:
> <ul>
> <li>Create a Flickr account at <a href="http://www.flickr.com/signup/">flickr.com</a>.</li>
> <li>Remove this block.</li>
> </ul>
> </p>
>
> <?php } ?>
> <div class="clear"></div>
> </div></p>
> </div> -->
>
> <div id="elseWhere">
> <h3>G.F.W Suck</h3>
> <p><a href="http://blog.donews.com/keepwalking/archive/2006/06/01/898146.aspx"><img src="http://blog.donews.com/images/blog_donews_com/keso/130783/o_f_ck_gfw.gif" alt="Anti-GFW" width="200" height="200" border="0"></a><br />我已经没有理由相信神的存在,但是我相信冥冥中有种力量可以帮助我们,那就是真正的民意。</P></div>
> <div class="clear"></div>
> </div><!-- close #imgLinks -->
> </div><!-- close #tertCol -->

貌似second.php的这句代码还是不规范,先不管了,等有空再改,third.php的话问题还是很大,重复了的Div ID,还有在IE6下错位现象,就算我把ID问题修正了,IE6下照样抽筋。上次Guu帮小弟hack好的代码不知道什么时候又打回原形,真的对不起老弟的辛勤劳动啊!

今天还去Google检查了一下sitemap(为什么百度不去做做这一类便民服务呢?整天背骂不太好吧),发现也有n多错误,估计是sitemap插件的问题,看看才知道sitemap插件的版本已经是半年前了,难怪跟wp2.2不兼容,弄这个又花了老半天~今天就这样白白过了Orz…(今天正好教练所以没去空没学车)

At The End,刚收到Spock的邀请(貌似我没申请过哦),要的伸手,有3个名额,不知道Spock是什么的话Google一下百度一下也可以,当然如果你也是和我一样喜欢有道的话,也可以试试

One thought on “傲慢与偏见

Guu进行回复 取消回复