How to include Goswf in Blogger?
The problem with popular blog systems is that you can't upload SWF or SGF files. Usually you can only upload images files. Fortunately, Koji, from Kids, Chess & Go, has found a technique for embedding Goswf in a Blogger blog by using sites.google.com.
In summary:
- create a google site.
- click on More Actions/ Manage Site, and then click on Attachments.
- upload goswf.swf (located in goswf.zip)
- upload your game (for example "myGame.sgf")
- In your blog editor, write the following HTML code (replace yourSiteName and myGame.sgf with proper names)
<EMBED src="http://sites.google.com/site/yourSiteName/goswf.swf"
flashVars="url=myGame.sgf"
width="440" height="600"
type="application/x-shockwave-flash"></EMBED>
- And voila! Normally, It should work...
Notes:
- this method only works with a Blogger blog. If you use a different blog system, Google site will detect it (!!!) , and won't display goswf.swf correctly
... The solution is that you must store goswf and your SGF files either on your blog system, either on your own server. Then your HTML code should look like:
<EMBED src="http://www.myHosting.com/goswf.swf"
flashVars="url=myGame.sgf"
width="440" height="600"
type="application/x-shockwave-flash"></EMBED>
- the goswf.swf path must be an absolute path (including "http://"), but the sgf path can be relative (without "http:") to the goswf.swf location.
- IMPORTANT: because of Flash security restrictions, the SGF file must be located on the same server as goswf.swf file.
- colors "bg" and "nav" are not specified in the above HTML, see below for more information on colors.
- For subsequent posts, you will only need to upload the new SGF file and re-use your HTML code with the new SGF file name.