Patreon Logo Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal Logo PayPal. You can also buy games using our partner links for GOG and Humble Store.
Title: [FIXED] 404 after post preview twice
ripper 10 Mar 2016
  • Supporter
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 10 Mar 2016
Fixed thanks for that.

Previewing now uses a new method, no more page changes just a hidden preview section appears.
ripper 10 Mar 2016
  • Supporter
Thanks.
tuubi 10 Mar 2016
User Avatar
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 12 Mar 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 12 Mar 2016
User Avatar
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 12 Mar 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 13 Mar 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 13 Mar 2016
Indeed !

thx again
tuubi 14 Mar 2016
User Avatar
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.)
Rhythagoras 14 Mar 2016
Getting a 404 error when trying to add a new thread to the Native Linux Gaming forum...

https://www.gamingonlinux.com/home/gamingonlinux/public_html/index.php?module=viewforum&forum_id=10&message=queue
Liam Dawe 14 Mar 2016
Quoting: RhythagorasGetting a 404 error when trying to add a new thread to the Native Linux Gaming forum...

https://www.gamingonlinux.com/home/gamingonlinux/public_html/index.php?module=viewforum&forum_id=10&message=queue
That should be fixed.

Also guys, please keep all issues to different topics if you can (I realise this one was a special case).
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon Logo Patreon. Plain Donations: PayPal Logo 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