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

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...
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/12 22:27
skara  一等兵   Posts: 12
Thanx GIJOE!
its amazing how much useful info & tips is into this site
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/13 0:15
skara  一等兵   Posts: 12
its me again!

i made the hack and everything works fine except posting in NewBB2...
Doesnot work:
1. create topic
2. reply
3. fast reply

but works the delete in posts!

any suggestion pls?

Thank you!
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/8/13 5:41
GIJOE  先任軍曹   Posts: 4110
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.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/8/13 8:40
skara  一等兵   Posts: 12
Thanx U r right! i updated to CBB and works fine!

Just a quick question:
why into the message block appears a br tag when the message has 2 sentences?
is there any way to avoid this?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/14 0:31
JMorris  二等兵   Posts: 4
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
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/15 11:06
GIJOE  先任軍曹   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

normal Re: Speed up your XOOPS site:-)

msg# 1.1.1.1.1.1.1
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/15 19:57 | Last modified
JMorris  二等兵   Posts: 4
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!
Votes:0 Average:0.00

normal Re: Speed up your XOOPS site:-)

msg# 1.1.1.1.1.1.1.1
Previous post - Next post | Parent - No child | Posted on 2005/8/16 5:54
GIJOE  先任軍曹   Posts: 4110
Quote:
Strange, I thought I had tried xoops_ccblocks. Oh well, works great now. Thanks!
Perhaps, you did xoops_showccblock instead of xoops_showcblock
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/15 10:58 | Last modified
GIJOE  先任軍曹   Posts: 4110
hi skara

Perhaps, another htmlspecialchars(...,ENT_QUOTES) should be removed.

'content' => htmlspecialchars($_SESSION['redirect_message'],ENT_QUOTES)

I'll fix it.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/8/18 6:24
skara  一等兵   Posts: 12
Thanx GIJOE it works perfect now
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/14 1:49
krobi  上等兵 From: Austria  Posts: 38
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 "
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/8/15 10:59 | Last modified
GIJOE  先任軍曹   Posts: 4110
hi krobi.

It might be the same reason with the issue of <br>

try eliminate htmlspecialchars(...,ENT_QUOTES) in the block of theme.html.
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!