Simpleviewer and WordPress, let’s do this.
-
I’ve looked and looked trying to integrate WP and SimpleViewer using the Kimili Flash Embed Pugin. There’s a few posts, but nothing that really lays out how it’s done, especially with the recent update of the Kimili plugin.
So let’s solve this! I’m willing to post instructions to the Codex if someone can help me figure this out. Right now, using the available info I pieced together, I can get the Simpleviewer to load in a post, but no images. (The gallery works because it will load outside a wordpress post.) I am using Kimili Flash Embed 1.0 and WordPress 2.0
I know I’m not the only one who wants this…
-
Just to note the reason the kml_flashembed code is different is because the latest version uses the [square brackets] and no closing the tag. The old version used
<regular brackets
and a closing tag.@slambert, thanks for the information.
I installed wordpress (english version) on another domain and only installed the plugin and write a post with the same instructions you gave before. But what a surprise, it’s just not working. ?? even a normal flash file isn’t showing up.
is it possible it has something to do with the host provider?
Thanks for any help
Seville
<script type=”text/javascript”>
// <![CDATA[var flashObject = new FlashObject(“https://afrison.com/simpleviewer/Sevilla/viewer.swf”,”fm_viewer”,”500″,”500″,”6″,”#FFFFFF”,””,”best”,””,””);
flashObject.write(“fo_targ_viewer”);// ]]>
</script>This is the code that the browser is trying to run, but nothing is displaying on the page. The current url path works fine. I pasted the path into a browser and there were no issues.
Has anyone tried to modify the Simple Viewer Admin index.php file? I am going to look into this tonight and see what I can come up with. But maybe there is a way to wrap wordpress around that file ….
if that helps that would be great!
Thanks
Seville
My embedded code looks something like this:
<script language="javascript" type="text/javascript" src="flash_detect.js"><!-- function getFlashVersion() { return null; }; --></script><script language="javascript" type="text/javascript"><!-- var flashVersion = getFlashVersion(); if (flashVersion < 6) { location.replace("upgrade.html"); } --></script>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="720" height="550" align="middle" valign="top">
<param name="movie" value="../viewer.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="wmode" value="transparent" />
<param name="BGCOLOR" value="#AC90CB" />
<param name="FlashVars" value="xmlDataPath=../imageData.xml" />
<embed src="../viewer.swf" width="720" height="550" align="middle" valign="top" quality="high" scale="noscale" bgcolor="#AC90CB" type="application/x-shockwave-flash" wmode="transparent" FlashVars="xmlDataPath=../imageData.xml" pluginspage="https://www.macromedia.com/go/getflashplayer" />
</object>Note the TWO occurrances of “FlashVars” — I believe both cases are needed to ensure the xml data is located properly. In my case, a relative path worked. I think for the general case you’d need to embed the entire local path to the file — but not sure.
Again, all without using any sort of plugin. ??
-d
I came across this … https://ibt-media.com/?page_id=25 .. Doesn’t seem to be the best method though. But its a start. I have been messing with trying to get it all to work on my site by editing the SimpleViewerAdmin …. but alas no luck yet.
thanks for your help.
I tried your code and it suddenly worked in wordpress after I tried it several times. Then I changed just the width and it didn’t work again. I tried it hundred times again and it is frustrating, it’s not working for any reason.
I put your code in a html file and uploaded online. It works fine
https://www.afrison.com/simpleviewer/Sevilla/index2.htm
then I copied the code from my html file into a post of wordpress:
<script language=”javascript” type=”text/javascript” src=”flash_detect.js”><!– function getFlashVersion() { return null; }; –></script><script language=”javascript” type=”text/javascript”><!– var flashVersion = getFlashVersion(); if (flashVersion < 6) { location.replace(“upgrade.html”); } –></script>
<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0″ width=”720″ height=”550″ align=”middle” valign=”top”>
<param name=”movie” value=”https://www.afrison.com/simpleviewer/Sevilla/viewer.swf” />
<param name=”quality” value=”high” />
<param name=”scale” value=”noscale” />
<param name=”wmode” value=”transparent” />
<param name=”BGCOLOR” value=”#AC90CB” />
<param name=”FlashVars” value=”xmlDataPath=https://www.afrison.com/simpleviewer/Sevilla/imageData.xml” />
<embed src=”https://www.afrison.com/simpleviewer/Sevilla/viewer.swf” width=”720″ height=”550″ align=”middle” valign=”top” quality=”high” scale=”noscale” bgcolor=”#AC90CB” type=”application/x-shockwave-flash” wmode=”transparent” FlashVars=”xmlDataPath=https://www.afrison.com/simpleviewer/Sevilla/imageData.xml” pluginspage=”https://www.macromedia.com/go/getflashplayer” />
</object>and suddenly it worked, but just once, after I made a tiny change on the width, it didn’t work anymore ??
https://www.afrison.com/wordpress/
After I saved the post and check the html code again in the post it shows me this:
<script language=”javascript” src=”https://www.afrison.com/wordpress/wp-admin/flash_detect.js” type=”text/javascript”><!– function getFlashVersion() { return null; }; –></script><script language=”javascript” type=”text/javascript”><!– var flashVersion = getFlashVersion(); if (flashVersion < 6) { location.replace(“upgrade.html”); } –></script><object codebase=”https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0″ height=”550″ width=”720″ align=”middle” classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″>
<param value=”19050″ name=”_cx” />
<param value=”14552″ name=”_cy” />
<param name=”FlashVars” />
<param value=”https://www.afrison.com/simpleviewer/Sevilla/viewer.swf” name=”Movie” />
<param value=”https://www.afrison.com/simpleviewer/Sevilla/viewer.swf” name=”Src” />
<param value=”Transparent” name=”WMode” />
<param value=”-1″ name=”Play” />
<param value=”-1″ name=”Loop” />
<param value=”High” name=”Quality” />
<param name=”SAlign” />
<param value=”-1″ name=”Menu” />
<param name=”Base” />
<param name=”AllowScriptAccess” />
<param value=”NoScale” name=”Scale” />
<param value=”0″ name=”DeviceFont” />
<param value=”0″ name=”EmbedMovie” />
<param value=”AC90CB” name=”BGColor” />
<param name=”SWRemote” />
<param name=”MovieData” />
<param value=”1″ name=”SeamlessTabbing” />
<param value=”0″ name=”Profile” />
<param name=”ProfileAddress” />
<param value=”0″ name=”ProfilePort” /></object>its weird that it shows
><script language=”javascript” src=”https://www.afrison.com/wordpress/wp-admin/flash_detect.js” type=”text/javascript”><!–
but I don’t have a flash_detect.js in the wp-admin folder. Why isn’t it https://www.afrison.com/simpleviewer/Sevilla/flash_detect.js
Any suggestions? It is really frustrating, it worked once and not anymore and I tried everything ??
Thanks for helping me
Seville
Guys,
I managed to do it. I’ve posted on my blog a step-by-step.
https://www.amoswong.com/how-to-integrate-simpleviewer-with-wordpress.htmlI used:
1. WordPress2
2. Kimili Flash Embed
3. SimpleViewer 1.7I did it on a page, though. I’ll try to get it done in a post. ??
Woohoo! SimpleViewer is working on both my WordPress pages and blog posts.
WordPress pages example:
https://www.amoswong.com/how-to-integrate-simpleviewer-with-wordpress.htmlWordPress blog post example:
https://www.amoswong.com/paris-in-a-post.htmlnow are you able to do multiple albums with it as the simple viewer admin allows? Also it would be nice if we could figure a way to wrap the wordpress theme around the simple viewer kind of like wpg2 does
FINALLY! I got the error. it was just a little error which I found after I was comparing the source code of my website with source code of other website, which are using simpleviewer already.
[kml_flashembed movie=”/mygallery/mix/viewer.swf” height=”500″ width=”500″ quality=”best” bgcolor=”#FFFFFF” fvars=”xmlDataPath =
<strong>"<strong>
/mygallery/mix/imageData.xml” /]instead it should be
…fvars=”xmlDataPath = /mygallery/mix/imageData.xml” /]
Can you see it? I just had a quotation mark in front of /mygallery… where it shouldn’t be.
Sorry that I messed up the thread, but you all helped me alot.
Seville ??
Here I go again. Ok, the simpleviewer is working, but when I add a second gallery to the same category it only shows the picture of the first gallery in the new post and the old post, where the first gallery should be is empty. Is it not possible to post two galleries?
Hope you can help me again.
Thanks
Seville
Didn’t quite catch your problem.
As far as I could understand from your question, I suppose it is possible to have 2 galleries in a single post. Or are we talking about 2 different galleries in 2 different posts? :pSorry that I didn’t make it clear. I post one Gallery and later I posted another gallery on the website again.
But when I posted the second post, the first post were blank, just the header and in the second post were the gallery of the first post. And the second gallery which should be in the second post didn’t show up at all.
Hope you understand the problem now.
And I have another question, is it possible to have width and height in 100% instead of a fix number. I tried it out and it didn’t work ??
Thanks for helping.
Seville
- The topic ‘Simpleviewer and WordPress, let’s do this.’ is closed to new replies.