| |||
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 |
| ||
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 |
| ||
Level: 105 Posts: 1345/2846 EXP: 12033624 Next: 228636 Since: 02-19-07 Last post: 6065 days Last view: 2803 days |
Posted by KernalBut add confirmation that the post was successfully recieved and posted.
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.
Use a browser that doesn't suck ass. 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 |
| ||
... 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 XkeeperThis should be obvious from seeing the post when it loads, or by there not being an error message displayed.Posted by KernalBut add confirmation that the post was successfully recieved and posted. |
Xkeeper |
| ||
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 |
| ||
... 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 |
| ||
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 |
| ||
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 |
| ||
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 You forget that people in general are stupid. Well, sometimes. :/ ____________________ |
HyperHacker |
| ||
... 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 |
| ||
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 |
© 2005-2023 Acmlm, blackhole89, Xkeeper et al. |
MySQL - queries: 42, rows: 60/61, time: 0.013 seconds. |