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

Re: Speed up your XOOPS site:-) updated

  • 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 2006/3/25 19:38 | Last modified
JimKarvo  一等兵   Posts: 19
Hello!

Congratulations for your useful tips and hack!


Quote:
----
2005/8/15 fixed

from:
- header( "Location: $url" ) ;
to:
- header( "Location: ".preg_replace("/& amp;/i",'&',$url) ) ;


----
2005/11/14 modified (for the security reason)

from:
- header( "Location: ".preg_replace("/& amp;/i",'&',$url) ) ;
to:
- header( "Location: ".strtr(preg_replace("/& amp;/i",'&',$url),"\r\n\0"," ") ) ;

----
2005/11/17 modified (it is not necessary to convert & ) and added 2.2.3final

from:
- header( "Location: ".strtr(preg_replace("/& amp;/i",'&',$url),"\r\n\0"," ") ) ;
to:
- header( "Location: ".strtr($url,array("\r"=>'',"\n"=>'') ) ) ;

You Hva allready change main code with that chenges?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 | Posted on 2006/3/25 23:34 | Last modified
JimKarvo  一等兵   Posts: 19
Quote:
Poster: skara Posted: 2005/8/13 0:15:47

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!

I have same problem at CBB 3.01! and edit not work!
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/3/26 4:11
GIJOE  先任軍曹   Posts: 4110
Quote:
You Hva allready change main code with that chenges?
The body of news had already modified.

Quote:
I have same problem at CBB 3.01! and edit not work!
This is just an issue of CBB or newbb2.
Perhaps, they don't use redirect_header() .
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/3/26 4:36
JimKarvo  一等兵   Posts: 19
Can I Hack it?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/3/27 6:07 | Last modified
GIJOE  先任軍曹   Posts: 4110
Quote:
Can I Hack it?
CBB?
Of course, you can hack it, if you have enough skill
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2006/3/27 6:41
JimKarvo  一等兵   Posts: 19
I haven't skill!
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/4/6 16:54
cebepuh  一等兵   Posts: 14
Quote:
Poster: JimKarvo Posted: 2006/3/25 16:34:55

Quote:

Poster: skara Posted: 2005/8/13 0:15:47

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!



I have same problem at CBB 3.01! and edit not work!


JimKarvo, skara try using the 2005/11/14 version of this hack:

header( "Location: ".strtr(preg_replace("/&/i",'&',$url),"\r\n\0","   ") ) ;



For some reason ampersands get inserted in the redirection URL with CBB 3.01 and Xoops 2.2.4 when using the latest version of the hack. I haven't really looked why it happens but I had the feeling the problem is more in the core than this hack, or CBB.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2006/4/11 6:11
GIJOE  先任軍曹   Posts: 4110
I've checked and reverted it.
Perhaps, it is necessary to covert '& amp;' to '&' for the other modules.
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!