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.

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

1

Tuesday, August 23rd 2011, 5:12pm

How to encrypt krpano license ??

Hi guys !
I'm making a new tour with the last krpano tools droplets, and have a problem with the krpano.license.js.
I've try the kencrypt tool but it makes a "krapnoiphone demo version" watermark. *cry*
My js folder contains :
- tour.js (the mobile js)
- swfkrpano.js
- and needs my krpanoiphone.license.js to work, if I remove it adds the watermark.
I don't know how to solve this !! *cursing*
In fact it's always boring when updating to krpano beta !! *wacko*
Can anyone post a clear explanation of how these things work together please ? *g*
Thanks in advance.
Best regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

2

Tuesday, August 23rd 2011, 8:49pm

If you are going to be using the iPhone version it kind of defeats the purpose to protect the flash version since the JavaScript files can't or shouldn't be put into kprotect. If you want to just update the swf and .js files, there is an updater tool although I can't remember if it was included in the last tools beta package. The kprotect tool was only designed for the flash version and was around before iThings were able to show panoramas. The js viewer is an entirely different viewer that works/can work with the XML files we have become accustomed to using. You could create your own XML for the .js viewer if you wanted but you can't protect it or the license with kprotect. You can use the created .js that you get after you process an image with one of the latest tools. It embeds your license into the .js. This allows you to only host that .js file and not put your actual license online.

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

3

Wednesday, August 24th 2011, 9:28am

Hi Jarredja!!
Thank you for your reply;-)
I'll test it today^^
have another question about licenses,
It seems that the js needs a web connection to check it out,
That's a real pb for offline using in web app...
Have we any issue here?
Best regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

4

Wednesday, August 24th 2011, 9:55am

Hi,

right, the current file encryption is only for files that will be loaded by the krpano Flash viewer,

beside of this here more explanation about the files:

there are these 'core' files:
krpano.swf - the krpano Flash Viewer
krpanoiphone.js - the krpano iPhone/iPad Viewer
swfkrpano.js - the embedding script

and there are these viewer license files:
krpano.license - the license for the krpano Flash Viewer
krpanoiphone.license.js - the license for the krpano iPhone/iPad Viewer

when using the MAKE PANO or MAKE VTOUR droplets with the default settings then all ".js" files will be merged together into one single ".js" file (e.g. to a "tour.js"), and the krpano.swf and the krpano.license will be merged together to a new .swf file (e.g. a "tour.swf"),

that means: (e.g. when using the MAKE VTOUR droplet)
krpano.swf + krpano.license => tour.swf
swfkrpano.js + krpanoiphone.license.js + krpanoiphone.js => tour.js

and that further means:
- either use the swf and js files with the embedded licenses and scripts
- or use the core files and the external licenses

Quoted

It seems that the js needs a web connection to check it out,
no, that's not true.

Best regards,
Klaus

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

5

Thursday, August 25th 2011, 11:16am

Hi again ^^
Thanks Klaus for the reply, that's really clear now ^^
Sorry for the miss mess I thought that the license was checked up via network,
but if not it's really cool !!!
I'll post later when my web app is finished so you can see what possibilities offers the offline process
using krpano js viewer ^^
Best regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

6

Thursday, August 25th 2011, 2:46pm

Hi again ^^
Have another problem here with the tour.js file ^^
I have made the last beta update for krpano viewer and tools to use the combobox.js and gyro.js.
When using the normal krpanoiphone.js, krpanoswfobject.js and krpano.license.js it works fine, but replacing it with the tour.js makes
a weird thing with the combobox plugin...
Here's a screenshot of it:

See the combobox is pretty small and doesn't show the fields in it...
An idea maybe ?
Thanks in advance for your patience I'm getting crazy with these !
Best regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

7

Wednesday, August 31st 2011, 9:25pm

Hi,

this is bug in the current combobox.js when using the native combobox and filling the box via additem calls,
a workaround would be adding - native="false" - to the combobox <plugin> definition,

best regards,
Klaus

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

8

Thursday, September 1st 2011, 11:48am

Hi again ^^
I allready test the native="false" attribute to the combobox.
I think that the problem is here:

Quoted

