Twitter

DarkLight 2.3

in Wordpress // 113 Comments

这两天开始动手修改 G-White 主题,很多东西修改,还是比较麻烦的,费了不少时间,然后在各浏览器下调试的时候,发现 IE7 下有挺多细节问题要修正的,于是有了这篇 DarkLight 更新的文章,其实部分 DarkLight 2.0 的部分 Bug (根据用户的反馈),已于 10/18 修正并更新,今天主要就是处理了 IE7 下的问题,当然应该还有一些其他的细节问题我没发现,还是需要大家继续反馈。Change Log 如下:

更新列表:

  1. 2010/ 9/20 更新:修改在无评论时 sidebar 和 footer 字体变大的 Bug。
  2. 2010/10/18 更新:修改侧边栏样式,修正使用 Widget 工具时“标签云”样式,当添加工具时,侧边栏各个工具样式保持一致;修改嵌套评论“链接”的颜色;增加下拉菜单导航样式,当主页面包含子页面时,鼠标经过会出现下拉菜单(IE6 无视)。
  3. 2010/10/26 更新:修正 IE7 下 Comment Author 居左问题;修正 IE7 下嵌套评论间距过大和嵌套评论内容高度过高问题;修正导航栏下拉菜单在 IE7 下异位问题。修正留言后 Leave a comment 这个链接变成 <a href=”#commentform”>Leave a comment</a> 的 Bug,我把这个链接转移位置了。
  4. 2009/12/14 更新:把文章标题显示 Article-link(Permalink) 换成显示原标题。

预览:Preview 1 // Preview 2
演示:Live Demo

下载 DarkLight 2.3

