You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, March 12th 2009, 2:27am

KRPano with Joomla on XAMPP with JUMI

As if the Subject isn't confusing enough...

Here is my issue and I'm hoping someone has encountered this before. I am trying to incorporate KRPANO into Joomla 1.5 (Graydon) has been a huge help, but right now I am working on the site locally using "XAMPP", once complete I'll upload it.

Anyways, using JUMI I can get the PANO to load I keep getting the "Javascript not activated" error. No matter what dir I place my "swfobject" files in I am unable to access it. Does anyone have any experience with this.

I've put them in every possible location, and I've used every combination of dir changes to find them and nothing. "/", "../", "../", "../../"...

Thanks...

2

Thursday, March 12th 2009, 9:36am

code direct

first of all you must install jce 1.5 editor.
second enabled the php and javascript tag.
use html module and copy the code of your flash object as usually done for the html page.
in the head of the index.php insert the link to the swfobject folder.
i've solved the problem and anythink work correctly.
hope this can help you..

3

Friday, March 13th 2009, 12:46am

Well thanks for the info, I've gone ahead and installed JCE 1.5 (Editor - JCE 1.5.2).

Can you explain what you mean by "enabled the php and javascript tag".

4

Friday, March 13th 2009, 4:32pm

allow php and javascript

in the jce administrator - control panel - global configuratione in the selectbox of allow Javascript and allow PHP set yes both..
so after you copy and paste in the module php tag and javascript tag will not erase after update.
you must change a little bit the orginal code,
this is my code:

<div id="krpano" style="width: 100%; height: 100%;"><strong>Please install Flash® and turn on Javascript.</strong></div>
<script type="text/javascript"><!--
// <![CDATA[


var root='images/path_to_your_folder/'
var so = new SWFObject(""+root+"krpano.swf", "krpanoSWFObject", "740", "500", "9.0.28","#ffffff");
so.addParam("allowFullScreen","true");
so.addParam("base",""+root+"");
so.addVariable("pano", "your_file.xml");
so.useExpressInstall(""+root+"swfobject/expressinstall.swf");
so.setAttribute('xiRedirectUrl', window.location);
if ( so.write("krpano") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
// ]]>
// --></script>

add var root to make easy path.
images = joomla/folder but you can put everywhere

root add to original file..

this will work.. !!

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

5

Friday, March 13th 2009, 5:24pm

If you want to code directly, then I don't think JCE or other 3rd party wysiwyg editor is needed just for the ability to include code without it being stripped.

On 1.5x you can change the HTML filter to allow pretty much anything.

reference... http://docs.joomla.org/Why_does_some_HTM…ersion_1.5.8%3F
and... http://docs.joomla.org/Screen.content.15…ions_.28HTML.29

I tested it out a long time ago and I am pretty sure that if you remove the filter from the superadmin... then it allows you to use code in articles however you want.

Also to be aware of is that if you have 1.5.7 or earlier and then upgrade to 1.5.8... there was a bug that turned on filtering for everyone... even blocking what the editors would allow. It's been fixed in 1.5.9 per the site information.

Where Jumi comes into play is that it doesn't matter what html filters and editors you use... you can just put a single jumi plugin line in your content and keep on going.

In Jay's case... (using jumi) the html filters wouldn't be an issue.

Either route should work... it's just a matter of personal preference on inserting code in every article... or using a plugin like jumi that allows you to change one instance of code and have it flow through your entire site... for example... I changed the basic layout of my articles and gave them a lot more room. Using jumi, I just changed my source code to adjust the embed width / height... and it effected every single pano on the site. Otherwise I would have had to edit every article.

HOWEVER... I think there's a more fundamental challenge with using XAMPP and figuring out the correct folder structure / syntax so that the swfobject.js can be found and utilzed.