I recently made my blog on Blogger compatible with LaTeX using one of the many solutions you can find by just searching how to do this on google. However, this solution doesn't apply to the comments to posts on Blogger.
The solution I am using is the one given by the first answer in this post https://tex.stackexchange.com/questions/13865/how-to-use-latex-on-blogspot
Is there a way of getting the comments on Blogger to render/compile LaTeX/MathJax?
I am currently using google+ comments on my blog and I am having trouble setting up a different commenting format to try and get LaTeX to work with the comments.
Google+ comments are inserted via an iframe, see http://googlesystem.blogspot.de/2013/04/blogger-comments-powered-by-google.html?m=1
This means you will not be able to inject JavaScript from the surrounding page. In particular, you cannot get MathJax support in the comments.
Related
Right now im building a simple html/css site for a friend. The homepage is a series of grid block divs that hold some content.
There are currently 3 block divs we have marked for social media posts. So for example, he wants his latest tweet to appear in one of those divs. His latest instagram post to appear in another and facebook in the last.
We can ignore facebook for the time being as I'm only focusing on the twitter/instagram for now.
I'm struggling with where to begin for this project. In the past I have only embedded twitter timelines, Instagram posts using widgets etc....nothing too complicated.
But for this project I will need separate stripped down posts, ie: just the plain text from his tweet inside the twitter div. The image from his Instagram post as the background image on the Instagram block etc...
I've spent the last few hours trying to get my head around oEmbed, and I can safely say I'm failing miserably.
I'm actually more confused now then before I started, so if any kind soul could give me a dummies guide to how I can approach this, that would be absolutely amazing.
Thank you!
You can acheive a single embedded tweet using an embedded timeline.
To get just one tweet, use the data-tweet-limit attribute on the embed tag, as detailed here:
https://dev.twitter.com/web/embedded-timelines/parameters
For example:
<a class="twitter-timeline" href="https://twitter.com/TwitterDev" data-widget-id="some_id" data-tweet-limit="1"></a>
According to twitter's documentation, that is the recommended way of getting tweets onto websites. From your description of the use case, I'd highly recommend just using Twitter's official widget.
If you really want to use Twitter's REST API and generate your page server side, I'd check out this stack overflow question as a starting point:
Setting up Twitter API, getting the last few Tweets
Hope that helps!
I'm working with rails at the moment and Ive come across the problem of my users having posts with external links, I would like the link to be automatically generated. I have no idea of where to even start, I have googled, and searched on stackoverflow but I cant seem to find anything. It may be that I just don't know how to search this specific topic.
Use auto_link or Rinku gems. They can scan string and replace urls with <a></a> block
I am trying to get twitter feeds in to my shopify site. I want to get the feeds and style them as I want and thus cant use a app.
I know how to do it using PHP but can not use that code in shopify and looking for a way I can use OAuth in shopify and get the feeds. I tried the shopify docs but without an example its kinda hard to actually get my head around it.
http://docs.shopify.com/api/tutorials/oauth
Thats the link I am using as a guide. If anyone can direct me to an example which might be similar that would be awesome. (google didnt seem to be that helpful this time either)
Cheers
I know you said you didn't want to use an app, but can I suggest taking a look at Twitify? You can use custom CSS to style your tweets. Also see discussions about Twitify here and here.
Twitter changed their display guidelines and policies on embedding of tweets on websites in June 2013. One of the themes I used for a client earlier in the year had custom styling of tweets, and they have now changed it to use the official Twitter widget to meet the new guidelines. In fact, the images on the Shopify theme store show how it used to look before Twitter changed things:
And after:
I think using an app like Twitify would be the easiest way to deal with these changes to embedding tweets.
Thanx for the suggestion. I did take a look at that before I posted this question. This is a project for a client and I dont think getting a plug in is a viable option. Anyways I found a work around.
Hosted the file on a server and then accessed it. So that resolved the problem. :)
I used node.js to write the script and get the posts as required.
Cheers.
you can use the app for that Twitify https://apps.shopify.com/twitify or you can Embed a Twitter feed in your online store
Go to your Twitter settings.
Click Widgets to open the widgets menu.
Create a new widget, following Twitter's instructions.
Copy the embed code.
I'd like to format maths equations using MathML, with LaTeX-like syntax, in my blog posts hosted by Google Blogger; but references, on Google's site and elsewhere, to articles on how to conveniently do this seem non-existent.
The few articles I've found, on MathML generally, presupposes one can control the contents of an entire page, for example putting tokens in the "<html>" tag, which I don't think applies to Google Blogger.
The best site I've found is Ionel Alexandru's code at http://www.fmath.info/ But even there the documentation is very sparse and it isn't obvious how one would use his
scripts/packages for this.
Maybe I'm just being thick. But surely people must be using MathML in Google Blogger, and if so I'd be very interested in references to how it can best be done (preferably via an XML solution rather than dozens of little inline images in the text !)
Failing that, are there standard "register and start blogging" facilities/sites other than Google Blogger that make it easy to use MathML or where it is available as standard?
Cheers
John R Ramsden
I've written a javascript module, jqmath, to do what you want. See http://mathscribe.com/author/jqmath.html.
Instructions on how to use it in Google Blogger are at http://mathscribetheblog.blogspot.com/2011/03/jqmath-in-blogger.html.
By the way, those instructions do have you edit your <html> tag, which Google Blogger happily let me do. (I just did it to add a MathML namespace prefix for the MathPlayer plugin for Internet Explorer, so actually things would work ok, but less well, without it.)
I hope you like this. If you have any problems, post the link to your blog, and I'll take a look at it.
I use Peter Jipsen;s script, modified a bit, to get mathml into blogger
http://dpcarlisle.blogspot.com/2007/04/testing-interface.html
It seems the most wellknown is Math jax? MathJax
I would like to create a blog where my Twitter updates essentially create blog posts, with a comment thread. If there isn't blog software that does this right now (I did some searching but couldn't find the commenting aspect) what would be the simplest approach and starting blog software to do this?
Potentially an alternate approach to this would be a blog interface that could auto-update my Twitter feed with the title text.
Whatever the solution, I'd like it to be fully automated so that it is roughly no more work than currently updating my Twitter feed using the Twitter web interface. Note: I'm also interested in 'normal' blog posting via the default blog web admin interface.
If you would like to use Wordpress, you can use the Twitter Tools plugin.
"Pull your tweets into your blog and create new tweets on blog posts and from within WordPress."
Each tweet/blog post would automatically have comments enabled.
Good luck man,
Brian Gianforcaro
You could use something like Tumblr or Sweetcron with Disqus comments. You can auto-import your Twitter/Flickr/any RSS feed. You can also post text/audio/video from the site admin. You'll have to manually add Disqus comments, but then each post or Twitter message will have its own threaded comments.