Closed jonwgeorge closed 10 years ago
Same thing here, but I also tried with the developer install. It definitely is trying to work, but like jon said, nothing happens past the initial connect
jonwgeorge, it looks like an old build is cached on our CDN. When I open a post on your blog (http://www.jonwgeorge.com/what-is-open-source-and-why-should-you-care/) I see the error from the cached file.
If you append ?v=1
to the end of http://cdn.goinstant.net/external/ouija/latest/ouija.min.js
you should bypass the cache (https://cdn.goinstant.net/external/ouija/latest/ouija.min.js?v=1
).
Let me know if that works out for you.
strues, this same thing may apply to you as well.
I'll give it a shot using that instead of the file from the repo here. My blog is at https://www.himynameissteve.com/
Doesn't look like that solved the problem for me. I wasn't aware my content was cached. I'm on Ghost(Pro) so that probably explains it.
As a side note, when I head to my GoInstant dashboard, I'm seeing data being populated back in the form of users for each post.
@colinmacdonald it's possible in @jonwgeorge case that his theme is atypical... It looks like the content on his blog is in a sub-section with class post-excerpt
. I wonder if Ouija is just failing to find his content?
The themes being used by both jonwgeorge and strues are not supported by Ouija ATM :(.
@colinmacdonald @mattcreager Since mine is a custom theme, what modifications should I make to make it compatible? Or can I help in anyway with making Ouija compatible with my type of theme?
I made the switch to Casper and it appears that everything is working as intended now. I'm wondering the same thing as @jonwgeorge I dont mind messing around and breaking a few things on my end as the blog is still being developed
@strues, @jonwgeorge what if we offered a simple configuration option you drop into config/ouija.json
that provides a specific content destination id? aka: #my-article-content
?
@mattcreager that could definitely work, at least in my case, it should just be looking for a section tag with the id of 'articles'.
@mattcreager that would mean I would have to host those files myself, rather than loading all from your CDN correct?
@jonwgeorge nope, we'll push a fix to the CDN too!
Ouija's first fix, how exciting :)
@mattcreager haha! If I can be of any assistance in the process, just let me know. I'm excited to see what ya'll do with Ghost and Ouija.
@jonwgeorge So far: just break things.
@colinmacdonald is in the process of adding that option override right now. Long term, we'll need to make finding the content auto-magically more magical.
@jonwgeorge is the theme you're using publicly available?
@colinmacdonald nope. but give me a few minutes and I'll put it up for you.
@colinmacdonald here you go https://github.com/jonwgeorge/ghost-theme
Thanks!
@colinmacdonald Please let me know when I can test this change.
@jonwgeorge You should be able to test out the new ouija_article_content
option using v0.1.1
.
Under window.ouija_identifier
in default.hbs put window.ouija_article_content = '.post-excerpt';
.
This will let Ouija know where to put the comment blocks. There will still be some styling kinks that need to worked out (as you will see). @ntassone will be able to give some insight into what's needed there soon.
@jonwgeorge since your blog is a custom theme, you'll require some custom css to get Ouija exactly how you want it. I'm working on making a better reset for Ouija that will allow for more consistency across more types of themes. See #22.
I checked out your blog repo and was able to get Ouija working with a few lines of custom CSS I put in style.css
. Wherever you end up putting the custom CSS just make sure it's after ouija.css
.
Custom styles: https://gist.github.com/ntassone/1e16ebaa55e48fb39a30
@colinmacdonald So will I need to download v0.1.1
or can I pull it from the CDN?
@ntassone thank you!
This is why the world loves @ntassone :+1:
@jonwgeorge you can pull it from the cdn, https://cdn.goinstant.net/external/ouija/v0.1.1/ouija.min.js and ouija.min.css
Awesome!! You guys are great. Time to start playing around.
Going to close this, feel free to reopen if you're still having issues @jonwgeorge
I know Ouija is not quite ready for production use, but I like to play with code. I used the quick install guide to get Ouija up and running but it doesn't seem to do anything on my ghost install. I see it connecting in the Javascript Console, but no elements are added to my page.
Did I miss something?
Edit: You can see my blog here.