+91-40 – 420 001 24 info@dhrusya.com

Creating USB linux drive

Just follow following procedure, >> isohybrid lxle-12045-32.iso it returns following warnings: isohybrid: Warning: more than 1024 cylinders: 1279 isohybrid: Not all BIOSes will be able to boot this device Then  wrote the usb key with: sudo dd...

Joomla development tips and hacks

Add styles and scrtpts to your extension $cssUrl=Juri::base() . ‘components/com_component/assests/style.css'; $jsUrl=Juri::base() . ‘components/com_component/assests/js.js'; $document = JFactory::getDocument(); $document->addStyleSheet($jsUrl);...

WordPress meta queries

If you want to get a post with meta key show_on_homepage and meta value on, you can do it in the following way: $rd_args = array( 'meta_key' => 'show_on_homepage', 'meta_value' => 'on' ); $rd_query = new WP_Query($rd_args); If you need to query all posts except...

WordPress Hacks

Here are few wordpres hacks that are very usefull while developing wordpress plugins and themes. Hide wordpress adminbar add_action('init', 'remove_admin_bar'); function remove_admin_bar() { if ( !current_user_can('administrator') && !is_admin()) {...

Working with TinyMCE

You can not enhance the drop down list formatselect. But you can enhance with the hook tiny_mce_before_init the second drop down styleselect, there is hide in a default WordPress install. The documentation list all defaults and possibilities. inline – Name of the...