Instant Post redirect

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Instant Post redirect

Post 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 --------------------------------------------------------
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Instant Post redirect

Post 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.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Instant Post redirect

Post by cisco007 »

that has nothing to do with this, check your .htaccess file if it already has some kind of redirection or you files!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Instant Post redirect

Post by heredia21 »

What do I need to check there?

Just checked I do not see anything about redirection on .htaccess file
Last edited by heredia21 on 26 Apr 2010, 22:14, edited 1 time in total.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Instant Post redirect

Post by heredia21 »

This is what I am getting before I get redirected
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Instant Post redirect

Post 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!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Instant Post redirect

Post 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 ^
Last edited by heredia21 on 27 Apr 2010, 00:13, edited 1 time in total.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Instant Post redirect

Post by cisco007 »

please stop posting so many times like that!!

--POSTS MERGED--
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Instant Post redirect

Post by cisco007 »

cisco007 » 26 Apr 2010, 22:16 wrote:like i said, maybe it's your server
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Instant Post redirect

Post by heredia21 »

Got it to work. IT WAS NOT MY SERVER!
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
Locked