Tag Archive for 'code'

Buy Me a Beer plugin bug fix

If you are using the Buy Me a Beer plugin for wordpress, you might not be aware of a bug it has. It’s not that biggie but I noticed this bug breaking my Write Post/Page page when on Safari and iCab browsers. I discovered that there is a missing </div> tag in the plugin’s admin code. This is not a problem if you are using Firefox which is a Gecko based browser. I think Gecko based browsers are more forgiving of bad coding. Safari and iCab uses the WebKit engine which catches wrong syntax written like that.

bug

You can download the fixed file here (buy-me-beer-admin.txt)

  • save it as .php
  • overwrite the same file in your wp-content/plugins/buy-me-beer/ folder.


Macs and Firefox Text Rendering glitch

Text rendering on my site had bugged me for the longest time. It drove me nuts and I never really thought there was a fix for it, but dayummm I should’ve looked into it sooner because there is!!

So what was the moronic bug exactly? It’s how the fonts would go thinner or thicker from time to time. Actions that trigger this are like scrolling the page or clicking on a link or activating hover styles. It is really annoying because I couldn’t get the right look I want.

Sample
bug

Well, it turns out that Firefox running on Macs can’t correctly render text every time (I know, huh!). What sucks is that it is too obvious because you see it on a single static page… really UGLY!

Anyway, the fix that I found is not perfect but it works on how I have my layout coded (with floats) so I’ll stick to it. Besides, who cares if this website isn’t W3C compliant… Actually, I should get a beating for saying that… I mean, being a web development student, I should be strict about stuff like that. BUT again.. WHO CARES!

One major drawback that I do care about though is, flash embedded videos won’t show up while the opacity isn’t set to 1 (or 100). I guess I’ll just have to set up a pop up box for that or a link…. or ditch videos.

Here’s what I did: to my body { } I added the attribute opacity: 0.9.
Fixed my site in no time.
Hell yeahhhh!






ss_blog_claim=35739f9be1892a9a37310c3e7bc290e8