[Forum] [Improvement] Instant Post Redirect 1.0.2

Viewtopic, viewforum, posting related hacks and MODs.
Viewing topics, forums, or posting add-ons.

[Forum] [Improvement] Instant Post Redirect 1.0.2

Postby eviL3 » 25 Dec 2006, 13:13

MOD Title: Instant Post Redirect
MOD Description: Redirects instantly after posting a message instead of using meta redirection.
MOD Version: 1.0.2
phpBB Version: 3.0.0

MOD Format:
Image

MOD Download: Instant Post Redirect
Last edited by eviL3 on 22 May 2007, 13:53, edited 5 times in total.
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male


Re: [Forum] [Improvement] Instant Post Redirect 0.1.1

Postby NNO-Stephen » 25 Dec 2006, 20:15

what, no changelog? Sad
~Stephen Mortensen~
User avatar
NNO-Stephen
Ensign
Ensign
 
Posts: 66
Joined: 11 Sep 2006, 10:45
Location: Tulsa, OK
Favorite Team: Tampa Bay Buccaneers
Gender: Male

Re: [Forum] [Improvement] Instant Post Redirect 0.1.1

Postby Handyman » 25 Dec 2006, 20:20

Awesome!

Thanks Evil.

I'll be installing that on this board after I upgrade it... which I keep delaying Sad

Edit: @stephen it's so simple... you could just un-install the last one and install this one... or use FileMerge to see the differences
Please contact me if you have any news to submit to SCOFF News.
SCOFFing at the candidates while you sleep.
My Mods || My Mod Queue
Image
User avatar
Handyman    
Rear Fleet Admiral
Rear Fleet Admiral
 
Posts: 7457
Joined: 08 May 2006, 04:45
Location: Where no man has gone before!
Favorite Team: Seattle Seahawks
Gender: Male

Re: [Forum] [Improvement] Instant Post Redirect 0.1.1

Postby NNO-Stephen » 25 Dec 2006, 23:01

1. I don't have the old version
2. I didn't DL the new version

:p
~Stephen Mortensen~
User avatar
NNO-Stephen
Ensign
Ensign
 
Posts: 66
Joined: 11 Sep 2006, 10:45
Location: Tulsa, OK
Favorite Team: Tampa Bay Buccaneers
Gender: Male

Re: [Forum] [Improvement] Instant Post Redirect 0.1.1

Postby LEW21 » 27 Dec 2006, 05:18

Faster method:
Spoiler:
FIND:
Code: Select all
$redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'], $post_data['topic_type'], $poll, $data, $update_message);


ADD AFTER:
Code: Select all
redirect(str_replace('&', '&', $redirect_url));


I tested ths method, it works well too.
phpBB3.PL - User-friendly Polish phpBB 3.0 support
LEW21    
Translator
Translator
 
Posts: 901
Joined: 01 Jun 2006, 03:51
Location: Warsaw, Poland
Gender: Male
phpBB Knowledge: 10

Re: [Forum] [Improvement] Instant Post Redirect 0.1.1

Postby eviL3 » 27 Dec 2006, 06:28

NNO-Stephen: The only change is that the msg_die isn't commented out anymore, and the code is added before it instead.

Handyman: Thank you!

LEW21: Thanks for the suggestion, might add it to the next version Grin (lol, i just love this smiley)
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: [Forum] [Improvement] Instant Post Redirect 0.1.2

Postby eviL3 » 28 Dec 2006, 19:12

Updated to 0.1.2
Added that change suggested by LEW21, that is actually a fix, because i had a before-add instead of an after-add in 0.1.1...
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: [Forum] [Improvement] Instant Post Redirect 0.1.2

Postby NNO-Stephen » 28 Jan 2007, 18:07

it doesnt show to do anything after the first find. might wanna look over the mod again maybe?

unless it's supposed to mean add after both in which case I have issue with the format of the instructions
~Stephen Mortensen~
User avatar
NNO-Stephen
Ensign
Ensign
 
Posts: 66
Joined: 11 Sep 2006, 10:45
Location: Tulsa, OK
Favorite Team: Tampa Bay Buccaneers
Gender: Male

Re: [Forum] [Improvement] Instant Post Redirect 0.1.2

Postby eviL3 » 30 Jan 2007, 07:31

NNO-Stephen wrote:it doesnt show to do anything after the first find. might wanna look over the mod again maybe?

unless it's supposed to mean add after both in which case I have issue with the format of the instructions

That is allowed, it's for in case the next find exists multiple times in the file (wich it does), so what you do is just find the first (so the cursor is placed there), from there on find the second, and add after that one. Hope that helps Hello

BTW: The next version (will wait until phpBB3 goes gold though) will not have the str_replace in it, because it's not needed. It gets str_replaced within the redirect() function Smile
Image
User avatar
eviL3    
MOD Author
MOD Author
 
Posts: 1002
Joined: 05 Nov 2006, 08:14
Location: Cooking in the MODs kitchen
Gender: Male

Re: [Forum] [Improvement] Instant Post Redirect 0.1.2

Postby hurry » 13 Mar 2007, 03:15

Greetings. I had installed the phpbb3 forum first on http://www.mysite.com/phpbb3 . Then I added an addon domain abc.com to point to the phpbb3 folder with url masking so that the forum url becomes http://abc.com . I also added this in the .htaccess file so all urls to the forum point to abc.com:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^abc\.com
RewriteRule (.*) http://abc.com/$1 [R=301,L]
ErrorDocument 404 /index.php

But now when I post a new message with this Instant Post Redirect 0.1.2 MOD, it redirects me to a http://phpbb3.mysite.com/ subdomain url and gives an error page. When I had added the addon domain abc.com in the cpanel to the /home/user/public_html/phpbb3 directory, it had made a subdomain phpbb3.mysite.com even though the phpbb3 directory already existed with the forum. I tried removing all the above .htaccess rules but still the same problem so I guess it has something to do with how the mod works with addon domains.

If I remove this mod, it work ok and gives the redirect page. But I really want to use this cool mod as it saves time while posting a lot of posts. Please tell me what changes to make in the code to make it work. I have tried to explain as clearly as I can but I can explain more if required. Thanks and awaiting some help.
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Next

Return to Topic, Forum, Posting MOD Downloads

Who is online

Users browsing this forum: No registered users and 0 guests