113 responses to DarkLight 2.3

  1. Showfom / October 26, 2009 / Reply

    打错了,直接放代码了,显示成了:

    3 Comment / <a href=”#commentform”>Leave a comment</a>

    • Alan / October 26, 2009 / Reply

      嗯,Ajax 留言后就这样了,之前也有人说这个问题,看来得改一下了。

  2. bsod1 / October 26, 2009 / Reply

    hey alan can you give us some english information please :)

    i upgrade my page witout installing the new version because it’s too hard too customize again, but i don’t understand what changed so i can’t update exactly, thanks for your support

    • Alan / October 26, 2009 / Reply

      Hi bsod1, I put the Change Log in English in the “Read Before Use” Doc in the zip pack. The change log as below:

      - Updated on Oct-26-2009: Fix several bugs under IE7, especially the dropdown menu navigation, this time it looks better under IE7.
      - Updated on Oct-18-2009: Update the sidebar’s style, corrected the bug that when using Widget, the style of “Tag Cloud” item or other item add by plugins would be different with others, now all will be the same; Use new color for Links’ style in thread comments, that would be easier for reading; Add styles for Menu navigation – a dropdown menu, that’s when the pages have there childrens’ page, the menu navigation will look better and normally (dosen’t work under IE6)
      - Updated on Sep-20-2009: Updated the comments.php doc, fixed the bug that when there are no comments in posts, the sidebar and footer’s font size and color would be unnormally.

  3. 西唐 / October 26, 2009 / Reply

    请问这个问题如何处理

    Fatal error: Call to undefined function: link_pages() in d:\www\climber\wwwroot\new1\wp-content\themes\darklight_2\single.php on line 19

  4. finao / October 27, 2009 / Reply

    你好,前阵下到你在BM的87主题,很是喜欢

    有点小问题,如果方便给修改下吧。见论坛回复内的图

    http://bbs.berrymail.cn/thread-20512-6-1.html

    • Alan / October 27, 2009 / Reply

      一直没空去搞这个主题,等我有空再更新一下,细节问题还是要继续改进的,谢谢关注。

  5. Branko / November 17, 2009 / Reply

    why ajax is not working with comments when I install you theme? in you page it shows two arrows circling and says submiting comment…. transitions effects and everything.
    Myne just posts a comment no effects… why is that?

    • Alan / November 17, 2009 / Reply

      Hi, Branko, you should enable the thread comments in Setting->Discussion, you can only choose 3 levels deep.

      • Branko / November 17, 2009 / Reply

        the comments are working normally, but the ajax effect is not working…. no transitions

    • Alan / November 17, 2009 / Reply

      Make sure the comments-ajax.js doc is in the “js” folder and the comments-ajax.php doc is in the “darklight_2″ folder directly, if so, I think it can work well. if the both doc is in the mentioned folders directly, but it still can’t work, pls check if any plugin are conflig with the ajax comment. Pls let me know if the Ajax comment still can’t work, thank you for feedback!

      • Branko / November 17, 2009 / Reply

        OK I’ve got two problems.

        1. I deactivated all my plugins and comments (with ajax) are working fine, but there is just a litlle problem:
        Quickpost this image to Myspace, Digg, Facebook, and others!

        2. theme is not working with smart video plus plugin … how can I fix that?

        Thank you for your support!

        p.s. I also suggest Live comment preview for your site: plugin

    • Alan / November 17, 2009 / Reply

      So, you mean the ajax comment transition works? Is there only the problem you mentioned for ajax comment effect?

    • Alan / November 18, 2009 / Reply

      For the first problem, infact when submiting comment, the “Submit Comment” button would hide itself, I don’t know why this happen to you, to fix it, just open the style.css, and find “#commentload”, fix this “margin: 15px 0 15px” to “margin: 45px 0 15px”, then find the “#commenterror”, fix the “padding: 15px 15px 15px” to “padding: 45px 15px 15px;”

      For the second, actually I don’t know much about Ajax, I just copy the codes and learned to fix problems to fit my theme, I’m sorry I can’t give any suggestion to this.

      P.S. I had fix the comments-ajax.js to show the arrow img when submiting coments, you can download the theme again, and just replace the comments-ajax.js doc.

      Also, thank you for the recommended plugin, and thanks again for you feedback.

      • Branko / November 18, 2009 / Reply

        “Submit Comment” button does hide itself and text “submiting comment…” shows…. then text stays there and button shows up again (like on the picture I put here)

        problem is text doesn’t hide…

    • Alan / November 18, 2009 / Reply

      I’ve tested DarkLight 2.4 which I released, and the ajax comment transition shows without any problem, I really don’t know why this happen, I guest there’s still some plugin conflig with this ajax comment. Maybe you can removed the ajax comment from this theme, and use plugins to archive Ajax comment, so that you can fully enable the other plugins you needed.

  6. chris / November 18, 2009 / Reply

    新搭建的WP2.86来测试的。没有任何插件….而且我访问您的博客回复的时候同样没有ajax效果

      • chris / November 19, 2009 / Reply

        囧 换了台电脑试了试 还真是这问题 用的马桶啊(IE版本是8)……貌似其他JS都正常 安全级别也都默认的 彻底无语 昨天搞这个搞了半天

        不过现在还是不知道怎么解决这个浏览器问题

  7. Chris / November 27, 2009 / Reply

    额,还是个老问题。在文章页希望超出侧边栏长度的部分不再那么瘦了,希望能占满全屏,请问应该怎么做

    • Alan / December 2, 2009 / Reply

      Ajax 评论调用的是 comment-ajax.php 这个文件,评论样式可参考 function.php 里面的评论样式部分。

      • koobai / December 2, 2009 / Reply

        样式会修改,主要是想提交以后能显示楼层数,譬如说现在是37楼,再增加一条评论就是38楼了,但提交以后不会显示,要刷新页面以后才显示。或者提交以后显示了,但显示有错误,显示成1楼了~~~

  8. bsod1 / December 28, 2009 / Reply

    hi alan, i need your help again :)

    i want to make this theme full-screen. on every resolution, i want this theme to fit the page but i don’t know enough html/css, could you help me which codes i need to add in css file?(menu width may be same, but the main column must be fit the page)

    • Alan / December 28, 2009 / Reply

      You can make the change as below, the width will auto changed to fit the screen itself no matter how width the screen you use:

      #wrap { width: 100%; margin: 0 auto; }
      #header { width: 100%; }
      #content { width: 97%; padding: 35px 15px 25px; }
      #contentwrap { width: 69.3%; }
      .footer_mid { width: auto; padding: 0 15px; }

      • bsod1 / December 28, 2009 / Reply

        thank you alan,

        it doesn’t work because of contentwrap, when we did it 69,3%, its width depends on resolution, but menu is fixed. so i decided to extend my page but not make it full-screen.

  9. shirp / January 22, 2010 / Reply

    不好意思,又来麻烦你,我想问下,怎么在首页的评论上调用那个Gravatar标志

  10. untitled / January 31, 2010 / Reply

    怎么我下的你的主题和你现在这个页面的风格不一样啊

Trackbacks/Pingbacks:

  1. Tweets that mention DarkLight 2.3 | Alan's world -- Topsy.com
  2. G-White 2.0 | WP迷死
  3. 网页设计中的双色分隔线 | Jinwen Say
  4. Two Great WordPress Themes | QuantMinds.com

Leave a Reply