MyBB Community Forums

Full Version: "Friendly pages"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm not sure if this should go here or under mybb discussion but here we go.

Do you know when forums and the like have that friendly message page (I can't remember what it's called, but called something like that) that says like:

Quote:Your post has been submitted, blah blah blak

Click here if your browser doesn't take you there.

My question is- is there any practical point to this? I mean, I like them when I'm on forums and stuff (I don't know whyConfused) but is there a practical purpose to this, back end?

Thanks.
You can turn it off in admincp it's called "friendly redirect".
(2008-11-29, 07:41 PM)labrocca Wrote: [ -> ]You can turn it off in admincp it's called "friendly redirect".
Thanks for the reply. I know that, but I was thinking about mimicking it on my other sites that don't use MyBB and I was wondering if there was a point to it.
It's just more a confirmation thing and since ajax isn't everywhere it makes the page updated Wink.
(2008-11-29, 08:06 PM)NetSage Wrote: [ -> ]It's just more a confirmation thing and since ajax isn't everywhere it makes the page updated Wink.

It's just a confirmation thing since it loads the page twice actually - one for the redirect page and one for the actual page you are redirected to, two http requests.

If you are thinking about it you might wanna think about inline error messages instead Smile
Inline can be very ugly though. For example, if you have a login form, and you want to redirect the user to the home page after they successfully log in, if you load the home page on a successful login (ie, directly send the page's contents to the user), you've got the home page displayed with a "login" URL.
Alternatively, do a redirect to the home page, but then you're back to the issue of two HTTP requests...
Javascript ftw! Toungue

Well I don't really think an end user does really matter what the url says - and anyways when doing logins you should send the login information through post request.
(2008-12-02, 10:22 AM)Yumi Wrote: [ -> ]do a redirect to the home page, but then you're back to the issue of two HTTP requests...
I think you know that (I just post it to correct me if am wrong).
when the friendly redirects on the process become like this.
1. http post to send the login details to the server
2. on success the server reply back with redirect to the friendly redirect page.
3. then there is another redirect (I think this is meta refresh one) to the home page or whatever the previous page was.
while with friendly redirects off., the process become like the following.
1. http post to send the login details.
2. the server parse the login details, and reply back (on success) with location header to immediately redirect the user to home page.

so I see when you turn it off, the things go faster.
(2008-12-02, 05:01 PM)pepotiger Wrote: [ -> ]
(2008-12-02, 10:22 AM)Yumi Wrote: [ -> ]do a redirect to the home page, but then you're back to the issue of two HTTP requests...
I think you know that (I just post it to correct me if am wrong).
when the friendly redirects on the process become like this.
1. http post to send the login details to the server
2. on success the server reply back with redirect to the friendly redirect page.
3. then there is another redirect (I think this is meta refresh one) to the home page or whatever the previous page was.
while with friendly redirects off., the process become like the following.
1. http post to send the login details.
2. the server parse the login details, and reply back (on success) with location header to immediately redirect the user to home page.

so I see when you turn it off, the things go faster.

MyBB still requires two seperate http request never the less. As it redirects the client from the success page (no output). Only thing that goes faster is the fact that the user have to wait and see the success message, which is probably a good thing for newbies.
I don't really like it myself, so I disabled it.
Pages: 1 2