After you pick up your jaw that just dropped on the floor take a look at statbrain.com and their traffic estimation for 5ubliminal.com. No offense but I'd rather call that domain statbraindead.com.
Below you can see a photo of me reading that traffic estimate. I was like WTF?!?!
From my around 3.500 distinct monthly visitors [10k+ visits ; 25k+ page loads ; 150k+ hits] to that number ... there's a long ass way. I wish I had that traffic but .. nope ... they missed by ... a a galaxy or so ;)
A customer asked for a fully fledged sample on how to use elWpAPI and I came up with this example. It uses my RSS parser to show you how to start up your own autoblogs. Takes content from a chosen feed and publishes posts with the contents. It's basic but you can build on it. Read the rest of this entry »
I use my Public/Private Morpheus quite a lot but there's something bugging me. I always disable the auto-save feature and, when I write a new post/page, I'm tempted to add Custom Fields before saving first draft. That will do something really annoying. For each Custom Field you create on a new post ... Wordpress adds a new Draft ... and each newDraft is created with nothing but that Custom Field. Read the rest of this entry »
I'm in a sort of 'forced vacation', away from 'office' ... home at my parents ... after a tiny foot surgery ... thing. Well ... as I had some time with less work, I read a book [the Romanian translation] of The Gurus, the Young Man, and Elder Paisios and I really think you need to read this one. It's outstanding. Read the rest of this entry »
I write many plugins that need to do a simple thing (sometimes on one site only) and most times carry less than 5 translatable (localized) strings. This poses a problem because a tiny .php file is no fun with a .MO tail strapped to its ass. So, after peeping into the Wordpress localization engine, I wrote a function to push some basic translations inside the $l10n domain space.
This will provide a very simple way to localize your plugins by plugging in the init action and pushing the new Wordpress translation (localization) table. Read the rest of this entry »
Inside the mysql information_schema schema :) there's a table that keeps track of creation / update times for tables. But there is no internal tracker for row / record creation / update time ... that you can access. Nevertheless MySQL offers a very cool method to add columns to do this yourself.
These columns are ... how to put it ... hands off. Once you add them they can track row creation and update time by themselves. You don't need to keep track of them when you insert / update records. They will just work and you can always query them to get record creation / last update time. Read the rest of this entry »
When working in Javascript with element sizes you need to know width and height but the real effective sizes includes padding, margins and borders. So I created a jQuery function that will return an element's dimensions as an object and will detail both horizontal and vertical: borders, padding, margins and complete size. I use this when I write JS scripts to resize Elements based on screen resolution. Read the rest of this entry »
I was working on a bunch of plugins and realised that Wordpress is missing a function for theme mods (theme related options). Let's say I have a plugin that sets mods on all themes like this: set_theme_mod('mod', 'value); Once you set the value you can retrieve it using get_theme_mod('mod', null); and you can remove it using remove_theme_mod('mod');
These three functions all work on the current theme but a plugin can mod all themes on one blog. Do you start to notice the problem? Read the rest of this entry »
You could use the Ajax Search but I think it will return very few results unlike regular image search which returns 21 images per request.
The previous PHP script I published (on my old blog) to scrape Google Images has been rendered absolete by the JSONish output of images results. So I had to write another one (actually fix the old one) to scrape the JS encoded image objects and return them in a friendly way. This function returns an array of objects, each being an image with full details. Read the rest of this entry »
This is my first Wordpress 2.8 plugin I'm publishing and it does very little ... yet so much. It will allow you to add <?php ... ?> code to Wordpress stock Raw Text Widgets and it will interpret the code for you. It adds eval capabilities to stock text widgets and works only in Wordpress 2.8+. Read the rest of this entry »