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 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...
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/12 22:27
skara  Private 1st Class   Posts: 12
Thanx GIJOE!
its amazing how much useful info & tips is into this site
Votes:0 Average:0.00
depth:
1
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/13 0:15
skara  Private 1st Class   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
depth:
2
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/8/13 5:41
GIJOE  Gunnery Sergeant   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
depth:
3
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/8/13 8:40
skara  Private 1st Class   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
depth:
4
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/14 0:31
JMorris  Private   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
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

normal Re: Speed up your XOOPS site:-)

msg# 1.1.1.1.1.1.1
depth:
6
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/15 19:57 | Last modified
JMorris  Private   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
depth:
7
Previous post - Next post | Parent - No child | Posted on 2005/8/16 5:54
GIJOE  Gunnery Sergeant   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
depth:
4
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/15 10:58 | Last modified
GIJOE  Gunnery Sergeant   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
depth:
5
Previous post - Next post | Parent - No child | Posted on 2005/8/18 6:24
skara  Private 1st Class   Posts: 12
Thanx GIJOE it works perfect now
Votes:0 Average:0.00
depth:
3
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/14 1:49
krobi  Lance Corporal 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
depth:
4
Previous post - Next post | Parent - No child | Posted on 2005/8/15 10:59 | Last modified
GIJOE  Gunnery Sergeant   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!