Check out our Monthly Survey Page to see what our users are running.
[FIXED] 404 after post preview twice
Page: 1/2»
  Go to:
ripper Mar 10, 2016
If I want to post a comment to an article and hit Preview twice, I get
" Game Over! This is not the page you where looking for...404 Not Found oh noes! You may have followed an old link from the old website."
And the URL is very weird (see "{:url}index.php" in it):
https://www.gamingonlinux.com/%7B:url%7Dindex.php?module=articles_full&go=comment

The same happened if I previewed once and then wanted to submit.

Of course, all your typed in content gets lost :/
Liam Dawe Mar 10, 2016
Fixed thanks for that.

Previewing now uses a new method, no more page changes just a hidden preview section appears.
ripper Mar 10, 2016
Thanks.
tuubi Mar 10, 2016
Thanks. This is much better.

But let me nitpick a bit: The way the preview element scrolls to the top of the browser window every time is a bit... annoying for an obsessive previewer like me. Maybe only scroll if the element isn't already visible and find some other way to highlight the change if necessary?

And now that you're only using dynamic js-voodoo, adding preview functionality to the forums as well would be appreciated. By me at least. ^_^
Liam Dawe Mar 12, 2016
Quoting: tuubiThanks. This is much better.

But let me nitpick a bit: The way the preview element scrolls to the top of the browser window every time is a bit... annoying for an obsessive previewer like me. Maybe only scroll if the element isn't already visible and find some other way to highlight the change if necessary?

And now that you're only using dynamic js-voodoo, adding preview functionality to the forums as well would be appreciated. By me at least. ^_^

Trouble is that's not all that easy to do, but I will look into it.

I can easily put it on the forum too though.
tuubi Mar 12, 2016
Quoting: TheBoss
Quoting: tuubiThe way the preview element scrolls to the top of the browser window every time is a bit... annoying for an obsessive previewer like me. Maybe only scroll if the element isn't already visible and find some other way to highlight the change if necessary?

Trouble is that's not all that easy to do, but I will look into it.
Sorry, I shouldn't assume. But I know I've implemented something very similar with js/jquery in the past, so it's not impossible. Especially if you use one of the many available plugins to check if the element is inside the current viewport. A simple visual indication (like the jquery UI "highlight" effect) should be sufficient to indicate that the preview was updated in case there's no need to scroll.

Quoting: TheBossI can easily put it on the forum too though.
Great to hear. Keep up the good work. :)
Liam Dawe Mar 12, 2016
Okay it should work better now, please tell me what you think. It scrolls to it only if not on screen, and highlights it.
Liam Dawe Mar 13, 2016
Quoting: ysblokjeNow I got 404's

https://www.gamingonlinux.com//home/gamingonlinux/public_html/forum/topic/2027?page=1#6533

was in my last email.

Should now be fixed.
ysblokje Mar 13, 2016
Indeed !

thx again
tuubi Mar 14, 2016
Awesome. Works (almost) perfectly. A tiny bug: If you add new lines of content to your post and click preview for the second time, only the original content is highlighted. I assume they're not added to the preview element in the DOM yet when the highlight effect fires. Also the preview is sometimes only partially scrolled into view.

(Sorry if I'm being annoying.)
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.

Buy Games
Buy games with our affiliate / partner links: