ElegantBlue 1.1: Bug Fixes

Hey Guys! After a little research and some elbow grease, I figured out how to fix the trackback and comment number bug. Click Here to download ElegantBlue 1.1 or Click Here to download the ElegantBlue upgrade package, then just upload the files in the package to your themes/ElegantBlue directory and overwrite the old files.

If you want to update the theme yourself because of the custom mods you have done, here are the steps … Download the upgrade package, but only upload the functions.php file to your server. Then, you’ll need to edit the following files (with line numbers):

  • index.php (line 41)
  • archive.php (line 40)
  • search.php (line 17)
  • single.php (line 13)

Replace the following line …

<strong>Posted by <?php the_author_posts_link(); ?></strong> on <?php the_time('F j, Y'); ?> | <a href="<?php the_permalink() ?>#comments">Comments (<?php mw_comments('count'); ?>)</a> | <a href="<?php the_permalink() ?>#trackbacks">Trackbacks (<?php mw_trackbacks('count'); ?>)</a>

with this line:

<strong>Posted by <?php the_author_posts_link(); ?></strong> on <?php the_time('F j, Y'); ?> | <a href="<?php the_permalink() ?>#comments">Comments (<?php comments_only_number('0', '1', '%'); ?>)</a> | <a href="<?php the_permalink() ?>#trackbacks">Trackbacks (<?php echo trackpings('count'); ?>)</a>

And that’s it! Feel free to upgrade yourself, but be forewarned … because you are editing theme source files, you should be very careful. I cannot offer support for any damage you do while editing the source code. I HIGHLY recommend upgrading your theme by either reinstalling version 1.1 or using the upgrade package.

16 Comments
  1. Evert Jan

    Thank you very much for the update and for sharing the changes with us. I managed to do the manual update by changing the mentioned files.

    Keep up the good work! :)

    Regards,EJ

    October 24, 2007 at 1:08 pm Reply to this comment
  2. Nathan Rice

    @Evert Jan
    I assume that everything went ok? It looks like the trackbacks/comments are separated like they should be on your stories, right?

    Nathan

    October 24, 2007 at 1:13 pm Reply to this comment
  3. Scott White

    WONDERFUL!!!

    October 25, 2007 at 12:21 pm Reply to this comment
  4. timic

    hi, thx a lot for the compliment! And that replacing line guide is really handy with the mod I did ;)
    thx a lot !!!

    October 25, 2007 at 2:57 pm Reply to this comment
  5. Emperor

    Hi

    First i would to thank you for dropping by my blog. I’m here to take a look at your there, very impressive, but can’t see the similarities with the other one theme you talked about on my blog.

    Regards
    Emperor

    October 26, 2007 at 11:05 am Reply to this comment
  6. Veidit

    Upgrade was easy, great job!
    I would recomend two options to the theme.
    1. Header entry in options so you don’t need to modify the theme to add meta tags
    2. Option for number of posts to show on the frontpage.

    If there are more option that are saved when the upgrade is done it would simplify upgrades.

    November 1, 2007 at 9:52 am Reply to this comment
  7. mR. gImO

    Hi. I use your theme (with a lot of personal mods) for my blog. Very great work! Elegant and simple. Thanks!

    November 21, 2007 at 8:58 am Reply to this comment
  8. Abhinav

    Hi Nathan!

    I really liked this theme but I am encountering a bug…

    Some of the php code is showing up just after the tag list.

    comment_type == “trackback” || $comment->comment_type == “pingback” || ereg(”", $comment->comment_content) || ereg(”", $comment->comment_content)) { ?>

    The comments and trackbacks are being separated as they should be but before that the comments are showed again under the heading of ‘Trackbacks & Pingbacks’ and the above php code is also present. It happens even on a clean wordpress installation.

    What could be the problem??

    December 6, 2007 at 6:11 am Reply to this comment
  9. Awakash

    Hey Nathan,

    Great work on the Elegant Blue Theme, I loved it and am using it on my site right now. A few things, that maybe even I can try to fix; 1- to change the number of posts on the index page to more than two; 2- The posts that do not appear on the index page do not properly access/display the images on the post itself. If you go to my site, you’ll see. I use a javascript function to create a pop-up window for the thumbnail image.
    Let me know what you think or if there is a fix. You can email me back.

    Thanks,
    Awakash

  10. Abhinav

    Hi Nathan!

    I mentioned in my previous comment about the bug I was facing with wordpress 2.3.1. I think there is some small mistake with the if..endif part. I corrected it myself on my local server and now its working excellent.

    Please look into your download package and correct it as well..

    Thanks!

  11. Coqui

    Is there a problem with your download file?

    I am attempting to download version 1.1, but I just get the dialog boxes with out any file transfer

    Cheers

  12. Coqui

    Scrap my last comment. I was able to get the files.

    Looking at the theme now as a potential for my site.

    Cheers

    December 22, 2007 at 4:44 am Reply to this comment
  13. marcello

    Hi.
    why my recent articles are not more than 2?
    in options I have set up 10!!

    Why?
    Thanks

    January 31, 2008 at 12:01 pm Reply to this comment
  14. marcello

    sorry..
    not recent articles but new post

    thanks

    February 1, 2008 at 6:44 am Reply to this comment
  15. Alejandro Calderón

    I have this error:
    Fatal error: Call to undefined function: wp_list_categories() in /home/centinel/public_html/press/wp-content/themes/ElegantBlue/l_sidebar.php on line 18

    Could anybody help me?

    March 7, 2008 at 2:08 pm Reply to this comment
Leave a Reply
You can use these HTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>