PEAK XOOPS - Re: Speed up your XOOPS site:-) in englishin japanese

Re: Speed up your XOOPS site:-)

Target News
Subject Speed up your XOOPS site:-) updated
Summary redirect_header() makes your site slow.You can make your site fast only by hack just 2 or 3 point.This site demonstrates it to you.The message is displayed as a left block in the redirected page.The inserting point for hacked codes is different each ot...

List posts in the topic

normal Re: Speed up your XOOPS site:-)

msg# 1.1.1.1.1.1
depth:
5
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/15 11:06
GIJOE  Gunnery Sergeant   Posts: 4110
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}>
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!