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

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

Target News
Subject お手軽高速化!:-) updated
Summary リダイレクトメッセージは、時間がかかって邪魔だと思いませんか?実際、あのリダイレクトメッセージは、無駄なサーバ負荷にもなっています。とうわけで、okuhikiさんの書込をヒントに、メッセージをじっくり読みたい人にも、さくさく作業したい人にも最善と思われるHack...

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  三等軍曹   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!