File-Hunter.com lay-out issue / Frames / HTML5

Page 2/5
1 | | 3 | 4 | 5

By ren

Paragon (1215)

ren's picture

15-09-2017, 11:29

That's very nice of him. Was thinking myself of offering my services if you needed any help to get started.. Anyway, if you've gotten rid of that 170x loose .html files madness I'm happy Wink

I believe there's no need for the current existing URLs to stop working, with some/a proper set up redirect rewrite rule(s) that can be done.
I bet Sandy can help with that as well Wink (ask him, I guess you'd prefer to keep them, or don't you care much about it?)

By tfh

Paragon (1767)

tfh's picture

15-09-2017, 11:37

ren wrote:

That's very nice of him. Was thinking myself of offering my services if you needed any help to get started.. Anyway, if you've gotten rid of that 170x loose .html files madness I'm happy Wink

I believe there's no need for the current existing URLs to stop working, with some/a proper set up redirect rewrite rule(s) that can be done.
I bet Sandy can help with that as well Wink (ask him, I guess you'd prefer to keep them, or don't you care much about it?)

I'd love to keep them, so... I've just checked if my webserver has this function, and it has:

https://aprelium.com/abyssws/articles/urlrewriting-tutorial....

I'll have to dive into that a bit later to see how it works exactly and if I can use it for my goal :)
In the meantime you can see the current solution here: http://www.file-hunter.com/MSX/index2.php. Still adding games though ;-)

By ren

Paragon (1215)

ren's picture

15-09-2017, 12:06

Ah yeah cool. A lot of URL rewriting tutorials van be found on the webs, but that page might suffice already Smile

Looking good, and the search-box is cool/handy! (something more or less exactly like that I had in mind for your layout as well.. Wink)
Would be extra nice if it would remain visible when you're scrolling down.. Wink

Now what you want is not to loose your position in the left column when you select a game.
You could use pjax (or similar) to realize that (only updating content in right column) (option #3 from my list).
Otherwise you could resort to using a bit of JS on page load. But that's rather hacky/ugly - you probably will see the left column jumping to the position every time..

By tfh

Paragon (1767)

tfh's picture

15-09-2017, 17:35

So, it's done.. More or less ;-) All the games have been transfered and i've put the new page online. If you run into any problems, please let me know Smile
http://www.file-hunter.com/MSX

And again a big thank you to Sandy!

By ren

Paragon (1215)

ren's picture

15-09-2017, 21:00

Yeah, and big thank to the other people that gave you input and/or tried / were willing to help you out.. Wink

Grauw wrote:

Option 2 would not have nice links to individual games, unless you specifically add support for it, but that's tricky and can easily break for various edge cases and in various browsers (from experience, and I see that very often). Keeping it simple and plain is better imo.

Of course these techniques are all around us for a while now / are part of every JS router library out there (part of framework or not). Do you really see it break that often? That would invalidate a lot of sites / web apps out there?

By santiontanon

Paladin (807)

santiontanon's picture

15-09-2017, 21:32

Very cool!!! and indeed, thanks everyone who helped! I find myself playing in file-hunter.com quite often these days rather than launching the emulator locally Smile

By tfh

Paragon (1767)

tfh's picture

15-09-2017, 22:21

santiontanon wrote:

Very cool!!! and indeed, thanks everyone who helped! I find myself playing in file-hunter.com quite often these days rather than launching the emulator locally Smile

Well, that's just the idea. It's a way to give the people a way to quickly play a game without much effort. And now you can play them online a bit easier, also on a mobile device Smile So if you are underway and bored, you can now play a nice MSX game on your phone.

If there are certain games you would like me to add, please feel free to post a request ;-)

By ren

Paragon (1215)

ren's picture

16-09-2017, 12:33

Quote:

[...] + thank you guys for your input (and offering to help) as well!

Hey, you're welcome!

I'm not sure you caught my drift earlier: I'm a bit annoyed by the fact you only thank (and kiss) Sandy, and not the people in this thread (well, just thanking would suffice then, thank you Wink) that gave you input and were willing to help you out (myself included of course).

You're not really communicating - not responding on suggestions given, like reporting back on the solution you ultimately chose regarding rewriting or redirecting. (It looks like you chose to update all existing .html files with a meta redirect? You could have realized that in a much smarter way (and just get rid of those files), but whatever, it works right?)

You just conclude this with "I'm done." Well congratulations, good for you. (It's not just about you and your site dude.)

Being annoyed does say something about myself of course, but I hate it when you offer stuff / make an effort / reach out, and the other party seems to take it for granted or something, or (what looks like) being inattentive. Makes me regret making an effort. (But I'm sure I'm not flawless as well.. Wink)

I really don't want to make a big issue out of this, or go into prolonged discussion (I feel I already said too much). I'm sure you're unaware of 'harm' done Wink

By tfh

Paragon (1767)

tfh's picture

16-09-2017, 13:52

Hi Ren,

First of all, I'm sorry: it wasn't my intention to hurt your feelings. Of course I am very happy that you and others have shared their ideas with me and invested their time to help me to solve the issues I was running into. And the reason why I forgot to thank the rest in here? I don't know. I also asked for help somewhere else (Dutch) and I did thank the persons there. Maybe I was a bit to overwhelmed with the solution in my maibox? Or I simply forgot? Ot thought that I did it already? No idea. It certainly wasn't on purpose.

As for your question about the redirects: Since the original filenames weren't always the (complete) names of the games, it would mean that with the current solution the alphabetic list would be compromised. I could (probably?) introduce another variable which would be used for the alphabetic sorting, but I am quite a n00b when it comes down to programming.

By ren

Paragon (1215)

ren's picture

19-09-2017, 17:20

Hey tfh, sorry for the late reply.

Thanks for your response, no problem Wink
I guess some other factors also contributed to my annoyance.

Regarding the redirects: I thought the reasoning would be like you're explaining.
Now the games all reside under index.php?id=gamename. Not very ugly, but it isn't really pretty either Wink

I guess you mean the new id's don't match the old URL's .html file name? You could use a 'mapping' array then. Using a rewrite rule you could pass the part of the request URI between MSX/ and .html to index.php (or another PHP file).

But hey, it's all hobby stuff, so we should take it easy Wink

(ps. and why isn't Pyramid Warp on your site yet?? ;))

Page 2/5
1 | | 3 | 4 | 5