Month: November 2011

  • How to create custom table from plugin in WordPress 3

    When creating plugin, we need to create a custom table. We will use register hook activation, de-activation and uninstall to handle database creation and removal. Now, we start with database created automatically when plugin installed / activated. 123456789101112131415161718/* Register installation into hook */ register_activation_hook(__FILE__, ‘your_plugin_install’); /* Install montage SQL into database */ function your_plugin_install() { […]

  • Showing WordPress 3 query database error

    When you building plugin or themes, sometimes you need to contact with database ( select, update, insert or delete ). Somehow after executing database, there no result and no changes in database. That mean some problem with your code. You should check it with showing query error in WordPress by : 1$wpdb->show_errors(); For example : […]

  • Solve Overheat in Ubuntu 11.10 with Jupiter + VGA solution

    Check this for turn off your VGA and decrease overheat fall into 57 C After suffering overheat ( 80 Celcius ) about 2 month with Ubuntu Oneiric ( 11.10 ), finally i got my HP 431 so cool and it steady on 66 C. No Overheat anymore. Probably the main cause why this happen is […]

  • How to load Zend Framework in WordPress 3 plugin

    Loading Zend Framework into WordPress 3 plugin is quite easy. You can download latest ZendFramework on http://framework.zend.com/download/latest . To use Zend Framework with our plugin, extract it on inside plugin folder. 1234set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) ); require_once ‘Zend/Loader/Autoloader.php’; Zend_Loader_Autoloader::getInstance();

  • How to load Zend Framework into PHP files

    Zend Framework provide a lot of interesting libraries. Instead re-invent the wheel, using Zend Framework libraries will boost our development time. You can download latest ZendFramework on http://framework.zend.com/download/latest . To use Zend Framework with our system like individual php files, CMS or Framework, we should configure our path. This is scheme of folders and extracted […]

  • How to create WordPress 3 Custom Plugin for dummies

    Creating custom plugin in WordPress 3.2 is easy and it will fast if we do on the right way. So, what we need to know as newbie / n00b to build a custom wordpress plugin ? First, you should read : http://codex.wordpress.org/Writing_a_Plugin. Now you have insight to build a plugin on WordPress. I will guide […]

  • Fix host-only adapter Virtualbox can’t dhclient and get ip address

    I use Ubuntu 11.10 as Host and Ubuntu 11.04 as Guest on Virtualbox 4.1.4. I running VM using Vagrant and Virtualbox (for Desktop version). When i set host-only adapter, i got issue that my network card (eth1) can’t get IP address. This is weird which i have this work before. Switch on-off on network card […]

  • Fix shared folder Ubuntu Guest & Host Virtualbox permission denied

    After installing Virtualbox Guest Addition, we can share folder in our OS into guest Virtualbox. First, we go to shared folder and add new folder to share. Don’t forget to check auto-mount. Start your VM ( which mine is Ubuntu Oneiric 11.10 ) and go to /media to see sf_ubuntu / sf_folder. When you click […]