Lately I’ve been a little frustrated. I think it was since I upgraded WordPress to 2.0.5 that it broke my dBeautifier plugin v3.4 for PHP5. Awesome plugin, bummer that Joseph Newing decided to stop supporting it. Lots of people are using it, and will shortly run into this problem. C’mon Joseph, hows about another release update!
Here is a workaround I developed. I have modified the currently only available copy on the internet from Jeroen Onstenk (thanks buddy!) to include the changes required for the plugin to work with WordPress 2.0.5 and 2.0.6. If you have any problems at all with this plugin you are welcome to ask me by leaving a comment at the bottom of this post.
dBeautifier 3.4 for PHP5 and WordPress 2.0.5 and 2.0.6
Summary of Changes
- Moved the icons directory from the /wp-content/plugins/dBeautifier/icons/ directory to the /wp-content/icons/ directory. This allows WordPress 2.0.5 and 2.0.6 to be able to actually display images from the plugins directory.
- In order for the above to work, lines 57 to 59 of dBeautifier_Filter.php were modified to the below:
$img = get_option('siteurl') . "/wp-content/icons/$icon"; } else { $img = get_option('siteurl') . "/wp-content/icons/downloads.png";This allows the icons to actually display.
- Now about the CSS. For some reason the plugin wasn’t loading the CSS from the dBeautifier.css file included with the plugin, so I added it to my /wp-content/themes/mytheme/style.css file. In fact, I also added a little extra CSS, because the theme I use adds a black border around images. This looks really nice with images in posts, but kind of stuffs up dBeautifier icons. So, the total CSS I added to my /wp-content/themes/mytheme/style.css file is:
/* CSS I added to get rid of borders on the icons */ img.icon { border: none; background: none; } /* CSS by Joseph Newing required for dBeautifier to work nicely */ .download-link { height: 50px; background: #f6f6f6; border: 1px solid #cccccc; margin: 0 0 5px 0; padding-left: 15px; } .download-link h4 { margin: 0; padding: 10px 0 0 5px; } .download-link p { margin: 0; padding: 0 0 0 30px; } .download-link img { float: left; margin: 5px 5px 0 5px; border: none; padding-top: 4px; } - Then, in order for my extra little piece of CSS to be implemented by the plugin, I had to change the class on line 93 of dBeautifier_Filter.php to become the icon class: (edit: can’t get the code to display, website not rendering code correctly – refer to the downloadable file instead)
- Finally, I accidentally overwrote the original icons that Joseph Newing included with the plugin. I obviously prefer myn so I’ll just leave them there for now. You can use whichever ones you want, please yourself.
Installation Instructions
- Download the file from above, and unzip it to your wordpress root folder. This download already includes all the modifications except where I moved the plugins CSS into the themes CSS, you will have to do this manually.
- Add the following to your /wp-content/themes/mytheme/style.css file:
/* CSS I added to get rid of borders on the icons */ img.icon { border: none; background: none; } /* CSS by Joseph Newing required for dBeautifier to work nicely */ .download-link { height: 50px; background: #f6f6f6; border: 1px solid #cccccc; margin: 0 0 5px 0; padding-left: 15px; } .download-link h4 { margin: 0; padding: 10px 0 0 5px; } .download-link p { margin: 0; padding: 0 0 0 30px; } .download-link img { float: left; margin: 5px 5px 0 5px; border: none; padding-top: 4px; } - Activate the plugin, and go to the dBeautifier tab in Options Panel to set your WordPress directory.
- You may like to add the XLS and PDF icons that I accidentally included with this package whilst you’re in the Options Panel. I will likely expand on the icons and file extensions that I use and create another download. If I get around to doing this in the next few weeks I’ll make sure I provide a link from this post.



Hello Tom,
I have also made some custom mods in dBeautifier including adding a download statistics function in the Admin section.
You can check them at:
Adding extended download statistics in download beautifier (dBeautifier) plugin
Any comments are welcomed!
Alright seeshh
Now I am not gonna say too much but I will tell you this, make sure you keep your eyes on binslashbash.org in the next little while as I am almost done a huge revamp and have updated several of my old plugins
I only have one database. and I have no right to creat database and only the right to creat table in the database which was given me.
What should I do next?
modify the file “dBeautifier.php”?
it says:
WordPress database error: [Table 'vipmedia_cn.w_dBFiletypes' doesn't exist]
select id, dBExt, dBIcon from w_dBFiletypes
what is the matter? Should I make up a table or database manully?
Sorry!
I give the wrong website URL.
It ‘s here
http://www.vipmedia.cn
http://www.viipmedia.cn
My wordpress is 2.12 and my php is 5.0+, can I use this one?
thank you!
Tom, guess what
Hi Jeroen,
I have tried looking for any alternative download managers that are as good looking as this, and that display different icons depending on the file, but to no avail. I would love to find out which ones you would recommend.
Keep in touch,
Tom
Hi Tom!
Excellent work you did here and I’m glad I was able to help you out on this one.
From my perspective you could call this version now 3.41 because this adds really something.
BTW did you noticed there has been quite some new download managers/beautifiers out in the WP Plugin world?
Nevertheless, keep up the good work!!