PEAK XOOPS - Speed up your XOOPS site :-) updated number 2!!! in englishin japanese

Speed up your XOOPS site :-) updated number 2!!!

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

none Speed up your XOOPS site :-) updated number 2!!!

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2006/12/9 8:41
slyss79  Sergeant   Posts: 143
in your theme.html delete this:

[code]
<{php}>
if( ! empty( $_SESSION['redirect_message'] ) ) {
if( empty( $this->_tpl_vars['xoops_lblocks'] ) ) $this->_tpl_vars['xoops_lblocks'] = array() ;
array_unshift( $this->_tpl_vars['xoops_lblocks'] , array( 'title' => 'Message' , 'content' => $_SESSION['redirect_message'] , 'weight' => 0 ) ) ;
$this->_tpl_vars['xoops_showlblock'] = 1 ;
unset( $_SESSION['redirect_message'] ) ;
}
<{/php}>
[/code]

and insert this:

[code]
<{php}>
if( ! empty( $_SESSION['redirect_message'] ) ) {
$this->_tpl_vars['xoops_msg'] = $_SESSION['redirect_message'];
unset( $_SESSION['redirect_message'] ) ;
}
<{/php}>
[/code]

Now you can use the smarty's variable [b]<{$xoops_msg}>[/b] and you can put the redirect messagge where you want in the theme.html

i hope this feature is appreciated....

thanks to dead from xoopsitalia.

sly

[url=http://www.xoopsitalia.org/modules/newbb/viewtopic.php?post_id=38114#forumpost38114]originale message[/url]
Votes:2 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!