Re: Speed up your XOOPS site:-)
- As this forum is only for commentation, you cannot open a new topic
- Guests cannot post into this forum
Target |
News |
Subject |
お手軽高速化!:-) updated |
Summary |
リダイレクトメッセージは、時間がかかって邪魔だと思いませんか?実際、あのリダイレクトメッセージは、無駄なサーバ負荷にもなっています。とうわけで、okuhikiさんの書込をヒントに、メッセージをじっくり読みたい人にも、さくさく作業したい人にも最善と思われるHack... |
msg# 1
Hi,
Thanks for sharing this useful hack.
I'm using Xoops 2.0.13. I did inserted the lines (in 3 files) following the instructions. But the COMMON ones (inserted to theme.html) didn't work. The page is loaded with following lines appear:
"_tpl_vars['xoops_lblocks'] ) ) $this->_tpl_vars['xoops_lblocks'] = array() ;
array_unshift( $this->_tpl_vars['xoops_lblocks'] , array( 'title' => 'Message' , 'content' => htmlspecialchars($_SESSION['redirect_message'],ENT_QUOTES) , 'weight' => 0 ) ) ;
$this->_tpl_vars['xoops_showlblock'] = 1 ;
unset( $_SESSION['redirect_message'] ) ;
}"
Any suggestion on how I suppose to insert the lines?
Any help is appreciated.
Thanks in advance.
tangan
Votes:0
Average:0.00
msg# 1.1
tl
Posts: 84
tangan:
You need to use the bracket
<{php}>
<{/php}>
to include the php code in theme.html file. Otherwise, php code will not be rendered. Guess GIJOE has assumed everyone knows this without pointing it out.
GIJOE, thanks for the tip.
Votes:0
Average:0.00
msg# 1.1.1
Thanks tl, I'll try it out.
Cheers
Votes:0
Average:0.00
msg# 1.1.2
hi tl.
Quote:
Guess GIJOE has assumed everyone knows this without pointing it out.
No, no.
It's a typo
(a mistake about selecting area)
I've just fixed.
I hope this tip helps you.
Votes:0
Average:0.00