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.



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
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
Scott White
WONDERFUL!!!
timic
hi, thx a lot for the compliment! And that replacing line guide is really handy with the mod I did ;)
thx a lot !!!
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
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.
mR. gImO
Hi. I use your theme (with a lot of personal mods) for my blog. Very great work! Elegant and simple. Thanks!
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??
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
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!
Gal Rosen
Abhinav,
I am facing the same issue, can you tell what was the mistake with the if..endif part ?
Thanks,
Gal.
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
Coqui
Scrap my last comment. I was able to get the files.
Looking at the theme now as a potential for my site.
Cheers
marcello
Hi.
why my recent articles are not more than 2?
in options I have set up 10!!
Why?
Thanks
marcello
sorry..
not recent articles but new post
thanks
Pingback: Weblog Work » Country Keepers by Gary Petersen
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?
Genry
I really like, thanks!
Gal Rosen
Hi Nathan,
There is a problem with the comments and trackback, the code in comments.php can’t distinguish between Trackback/Pingback to a message. Sorry, the site is in Hebrew, but I hope you can help. I think that the issue is because the function ereg is deprecated as for PHP 5.3.0, what do you think ?
Gal.