Quote by Blaine: Are you just wanting to display the one block or like shown here
I want to display my block just like you've done here--on top of the usual left blocks.
Quote by Blaine:if you turn off certain blocks in your preferences, it will no longer show as well when in the forum.
not sure i'm following you there. why would turning off one block affect any other?
anyway, this is how i called COM_siteHeader:
Text Formatted Code
//returns the formatted dq menu block and then then the usual left blocks
function dqmenu(){
$a = array('dqmenu');//dqmenu is the name of the phpblock
$retval = custom_showBlocks($a);
$retval .= COM_showBlocks( 'left', $topic );
return $retval;
}
$dqblockmenu = array(dqmenu);
//here, dqmenu represents the function name recognized by COM_siteHeader as a plugin function
COM_siteHeader($dqblockmenu);
it works very nicely though I could probably do it in a couple less lines.
Quote by Blaine:The function custom_showBlocks does not restrict the query to only enabled blocks so your plugin block will be found.
Actually, my 1.3.10 lib-custom shows that custom_showBlocks does restrict the query to only enabled blocks in the where clause--assuming that '1' equals enabled,