Ľudia sa majú dobre, keď si dôverujú

05-17-2012

2012-05-17 15.41.24

…a dôveru nezneužívajú. Kúpil som si mobil. Chcel som nejaký, na ktorom by sa dobre testovali rôzne verzie Androidu, prípadne aj Windowa Mobile, aby nebol z najhorších a mal povedzme aj hardware-ovú klávesnicu. Takéto telefóny nie sú najlacnejšie a keďže pri prvom prepísaní OS sa…

Continue Reading

Formatted text in user’s biography

05-16-2012

Client of mine wanted to be able to set Biography to formatted text, preferably using editor (TinyMCE). So I made this super simple plugin for that task. It utilizes wp_editor API so it needs WP version to be at least 3.3. m_biography_editor.zip

Continue Reading

Bulk rename files on Mac (unix)

03-20-2012

I use mplayerx for watching my video files and I really like the possibility to skip to the next or previous episode. I’m not sure how it works, but I believe it takes the actual filename, divides into prefix, number and suffix and then searches…

Continue Reading

wp_update_user wipes out user meta

02-07-2012

wp_update_user wipes out user’s custom meta data. I just wanted to change first_name, last_name and email of user and as I have found out I should’ve used update_user_meta instead. Hopefully I saved you some time (took me few hours…)

Continue Reading

joke?

01-29-2012

███████everything████████████████████████████████████ is██████████████████████████████████████████fine██████████████. #SOPA

Continue Reading

M Home Show Image

01-28-2012

This plugin shows an image on the front of your wordpress home page. After clicking on the image, it disappears. Feel free to improve and/or use it. http://dunik.sk/m_home_show_image.zip

Continue Reading

codex function reference offline version

01-26-2012

do you need to quickly download codex’s Function Reference? I’ve written this super-simple script: wget -O Function_Reference.html http://codex.wordpress.org/Function_Reference cat Function_Reference.html |sed -n ‘/href=”\/Func/p’ |sed -e ‘s/^.*href=”\/Function_Reference\/\([a-zA-Z0-9_]*\)”.*$/\1/g’ > pages sed -i ‘s:href=”/Function_Reference/:href=”Function_Reference/:g’ Function_Reference.html mkdir Function_Reference for i in `cat pages` do wget -O Function_Reference/$i “http://codex.wordpress.org/Function_Reference/$i” done…

Continue Reading

custom post type – comments not working?

01-04-2012

I’m using custom post type. While testing I realized I wanted comments enabled and they were not. So nothing’s easier, just added ‘comments’ to the support array ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘custom-fields’, ‘comments’), refreshed my site with a test entry and WHAT? comments…

Continue Reading

wordpress localization with context

01-02-2012

dictionary

I use poEdit to generate .mo and .po localization files. It works really great but, one thing that isn’t intuitive is translation of phrases that are used with context (i.e. with _x() command). The solution is simple, just the correct keyword. It should be _x:2c,1…

Continue Reading

pf

12-31-2011

Pour féliciter 11111011100

Continue Reading