soulwire / WTFEngine

An HTML / CSS / JavaScript template for creating WhatTheFuckIsMyMashup.com style web sites
http://blog.soulwire.co.uk
MIT License
684 stars 130 forks source link

My version of the WTF Engine is not working #25

Closed Nuku closed 8 years ago

Nuku commented 8 years ago

http://whoismypony.ponyfinder.net/ is failing with a Access-Control-Allow-Origin. My attempts to remedy have failed entirely. Any help at all would be appreciated.

Nuku commented 8 years ago

XMLHttpRequest cannot load https://docs.google.com/spreadsheets/d/1URWEIVmdt8owVTJ94d0qUCEvdgFZPlW8Jw1FGq56CYs/pub?output=csv. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://whoismypony.ponyfinder.net' is therefore not allowed access.

soulwire commented 8 years ago

Please see #24

Google unfortunately have changed the way published sheets worked. Is it possible for you to download your spreadsheet and host it yourself, using one of the other init methods?

Looking into how to work around this change to docs!

Nuku commented 8 years ago

What is the easiest way to get my spreadsheet out into a file that can be reached by wtf?

tjvonp commented 8 years ago

I just manually wrote it out into the JSON format. Might be tedious, but it got the job done for www.wtfplans.com

On Tue, Oct 13, 2015 at 5:42 PM, David Silver notifications@github.com wrote:

What is the easiest way to get my spreadsheet out into a file that can be reached by wtf?

— Reply to this email directly or view it on GitHub https://github.com/soulwire/WTFEngine/issues/25#issuecomment-147862467.

soulwire commented 8 years ago

@Nuku just about to push an update that should fix this issue so you don't have to change anything!..

Nuku commented 8 years ago

@soulwire Alright! Thanks!

soulwire commented 8 years ago

Ok, give that a try. All you should have to do is replace your wtf.js with the latest and see if that works. It's a quick fix so not thoroughly tested but data is coming through ok for me with the test spreadsheet.

Nuku commented 8 years ago

Ok! It didn't get stuck in loading, but it's showing the default data?

Nuku commented 8 years ago

Fixed!

Nuku commented 8 years ago

Many thanks!

soulwire commented 8 years ago

Cool - yeah it looked like what was published at your link was the default data (https://docs.google.com/spreadsheets/d/1URWEIVmdt8owVTJ94d0qUCEvdgFZPlW8Jw1FGq56CYs/pub) what's your spreadsheet key?

Nuku commented 8 years ago

Where is this 'key' located?

On Tue, Oct 13, 2015 at 3:18 PM, Justin Windle notifications@github.com wrote:

Cool - yeah it looked like what was published at your link was the default data ( https://docs.google.com/spreadsheets/d/1URWEIVmdt8owVTJ94d0qUCEvdgFZPlW8Jw1FGq56CYs/pub) what's your spreadsheet key?

— Reply to this email directly or view it on GitHub https://github.com/soulwire/WTFEngine/issues/25#issuecomment-147870295.

soulwire commented 8 years ago

It'll be the string you pass to the init method: WTF.init( 'key' );. Looking at your source code it's 0AvG1Hx204EyydF9ub1M2cVJ3Z1VGdDhTSWg0ZV9LNGc - is that loading the correct data for you? When I load it it has the default data in it.

Nuku commented 8 years ago

It looks to be working right for me now? 1XTuzrWzLtfvb_gQocHK-6PIBKdbhAU_aYnsT3ddrbVs

On Tue, Oct 13, 2015 at 3:22 PM, Justin Windle notifications@github.com wrote:

It'll be the string you pass to the init method: WTF.init( 'key' );. Looking at your source code it's 0AvG1Hx204EyydF9ub1M2cVJ3Z1VGdDhTSWg0ZV9LNGc - is that loading the correct data for you? When I load it it has the default data in it.

— Reply to this email directly or view it on GitHub https://github.com/soulwire/WTFEngine/issues/25#issuecomment-147870861.

soulwire commented 8 years ago

Great, yeah that's working when I load it locally too. Glad it's fixed! :)

Nuku commented 8 years ago

Thanks again for the speedy fix!

On Tue, Oct 13, 2015 at 3:26 PM, Justin Windle notifications@github.com wrote:

Great, yeah that's working when I load it locally too. Glad it's fixed! :)

— Reply to this email directly or view it on GitHub https://github.com/soulwire/WTFEngine/issues/25#issuecomment-147871746.

soulwire commented 8 years ago

No problem. You reminded me I needed to sort this bug so thanks for filing the issue and sorry your site was broke for a little while.