Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,509,531
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 05-02-24 01:44 AM
Guest: Register | Login

0 users currently in Help/Suggestions/Bug Reports | 1 guest

Main - Help/Suggestions/Bug Reports - A better way of redirection. New thread | New reply


Kernal
Posted on 04-16-07 01:49 PM Link | Quote | ID: 27236

Gone
Level: 88

Posts: 1416/1881
EXP: 6465083
Next: 185581

Since: 02-20-07

Last post: 6152 days
Last view: 6142 days
I see this board uses a method of redirection that requires "Click here if you aren't redirected in X seconds" type screens. These are annoying as they add time to the posting process, require the server to create another HTML page, and break the back button with "This page contains POST data that has expired" etc. My failed board system used another method of redirection that didn't require such screens:

function redirect($url)
{
header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/' . $url);
die();
}

Could something like that be used here? I remember the above having problems with slashes sometimes, there might be an extra one up there.

Xkeeper
Posted on 04-17-07 02:15 AM Link | Quote | ID: 27469


Level: 105

Posts: 1345/2846
EXP: 12033624
Next: 228636

Since: 02-19-07

Last post: 6065 days
Last view: 2803 days
Posted by Kernal
I see this board uses a method of redirection that requires "Click here if you aren't redirected in X seconds" type screens. These are annoying as they add time to the posting process,
But add confirmation that the post was successfully recieved and posted.


require the server to create another HTML page,

Which places no extra strain on the server. Doing what you say would require rewriting most of reply.php to remove the header generation call and place it at the first chanec it could be added without breaking redirection.


and break the back button with "This page contains POST data that has expired" etc.

Use a browser that doesn't suck ass.


My failed board system used another method of redirection that didn't require such screens:

function redirect($url)
{
header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/' . $url);
die();
}

Could something like that be used here? I remember the above having problems with slashes sometimes, there might be an extra one up there.
I am well aware of this method of redirection (ever tried clicking the mark forum read links?)

However I do not see any sort of gain from doing this other than lowering the time it takes to post something, which shouldn't matter at all if you actually put effort into posting. Three seconds don't kill you.

____________________
I dealt with it.

HyperHacker
Posted on 04-17-07 05:44 AM Link | Quote | ID: 27538

...
Level: 73

Posts: 400/1220
EXP: 3368300
Next: 117568

Since: 03-25-07
From: no

Last post: 6097 days
Last view: 6080 days
Posted by Xkeeper
Posted by Kernal
I see this board uses a method of redirection that requires "Click here if you aren't redirected in X seconds" type screens. These are annoying as they add time to the posting process,
But add confirmation that the post was successfully recieved and posted.
This should be obvious from seeing the post when it loads, or by there not being an error message displayed.

Xkeeper
Posted on 04-17-07 06:22 AM Link | Quote | ID: 27549


Level: 105

Posts: 1351/2846
EXP: 12033624
Next: 228636

Since: 02-19-07

Last post: 6065 days
Last view: 2803 days
Cache.

____________________
I dealt with it.

HyperHacker
Posted on 04-17-07 07:20 AM Link | Quote | ID: 27563

...
Level: 73

Posts: 404/1220
EXP: 3368300
Next: 117568

Since: 03-25-07
From: no

Last post: 6097 days
Last view: 6080 days
What about it?

Xkeeper
Posted on 04-17-07 03:12 PM Link | Quote | ID: 27606


Level: 105

Posts: 1353/2846
EXP: 12033624
Next: 228636

Since: 02-19-07

Last post: 6065 days
Last view: 2803 days
It will often display an old version of the page sans reply.

Hence needless questions as "WHERE IS MY POST?!!!?".

(This has happened quite often on "Consumerist", too, I've noticed)

____________________
I dealt with it.

Ailure
Posted on 04-17-07 08:47 PM Link | Quote | ID: 27659

Hats
Steam Board2 group
Level: 121

Posts: 640/3965
EXP: 19787963
Next: 268733

Since: 02-19-07
From: Sweden, Skåne

Last post: 3307 days
Last view: 2058 days
Dosen't that depen on browser/cache settings though?

I don't see that happening often with Firefox (at least with the settings I currently have) but sometimes it did with IE. Not really a big issue either way as a quick refresh solves that issue.

____________________
AIM: gamefreak1337, MSN: Emil_sim@spray.se, XMPP: ailure@xmpp.kafuka.org


Darkdata
Posted on 04-17-07 08:53 PM Link | Quote | ID: 27661


Mole
Level: 43

Posts: 176/366
EXP: 554965
Next: 10081

Since: 02-19-07
From:

Last post: 6131 days
Last view: 6129 days
Posted by Ailure
Dosen't that depen on browser/cache settings though?

I don't see that happening often with Firefox (at least with the settings I currently have) but sometimes it did with IE. Not really a big issue either way as a quick refresh solves that issue.


You forget that people in general are stupid. Well, sometimes. :/

____________________

HyperHacker
Posted on 04-19-07 07:33 AM (rev. 2 of 04-19-07 07:34 AM) Link | Quote | ID: 27971

...
Level: 73

Posts: 422/1220
EXP: 3368300
Next: 117568

Since: 03-25-07
From: no

Last post: 6097 days
Last view: 6080 days
There's either a bug in Opera, a flaw in the board's design, or both, because I've used boards that do it this way and never had such a problem. Why would cache cause a problem when newreply.php redirects to the thread, but not when it redirects to a page which redirects to the thread? It doesn't make sense.

Acmlm
Posted on 04-19-07 07:51 AM Link | Quote | ID: 27975


Flurry
Level: 37

Posts: 213/251
EXP: 315177
Next: 23076

Since: 02-19-07
From: Mirabel, Québec, Canada

Last post: 6185 days
Last view: 1818 days




Flurry
#&postrank&
It wouldn't for either, because it redirects to the post with a post specific URL


But I still don't mind the redirect page, it gives better confirmation that it worked and it's also easier to code that way ... changing the redirect HTML (meta tag) to an instant redirect won't work if the page isn't empty, and since this would have to be done everywhere for consistency, it'd complicate things ...

____________________

Main - Help/Suggestions/Bug Reports - A better way of redirection. New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.018 seconds. (321KB of memory used)
MySQL - queries: 42, rows: 60/61, time: 0.013 seconds.