When using the normal krpanoiphone.js, krpanoswfobject.js and krpano.license.js it works fine, but replacing it with the tour.js makes
a weird thing with the combobox plugin...

And don't know what messes up...
I found an alternate solution with .htaccess to protect my license, and made a rule to authorize only the html calling page.
But that's very embarassing...
I'm working on it hoping I could make it work properly ^^
PS : That would be great in future release to have a tour.js update tool when the license already embedded in it ^^
Thanks again!

Here's my code if you can have an idea:
XML:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	<style name="combobox" devices="desktop|flash" url="swf/combobox.swf" alturl="js/combobox.js" native="false" /> 
	<style name="combobox" devices="iphone"        url="js/combobox.js" cbdesignscale="auto" cbfont="Arial" cbfontsize="auto" cbfontstyle="normal" cbpadding="8" itemfont="Arial" itemfontsize="16" itemfontstyle="normal" itempadding="10" />
	<style name="combobox" devices="ipad"          url="js/combobox.js" cbdesignscale="auto" cbfont="Arial" cbfontsize="auto" cbfontstyle="normal" cbpadding="8" itemfont="Arial" itemfontsize="16" itemfontstyle="normal" itempadding="10" />
	
	<plugin name="cb" style="combobox" align="righttop" x="10" y="10" keep="true">
		<item name="item1" caption="Entrée" onclick="loadscene(scene_pano1,null,MERGE,BLEND(1));" />
		<item name="item2" caption="Séjour" onclick="loadscene(scene_pano4,null,MERGE,BLEND(1));" />
		<item name="item3" caption="Suite Parentale" onclick="loadscene(scene_pano2,null,MERGE,BLEND(1));" />
		<item name="item4" caption="Chambre 2" onclick="loadscene(scene_pano5,null,MERGE,BLEND(1));" />
		<item name="item5" caption="Etage" onclick="loadscene(scene_pano6,null,MERGE,BLEND(1));" />
		<item name="item6" caption="Salle de Bains" onclick="loadscene(scene_pano3,null,MERGE,BLEND(1));" />
	</plugin>
	
	<plugin name="settings" style="combobox" align="leftbottom" x="10" y="10" keep="true">
		<item name="drag2d" caption="Glisser Déplacer" onclick="set(control.mousetype,drag2D); set(control.touchtype,drag2D); selectnameditem(settings);" />
		<item name="moveto" caption="Regarder" onclick="set(control.mousetype,moveto); set(control.touchtype,moveto); selectnameditem(settings);" />
	</plugin>


And HTML:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<script src="tour.js" type="text/javascript"></script>

	<div id="pano"> 
		<noscript> 
			<div id="align_centre"> <br/> 
				<b>Attention:</b> <br/> 
				<br/> 
				Javascript is not activated. <br/> 
				<br/> 
				Please activate it to see the virtual tour <br/> 
				<br/> 
			</div> <!-- end of align_centre --> 
		</noscript> 
	</div> <!-- end of krpanoDIV --> 


	<script type="text/javascript"> 
		var viewer = createPanoViewer({swf:"tour.swf", id:"krpanoSWFObject", target:"pano"});
        //viewer.useHTML5("always");
        if( viewer.isDevice("iPhone|iPod|iPad") )
        {
            viewer.addVariable("xml", "phone.xml");
            viewer.addVariable("showErrors", "false");  
            viewer.embed();
        }
        else
        {
            viewer.addVariable("xml", "flash_tour.xml");
            viewer.addVariable("showErrors", "false");  
            viewer.embed();
        }
	</script>


@++
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

9

Thursday, September 1st 2011, 12:18pm

Hi again again !!
I said something wrong, now it doesn't work anymore with the method I was talking about...
What the f... !
*confused*
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

10

Thursday, September 1st 2011, 11:12pm

Hi,

Quoted

When using the normal krpanoiphone.js, krpanoswfobject.js and krpano.license.js it works fine, but replacing it with the tour.js makes
a weird thing with the combobox plugin...
then it might be a version problem, maybe your tour.js is from a different version (e.g. from 1.0.8.12)...

PS : That would be great in future release to have a tour.js update tool when the license already embedded in it ^^
Thanks again!
the 1.0.8.14 version includes an update tool:
krpano 1.0.8.14

