Thanx GIJOE!
its amazing how much useful info & tips is into this site
Quote:
i made the hack and everything works fine except posting in NewBB2...
Doesnot work:
1. create topic
2. reply
3. fast reply
Though I don't know newbb2 well, it just sounds newbb2 does not use redirect_header() in XOOPS core.
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?
I've tried _tpl_vars['xoops_cblocks'] and _tpl_vars['xoops_ccblocks'] with no success.
Thank you,
James
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}>
Quote:
JMorris said:
I've tried _tpl_vars['xoops_cblocks'] and _tpl_vars['xoops_ccblocks'] with no success.
Strange, I thought I had tried xoops_ccblocks. Oh well, works great now. Thanks!
Quote:
Strange, I thought I had tried xoops_ccblocks. Oh well, works great now. Thanks!
Perhaps, you did xoops_showccblock instead of xoops_showcblock
hi skara
Perhaps, another htmlspecialchars(...,ENT_QUOTES) should be removed.
'content' => htmlspecialchars($_SESSION['redirect_message'],ENT_QUOTES)
I'll fix it.
Thanx GIJOE it works perfect now
hey gijoe i have just made a quick newbb 2.0 test and it works for me without problems.
but i have another problem there is a problem with the "message block" and the german language - words with "
hi krobi.
It might be the same reason with the issue of <br>
try eliminate htmlspecialchars(...,ENT_QUOTES) in the block of theme.html.