QUICK NEWS

{NEW} - A new css video is up.

{OLD} - New video courtesy of Skhilled, Thanks for posting it up.

Video of the moment:


Internal Links

SMF Sites

Quick Info

Direct file links from website to website

Started by Dave, Sep 29, 2025, 08:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dave

Quote from: Skhilled on Oct 04, 2025, 09:25 AMI was going to mention something about the email delays. Thanks.

Just got an email now for a post made by Nesa...not sure which one though as Skhilled's post was the last one. I've just remembered why I didn't notice the issues with emails on my site, it's because I'm using SMTP, so I have no issues  ;D

Skhilled


Dave

Back on topic  ;)

The following code works for the remote file linking

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin 'www.davejohnson.co.uk/'
    Header set Vary "Origin"
    Header set Access-Control-Allow-Methods "GET, HEAD"
    Header set Access-Control-Allow-Headers "Content-Type, Authorization"
</IfModule>

I mentioned it to Chen and he posted the code above adding the 'Header set Vary "Origin"', now the remote link works to play the game, I still can't get it to use a subfolder though, even adding the subfolder name to the code above and the link in the game itself.

Never mind at least now the wildcard has gone making the site a little more secure


Neša

Great work, at least we know now what was missing.
have you tried using a subdomain maybe games.davejohnson.co.uk? Create one in cpanel and move the games there?


Dave

Quote from: Neša on Oct 07, 2025, 05:41 PMGreat work, at least we know now what was missing.
have you tried using a subdomain maybe games.davejohnson.co.uk? Create one in cpanel and move the games there?


I haven't, but I will try it and let you know

Dave

Quote from: Neša on Oct 07, 2025, 05:41 PMGreat work, at least we know now what was missing.
have you tried using a subdomain maybe games.davejohnson.co.uk? Create one in cpanel and move the games there?

No that didn't work. I'm not worried about it now. If anyone knows what's wrong then it would be good to know.

Skhilled

Dave, I haven't played with the arcade in awhile. But, in the image in the 1st post, it has a directory, "AdvanceGuardiansHerosUSA". I don't see that directory in the https://www.davejohnson.co.uk/test/. Unless the directory is in the settings somewhere?  :dontknow

There has to be a difference between the 2 packages somewhere.

Dave

#37
Quote from: Skhilled on Oct 08, 2025, 05:33 PMDave, I haven't played with the arcade in awhile. But, in the image in the 1st post, it has a directory, "AdvanceGuardiansHerosUSA". I don't see that directory in the https://www.davejohnson.co.uk/test/. Unless the directory is in the settings somewhere?  :dontknow

There has to be a difference between the 2 packages somewhere.

Hi Skhilled,

I had removed the file in the root of DJ as it stopped working again for some reason, it's back there again now. The file in the 'test' folder, which is still there is 'Advance_Guardians_Heros_USA.gba' when I was messing with the whole thing I renamed the file and took out the underscores and put it in the root to see if it made any difference but it didn't. It still only works with the wildcard, Chen's additional code snippet has either stopped working or it never did and the reason I thought I got it working might have been that I didn't clear the cache on the browser or similar

I'm walking away from that now as no matter what I do nothing seems to work consistently, I'll probably revisit it later when I'm not so busy with life as I am right now

Skhilled