Bug in 'Additional files downloads'?

Broken link? Feature request? Anything related to the Spectrum Computing website here.
Post Reply
User avatar
Juan F. Ramirez
Bugaboo
Posts: 5101
Joined: Tue Nov 14, 2017 6:55 am
Location: Málaga, Spain

Bug in 'Additional files downloads'?

Post by Juan F. Ramirez »

Just noticed that some game entries, like this:

https://spectrumcomputing.co.uk/index.php?cat=96&id=481

display the same files repeatedly twice, three or more times, it depends of the game: Six adverts, six inlays, ...

I don't think it's a browser issue. I'm using Chrome, and it happens both in Android and Windows versions.
User avatar
R-Tape
Site Admin
Posts: 6353
Joined: Thu Nov 09, 2017 11:46 am

Re: Bug in 'Additional files downloads'?

Post by R-Tape »

Whoa! That's new. The guys were working on the site the last couple of evenings, must be a side effect of that.

Thanks for pointing it out.
User avatar
PeterJ
Site Admin
Posts: 6854
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Bug in 'Additional files downloads'?

Post by PeterJ »

Hi [mention]Juan F. Ramirez[/mention] . Thanks for reporting this. I have been making some changes to that section and I must have an issue with my SQL. I will fix over the weekend.

Peter
User avatar
PeterJ
Site Admin
Posts: 6854
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Bug in 'Additional files downloads'?

Post by PeterJ »

I had a flash of inspiration (It does not happen often) and fixed it quicker than planned. Thanks again for reporting it [mention]Juan F. Ramirez[/mention]
User avatar
R-Tape
Site Admin
Posts: 6353
Joined: Thu Nov 09, 2017 11:46 am

Re: Bug in 'Additional files downloads'?

Post by R-Tape »

Nice one Peter. Was this the problem?

LET A=Beachheadinlay
FOR B=0 TO 3
PRINT A
NEXT B
STOP
User avatar
Juan F. Ramirez
Bugaboo
Posts: 5101
Joined: Tue Nov 14, 2017 6:55 am
Location: Málaga, Spain

Re: Bug in 'Additional files downloads'?

Post by Juan F. Ramirez »

R-Tape wrote: Thu Jan 18, 2018 5:41 pm Nice one Peter. Was this the problem?

LET A=Beachheadinlay
FOR B=0 TO 3
PRINT A
NEXT B
STOP
That's what I suspected!
User avatar
R-Tape
Site Admin
Posts: 6353
Joined: Thu Nov 09, 2017 11:46 am

Re: Bug in 'Additional files downloads'?

Post by R-Tape »

Indeed, in fact thinking about it Peter - you could drop the loop all together as we only need one iteration of 'PRINT Beachheadinlay'.

Hope that helps :D
User avatar
4thRock
Manic Miner
Posts: 415
Joined: Thu Nov 09, 2017 9:35 am
Location: Portugal

Re: Bug in 'Additional files downloads'?

Post by 4thRock »

Actually, the PHP code is not that different :lol:
User avatar
Juan F. Ramirez
Bugaboo
Posts: 5101
Joined: Tue Nov 14, 2017 6:55 am
Location: Málaga, Spain

Re: Bug in 'Additional files downloads'?

Post by Juan F. Ramirez »

4thRock wrote: Fri Jan 19, 2018 9:30 am Actually, the PHP code is not that different :lol:
And here I thought the SC maintenance system was something like this:

Image

;) :lol:
Post Reply