AdSense-Deluxe And ButtonSnap Fix
If you are using AdSense-Deluxe together with other WordPress plugins that is using ButtonSnap Class Library to create Quicktags button for WordPress Editor, then most probably the buttons created by ButtonSnap won’t show up.
However, after playing around with the JavaScipt inside AdSense-Deluxe (shame to say that i’m not very familiar with JavaScipt 😳 ), finally i came out a solution that’s extremely easy and still maintain the AdSense-Deluxe drop down option in WordPress Editor.
Follow these simple step to do the AdSense-Deluxe and ButtonSnap fix:
Step 1: Open up adsense-deluxe.php with your favorite editor, then search for the following two line.
- if (document.getElementById('quicktags') != undefined){
- document.getElementById('quicktags').innerHTML +=
- ...
Step 2: Then replace the quicktags with ed_toolbar, become like this.
- if (document.getElementById('ed_toolbar') != undefined){
- document.getElementById('ed_toolbar').innerHTML +=
- ...
After that you are done, the button created by ButtonSnap should appear together with AdSense-Deluxe drop down option.
Notes: I tried this plugin in WordPress 2.1 Ella but it doesn’t work for me, so i guess this fix doesn’t apply to WordPress 2.1.
December 19th, 2006 at 3:25 AM
Thanks for this fix. I made a try and it worked perfectly.
December 19th, 2006 at 6:03 AM
glad to know that the fix really works 🙂