You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2010-06-06 03:48:12

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2713
Website

[APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

APT 1.1 beta 7 using (with KRPANO unlimited domain license / krpano license).

If I use not the default Interface templates, but my own created templates e.g. gk1-navigation-fullscreen-rotation.xml
AND one custom HTML template
than the swfobject folder is not created by APT and opening final html results in error "Flash player 9 needed"

if I use default templates (html and for interface template) all works fine (swfobject folder will be created by APT...)

Liebe gruesse,
Georg

Offline

 

#2 2010-06-07 09:11:16

jpdeglet69
Member
From: Geneva and Lyon
Registered: 2010-05-20
Posts: 72
Website

Re: [APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

Hello,

Yes, same problem with customized java template under Mac OS.

JPhD


Best Regards,
JPhD
Website

Offline

 

#3 2010-06-14 08:25:21

b4de4nd
Member
Registered: 2010-06-14
Posts: 19

Re: [APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

this happens to me regardless of what template i use...

but i dont have an krpano license.. maybe thats an issue as well... but thats to be solved today : )

Offline

 

#4 2010-06-16 11:07:12

Adrien F
Moderator
Registered: 2009-07-03
Posts: 267

Re: [APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

You have to be sure to create a folder with the same name as your html template in the same directory. If this template includes javascript calls to krpano, make sure to include the swfobject/ folder into the folder you created.

Example:
I made my html template called "myTemplate.html", calling the visit with javascript via "./swfobject/swfkrpano.js", and referencing some "default.css" stylesheet file :

Code:

<html>
    <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 
        <title>Virtual Tour generated by Autopano Tour</title> 
        <link rel="stylesheet" type="text/css" href= "default.css"> 
    </head> 
    <body>
        <h1>$(TITLE)</h1>
        <div id="tour">
            <noscript>ERROR: no Javascript</noscript>
        </div>
                    
        <script type="text/javascript" src="./swfobject/swfkrpano.js">
        </script>
                    
        <script type="text/javascript">
            var swf = createswf("$(SWF)", "aptSWFObject", "640", "480");
            //swf.addVariable("xml", "pano1.xml");                            //uncomment this line to load another xml first
            swf.embed("tour");
            
            if ( so.write("tour") )
            { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
        </script>
    </body>
</html>

In the end I should put into the html template folder:
myTemplate.html
myTemplate/default.css
myTemplate/swfobject/
myTemplate/swfobject/swfkrpano.js

APT will export the content of the myTemplate/ folder at the same place the visit is exported. Replacing the macro $(PROJECTNAME) by the name of the visit, and $(SWF) by the name of the swf file ( $(SWF) =  $(PROJECTNAME).swf ).

If this does not solve your problems, repost here and I will check if this is a bug.

Offline

 

#5 2010-06-16 11:31:37

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2713
Website

Re: [APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

Dear Adrien,

thanks for pointing out the way to go....
I'll check this with my templates today evening and if this is the solution I'll update the templates from wiki...
Georg

Offline

 

#6 2010-06-16 23:15:32

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2713
Website

Re: [APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

Dear Adrien,

I verified your solution. This works as you described it....

reviewing your Code example I notified you wrote

Code:

<link rel="stylesheet" type="text/css" href= "default.css">

Code:

<script type="text/javascript" src="./swfobject/swfkrpano.js">

but with "default installation of latest APT beta 1.1.0.beta 7 no *.css file can be found in none of the default template folders
C:\Program Files\Kolor\Autopano Tour\Templates\html\java ... \javaDomainLicence nore in ...\javaWithFullScreen

and under ./swfobject no swfkrpano.js can be found (in none of the default folders. Instead swfobject.js and swfkrpanomousewheel.js can be found.

Georg

Offline

 

#7 2010-06-21 09:33:33

Adrien F
Moderator
Registered: 2009-07-03
Posts: 267

Re: [APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

Those files don't appear in the default menu template of APT beta 7 and earlier. Later version will generate standard web pages, include a default css and the latest krpano javascript script.

Still, I was in the hypothetical case of a user using his own "myTemplate" template. In this case nothing prevents him from adding a css and joining both krpano js script into one file (as it is the case in latest versions of krpano).

So my example remains valid, even if it does not correspond to default installation at beta 7 time.

Offline

 

#8 2010-06-22 15:40:06

gkaefer
Member
From: Salzburg
Registered: 2009-06-09
Posts: 2713
Website

Re: [APT 1.1.0 b7] Flash Player 9 needed - error - if custom template used

ok - clear now.
Georg

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson