* @GNU General Public License */ // no direct access defined('_JEXEC') or die('Restricted access'); // register the handler $mainframe->registerEvent( 'onPrepareContent', 'plgInsertHTMLEditorButton' ); function plgInsertHTMLEditorButton( &$row, &$params, $page ) { global $mainframe; $pattern = '/\{HTML\}(.*?)\{\/HTML\}/i'; // match {HTML}...{/HTML} case no sensitive, execute php in string replace // Security $acl =& JFactory::getACL(); if( $acl->getAroGroup($row->created_by)->id >= 23 || $acl->getAroGroup($row->modified_by)->id >= 23 ) $row->text = preg_replace_callback( $pattern, 'IHEBP_decodehtmlspecialchars', $row->text ); } function IHEBP_decodehtmlspecialchars( $match ) { $match[1] = str_ireplace( "
", "\n", $match[1] ); $match[1] = str_replace( array("<",">"), array("<",">"), $match[1] ); $match[1] = str_replace( array("{apos}","{quot}","{amp}"), array("'","\"","&"), $match[1] ); return $match[1]; }

How to compost

  1. If you have to put your compost bin on concrete, tarmac or patio slabs, ensure there is a layer of paper, twigs or existing compost at the bottom, so that worms and other creatures can colonise. Choose a place where you can easily add ingredients to the bin and get the compost out.
  2. If you do not want your compost bin to smell, attract bugs, mice or attracts vermin, just keep dairy products and meat out of your compost bin. Click here (page 4) for more information on what you can put and what you should not put in your compost bin.
  3. Placing your bin in either a partially shaded or sunny spot can help speed up the composting process.
  4. Put your bin on soil. It makes it very easy for beneficial microbes and insects to gain access to the rotting material. It also allows for better aeration and drainage, both of which are important to successful composting.
  5. If you have to place your compost bin onto gravel but are concerned about damaging it when moving the bin, you will need to lay out plastic sheeting to keep the gravel clean when emptying. Just make sure to cut a hole or slits in the membrane, so that the soil-dwelling organisms can get through.

 If you would like to share your own tips or you have questions regarding how to compost please feel free to post a comment below.

Dim lights Embed Embed this video on your site

Add comment


Security code
Refresh