Posted on: 06/05/06 10:44pm
By: ivy
echo DB_getItem( 'gl_blocks', 'content',"bid = '**'"); bid is block id.
echo phpblock_polls(); echo phpblock_themetester(); and so on...
echo COM_showBlock('user_block');
echo COM_showBlock('admin_block');
echo COM_showBlock('section_block');
echo COM_showBlock('events_block');
echo COM_showBlock('whats_new_block');
Posted on: 08/19/06 01:48pm
By: koalasoft
echo DB_getItem( 'gl_blocks', 'content',"bid = 'My_block'");
echo COM_showBlock('My_block');
Posted on: 08/19/06 02:03pm
By: samstone
Posted on: 08/19/06 02:28pm
By: koalasoft
echo COM_showBlock('block_name_customized');
Posted on: 11/07/06 11:57am
By: LWC
// http://lior.weissbrod.com presents... // A staticpage frontend for portal blocks // Version 0.1 // Needed paramters - start // Enter Your Portal Block's ID // (configurable in the block editor) $bid = 'test'; // Needed paramters - end // If it's disabled/hidden, do its job for it if (DB_getItem( $_TABLES['blocks'], 'is_enabled', "bid = '$bid'")) { // Gather parameters for the portal block $sql = "SELECT type, content, rdfur, date, rdflimit WHERE bid = '$bid'"; $result = DB_query( $sql ); $A = DB_fetchArray( $result ); $A['bid'] = $bid; // Since COM_formatBlock completely ignores its $noboxes // (set to true below) paramter and takes it directly // from $_USER['noboxes']... $userboxes_backup = $_USER['noboxes']; $_USER['noboxes'] = true; // Update the hidden block if needed COM_formatBlock($A, true); // Again, because the above true was ignored $_USER['noboxes'] = $userboxes_backup; } else $A['bid'] = $bid; // Finally, paste the feed $A['content'] = DB_getItem( $_TABLES['blocks'], 'content', "bid = '{$A['bid']}'"); echo $A['content'];
Posted on: 12/03/06 06:09pm
By: tmarquez
Posted on: 04/15/08 09:43am
By: LWC
Posted on: 02/26/11 11:45am
By: koalasoft
Posted on: 02/27/11 01:04pm
By: ::Ben