Instant Post Redirect

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: Instant Post Redirect

Post by stokerpiller »

eviL<3 wrote:Open: includes/ucp/ucp_pm_compose.php

Find:

Code: Select all

			meta_refresh(3, $return_message_url);
After, add:

Code: Select all

			redirect($return_message_url);
Nice :)
And if I want to return to the inbox?
I am done with phpBB
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Instant Post Redirect

Post by igorw »

In that case change it to:

Code: Select all

redirect($return_folder_url);
:)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: Instant Post Redirect

Post by stokerpiller »

eviL<3 wrote:In that case change it to:

Code: Select all

redirect($return_folder_url);
:)
Allready tried that :)
Then the user gets redirected to the Outbox.
I wanted Inbox. I guess that there is no easy way for this.
I am done with phpBB
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Instant Post Redirect

Post by igorw »

Code: Select all

redirect(append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox'));
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
Tom@S
Registered User
Posts: 96
Joined: Thu Jul 12, 2007 7:33 pm
Location: SVK
Contact:

Re: Instant Post Redirect

Post by Tom@S »

why is not this mod writte in install.txt this i can read in this format.It show me only html screen or what.I have used few time it but thisone dont go.
edit/i used php editor and take out data and works great easy but great mod thx evil it will spend me a lot of time :P Image
Last edited by Tom@S on Sun Oct 21, 2007 12:06 am, edited 1 time in total.
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: Instant Post Redirect

Post by stokerpiller »

eviL<3 wrote:

Code: Select all

redirect(append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox'));
That one works like a charm :D
Thanks Evil<3
I am done with phpBB
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Instant Post Redirect

Post by igorw »

Tom@S wrote:why is not this mod writte in install.txt this i can read in this format.It show me only html screen or what.I have used few time it but thisone dont go.
edit/i used php editor and take out data and works great easy but great mod thx evil it will spend me a lot of time :P Image
It's MODX format, open install.xml in your browser ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
Tom@S
Registered User
Posts: 96
Joined: Thu Jul 12, 2007 7:33 pm
Location: SVK
Contact:

Re: Instant Post Redirect

Post by Tom@S »

eviL<3 wrote: It's MODX format, open install.xml in your browser ;)
OK i unpacked it on and run in firefox via options and navigation not automatic,but after i aplly it i cant register like other guest.That is very streng ne user send me message that he cant reg in so i try it and was true.I delete redirect code from posting and go again like normal
I used only short variant of this mod.
User avatar
TimJBart
Registered User
Posts: 279
Joined: Mon Jan 28, 2002 8:24 pm

Re: Instant Post Redirect

Post by TimJBart »

Yep this MOD is brilliant. So simple yet so necessary. I've never been clear on why phpbb has a posting confirmation, despite being shouted at in area51 :)
superroach
Registered User
Posts: 14
Joined: Wed Oct 24, 2007 11:55 pm
Contact:

Re: Instant Post Redirect

Post by superroach »

For the purists, a confirmation that they have actually clicked "post" would be useful, assuming times when the database is overloaded and you don't see your post straight away.

How about is is possible to call a function while doing this redirect on the new page? If so, I'll make either custom done or jQuery style hover that floats away quickly on the new page. something like postComplete();...
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Instant Post Redirect

Post by igorw »

To do that correctly it would require AJAX and it would take even longer to load then ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
gregonweb
Registered User
Posts: 19
Joined: Thu Oct 25, 2007 5:37 pm
Location: Dover Plains, NY
Contact:

Re: Instant Post Redirect

Post by gregonweb »

Thank you for this quick mod. It eliminates what, to me, seems like a useless delay. Thanks again.
User avatar
*Capmaster*
Registered User
Posts: 159
Joined: Tue Mar 20, 2007 5:00 pm
Location: Albuquerque, NM
Contact:

Re: Instant Post Redirect

Post by *Capmaster* »

Nice work. Very handy mod! 8-)
superroach
Registered User
Posts: 14
Joined: Wed Oct 24, 2007 11:55 pm
Contact:

Re: Instant Post Redirect

Post by superroach »

eviL<3 wrote:To do that correctly it would require AJAX and it would take even longer to load then ;)
Not if you use something like jQuery, Prototype or MooFX to show a css element that already exsists briefly on the new page...
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: Instant Post Redirect

Post by igorw »

superroach wrote:Not if you use something like jQuery, Prototype or MooFX to show a css element that already exsists briefly on the new page...
And how excactly would you send the post content to the server?
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
Locked

Return to “[3.0.x] MOD Database Releases”