hi JMorris
Quote:
I would like the redirect message to display in the top center block of the site instead of the left column. What would I need to change _tpl_vars['xoops_lblocks'] to?
It is easy to modify it if you know the structure of theme.html.
- xoops_showcblock
- xoops_ccblocks
<{php}>
if( ! empty( $_SESSION['redirect_message'] ) ) {
if( empty( $this->_tpl_vars['xoops_ccblocks'] ) ) $this->_tpl_vars['xoops_ccblocks'] = array() ;
array_unshift( $this->_tpl_vars['xoops_ccblocks'] , array( 'title' => 'Message' , 'content' => $_SESSION['redirect_message'] , 'weight' => 0 ) ) ;
$this->_tpl_vars['xoops_showcblock'] = 1 ;
unset( $_SESSION['redirect_message'] ) ;
}
<{/php}>