Page 1 of 2

Instant Post redirect

Posted: 25 Mar 2010, 15:14
by cisco007
Instant Post Redirect 1.0.2
Written: eviL<3
Redirects instantly after posting a message instead of using meta redirection.

All credit goes to original author!


Open: posting.php
Find:

Code: Select all

				meta_refresh(3, $redirect_url);
Add after:

Code: Select all

//-- mod : Instant Post Redirect ------------------------------------------------------------
//-- add
				redirect($redirect_url);
//-- fin mod : Instant Post Redirect --------------------------------------------------------

Re: Instant Post redirect

Posted: 26 Apr 2010, 21:58
by heredia21
Works great, how can I get rid of that next white page that says "If your browser supports meta redirection you will be redirected." Any one just to have a instant redirect that takes you straight to post.

Re: Instant Post redirect

Posted: 26 Apr 2010, 22:09
by cisco007
that has nothing to do with this, check your .htaccess file if it already has some kind of redirection or you files!

Re: Instant Post redirect

Posted: 26 Apr 2010, 22:11
by heredia21
What do I need to check there?

Just checked I do not see anything about redirection on .htaccess file

Re: Instant Post redirect

Posted: 26 Apr 2010, 22:12
by heredia21
This is what I am getting before I get redirected

Re: Instant Post redirect

Posted: 26 Apr 2010, 22:16
by cisco007
like i said, check any mods that you have that might have any kind of meta redirection, or maybe it's your server, i have installed this in about 15 different sites, and have never seen that!

Re: Instant Post redirect

Posted: 26 Apr 2010, 22:26
by heredia21
Read this on phpbb forums:
Thanks for your reply :)

I "fixed" this by completely removing the IF block that caused the message to appear; the forum seems to perform redirections correctly in both Firefox and IE, so I guess it worked?

Forum is now locked but do you happen to know what IF blocks that might cause that message?

Edit. Heres where i found it: http://www.phpbb.com/community/viewtopi ... &t=1376775

I might of found it. But what do I do with it. the common.php file in
language/en has this:

'URL_REDIRECT' => 'If your browser does not support meta redirection %splease click HERE to be redirected%s.',

Did research. This is a tough one. But that was all I could find ^

Re: Instant Post redirect

Posted: 27 Apr 2010, 00:56
by cisco007
please stop posting so many times like that!!

--POSTS MERGED--

Re: Instant Post redirect

Posted: 27 Apr 2010, 00:59
by cisco007
cisco007 ยป 26 Apr 2010, 22:16 wrote:like i said, maybe it's your server

Re: Instant Post redirect

Posted: 27 Apr 2010, 01:04
by heredia21
Got it to work. IT WAS NOT MY SERVER!