Category Archives: Hacks

Hack the maximum execution time in WordPress

Today I find a problem: time ends… Well, for a WordPress plugin only, the KC S2M+MC one. I mean I got “Maximum execution time of 60 seconds exceeded” error, when I run a long operation (synchronizing members in Mailchimp list … Continue reading

Posted in Blog, Hacks | Tagged , , , , | Leave a comment

Hack the WordPress AJAX procedure…

Here I describe an unusual way to use AJAX inside WordPress, by usual “admin-ajax.php” URL. Usually we run AJAX in WordPress with following code: add_action(‘wp_ajax_mp_my_action’, ‘my_action’); add_action(‘wp_ajax_nopriv_my_action’, ‘my_action’); function my_action() { … } Then we fire it with GET query … Continue reading

Posted in Blog, Hacks | Tagged , | Leave a comment

Hack the KC Tools…

Sometimes it is need to see what server gets as info from some complex form or POST request. Here is how you can see that. Works with all versions of KC Tools. Set the “action” attribute of the form to: … Continue reading

Posted in Blog, Hacks, KC Tools | Tagged , , , , , , | Leave a comment

s2Member® hack – custom ccaps

WordPres’s plugin s2Member® have his own “scripting language” of several []-tags. One (and maybe most used) tag is [s2If …] [/s2If], where we can set conditionals to show or hide content, functions etc, depending of privileges of current viewer, like … Continue reading

Posted in Blog, Hacks | Tagged , , , , , , , , , , , , , , , | Leave a comment

Strange behaviour of parseFloat of ‘this.innerHTML’ in Chrome

This is a rare case: in a project I use parseFloat JavaScript function to calculate final sum, but string was in the HTML code, previously generated by jQuery AJAX call: $(‘#’+id).html(rezult+’ ‘+currency); … $(‘#total’).html(‘TOTAL: ‘+totalcalc()); so it must be captured … Continue reading

Posted in Blog, Hacks | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

China letters from Excel to HTML, handled by VBA

This macros turns Chinese letters in “MS Excel 2007” spreadsheet to HTML codes. It will works with all Unicode chars, so can be used with Cyrilic, Hebrew, Arab, Japan an all others languages. In my case it prepares XML form … Continue reading

Posted in Blog, Hacks | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Loger

Loger is a small shell script (Unix “sh” shell and compatible), what turns CENTERICQ “history” records to “human readable” logs. Useful (at least for me :-) when I want to re-read an old conversation with somebody. It sends result to … Continue reading

Posted in Blog, Hacks | Leave a comment