the tour.js is just the swfkrpano.js + krpanoiphone.license.js + krpanoiphone.js added togehter,

best regards,
Klaus

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

11

Wednesday, October 12th 2011, 6:40pm

Hi Klaus !
Got the same problem again :'(
I really don't understand... It isn't a version problem...
I've just dropped my panos in the last updated krpanotools MAKEVTOUR(normal), and added the combobox.js plugin,
but the combobox behaves the same way till I put all my krpanofiles (krpanoiphone.js+swfkrpano+krpano.license.js) in the HTML page.
Here's a link so you can see :
CLICK HERE
All the files are reachable in the root folder.
It's very annoying cause the last time I had to let the krpano.license.js on the server, and I don't like that ^^
Thanks again and hoping we could solve this.
Best regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

12

Friday, October 14th 2011, 6:43pm

Up Please !!

Hi.
I beg you please to give a hand with this problem, it isn't the first time and I can't understand why it's doing this !
I don't host my tours myself so I'm obliged to share my license on other servers and that sucks !!
Somebody please ?!
Thanks in advance !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

13

Saturday, October 15th 2011, 4:02am

Do you have your licenses in the tools folder, in the exact same folder as the tools, before you run a panorama through it? This should embed it all in the .swf and .js files without hosting them separately on your server.

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

14

Monday, October 17th 2011, 9:26am

Hi Jarredja !
Thanks for replying !
Yes I have all my licenses in the krpanotools folder, for proof the iPhone version works, but the problem is with the combobox javascript plugin,
it appears like in the screanshot in my previews post...
When adding the unprotected js everything works fine...
I use the latest update of Krpanotools though...
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

15

Tuesday, October 18th 2011, 10:58am

Hi,
When adding the unprotected js everything works fine...
I use the latest update of Krpanotools though...
there can technically no difference between the single and the merged files,
so I still think you were using an old or mixed version,

try to run the "krpano Update Tool" and open there the ".swf" and ".js" files from your tour,

best regards,
Klaus

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

16

Friday, October 21st 2011, 11:40am

Hi again again ^^
Thanks a lot for replying ^^

I've already updated my tour files, but I just did it again to be sure...
Downloaded the beta of tools, droped another pano in the vtour droplet, and replaced the existing ones be the new ones...
Same error !!
Also tested to update the tour.js and the tour.swf with the krpanoupdate, same bug...
I tried to put all the js files and swf files in the root folder of my tour, same bug...
I tried also to remove one of the two comboboxes in my xml, thinkng about a conflict, but same bug again...
I'm running out of ideas for solving that...
The fact is that the tour works fine, maybe the combobox plugin and gyro ?!
I know it's making no sense but I'm not that noobie and really can't solve this !!
My only thinking is that maybe it doesn't work on my version of iPhone, I have the old 3G model with the version 4.2.1...
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

17

Friday, October 21st 2011, 11:57am

Okay I've just downloaded the last version of the combobox plugin, indeed now I've got an error message :
ERROR: combobox plugin - too old krpano version version (min. version 1.0.8.14 / build 2011-05-19)
But the tool version is 2011-04-11, there not a newer release right ?
So if I'm not so dummy I have to use the same build released for the two things, viewer and tools, wich is 2011-04-11 ?
But that was the ones I was using before...
*confused* *confused* *confused*
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Tuur

Sage

Posts: 3,327

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

18

Friday, October 21st 2011, 1:56pm

well we are now at build 2011-10-14) .. look at the download page!

You should update all... plugins, js, etc etc..

tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

19

Friday, October 21st 2011, 3:46pm

Oh my GOOOODDDD ^^
I'm really gonna think I'm stupid *whistling*
Now it works ^^
Sorry to have disturbed you all with that !
The fact is that I was using the last beta of the tool, but not the same as the js plugins :-/
I'm on 1.0.8.14 / build 2011-10-14 and all works great !
But does this version loads well on iPhone version 4.3.4 ?
Cause I was using the last beta cause of the problem on this version, the cubes faces loaded on the iPod where those for iPad, making crash the tour on iPod.
This viewer build handle this problem ?
Thanks again and have a nice day !!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Similar threads