Page 1 of 1

snapshot function, tour access - workaround and feature request

Posted: Wed Oct 23, 2019 10:11 am
by wiso
hello,

panotour pro has two plugins which would be very useful for me,

the first which is an "screensho, postcard, snapshot..." plugin:

https://360images.fr/snapshot_demo_ptp/tour.html

to send snapshots and webadress of the tour to an email adress.


the second is a password protection for the tour:

http://dev.alexpopov.me/touraccess


has someone an idea for a workaround ?

best regards,
wiso

Re: snapshot function, tour access - workaround and feature request

Posted: Thu Oct 24, 2019 5:36 pm
by Hopki
HI wiso,
Lock Screen.
This uses the Skin Configuration Button so you can set a password before you create the output.
If no password is set then there is no lock screen.
The keypad generates the number and also uses # and *.
You can even add letter keys if you wish as the variable I am using is the text variable.
But in my example, it just using a standard number pad.

Now I know you're going to say, but if you look in the skin.js file you will see the password and this would be true and simple to crack.
So you would need to adopt something like the Caesar cypher, but not just shift the numbers.
As said as I am using a text variable you could change the Set variable value action to letters. At the moment they are numbers.
So you would make up your own cypher, as an example:
H = 1
O = 5
P = 3
K = #
I = 4
So in the password, you enter HOPKI, but the viewer would enter 1, 5, 3, #, 4.
So if anyone looks into the skin.js file, it won't do them any good unless they have your cypher.
All they will see is HOPKI,

Snapshot, we did play with this a while back but some browsers don't let you download the image.
Try this, Copy to clipboard.
This captures the node and view that your user is seeing.
Then they can paste the copied URL in a post or e-mail.
When clicked the link opens the tour with the same node and view.
For this to work, you need Direct Node Access selected in the normal.ggt.

In the attached example once opened navigate to a panorama and zoom. Then click the Copy button.
Paste to a document then open the link, bingo you should see the same node with the pan, tilt and FoV setting.
Let me know what you think.
Regards,
Hopki

Re: snapshot function, tour access - workaround and feature request

Posted: Fri Oct 25, 2019 12:00 am
by wiso
hi hopky,
first thank you for both solutions!

the procedure with the lock screen i do not understand in the moment, but i try it tomorrow...

where i have to write in the password? in what variable, in what place in the skin? i could not find it?!
Skizze (157).png
Skizze (157).png (78.6 KiB) Viewed 3762 times
the "copy link" solution is a useful and mainly a good example for java script use.
but , in private, the panotour plugin is much more elegant and it has picture + link to send... but it is at it is, and it has not a so big importance for me - it could be a good gimmick to sell for my customers.

thank you for your effort,

wiso

Re: snapshot function, tour access - workaround and feature request

Posted: Fri Oct 25, 2019 10:49 am
by soulbrother
wiso wrote: Fri Oct 25, 2019 12:00 am the procedure with the lock screen i do not understand in the moment, but i try it tomorrow...

where i have to write in the password? in what variable, in what place in the skin? i could not find it?
As far as I can see, the password is 1 2 3 4
and you can see that password in the skin.js

Hopki mentioned a possible "upgrade" with a more complex and "soft"-kryptic method, but that is not integrated in this example.

In other words:
If you change the password in the skin from 1234 to WISO
and if you modify the actions in the text fields (in the skin editor), than you have your own kryptic password ;-)

Re: snapshot function, tour access - workaround and feature request

Posted: Fri Oct 25, 2019 11:54 am
by wiso
hallo soulbrother,
thank you for help,
If you change the password in the skin from 1234 to WISO
but where? where can i change it?

i found the pw in the skin.js
Skizze (158).png
Skizze (158).png (131.7 KiB) Viewed 3730 times
but in the skin.js it makes no sense to change it. where is the place i have to put "wiso" (instead of "1234") in?

thx,
wiso

Re: snapshot function, tour access - workaround and feature request

Posted: Fri Oct 25, 2019 12:31 pm
by soulbrother
Hopki did it well, I just detected in detail, what he created:

Just klick on the "Edit Skin Configuration" button and a small window opens, where you can set your password!

Re: snapshot function, tour access - workaround and feature request

Posted: Fri Oct 25, 2019 4:48 pm
by wiso
oh , well. now i see!

thank you soulbrother.

but now for the practical application:

i took the three skin components and copy them in the component-library.
then i past it in my project.
K1600_Skizze (159).JPG
K1600_Skizze (159).JPG (80.44 KiB) Viewed 3709 times
and the output worked on first time. but in this case there is no "Edit Skin Configuration" button to change the password. and i could not open the lock screen.
Skizze (161).png
Skizze (161).png (1.07 MiB) Viewed 3709 times
what have i to do?

thx,
best regards,
wiso

Re: snapshot function, tour access - workaround and feature request

Posted: Fri Oct 25, 2019 8:05 pm
by soulbrother
Hi,
usually I would not copy and paste, but I would save as component.

And after that, I would integrate this password-lock-function in my existing skin, from the components.

If there is no "Edit Skin Configuration" button, maybe not all of the informations have been copied correctly, so I would try the way via components.

And of course you can see in the skin, if the password enter field should be available in the "Edit Skin Configuration":
Look at your screenshot, there has to be a hook in the "Expose" column:
wiso wrote: Fri Oct 25, 2019 12:00 am Skizze (157).png
So you can check, if this hook is activ in your updated skin, if yes, the password-enter-window should popup, when you klick "Edit Skin Configuration"

Re: snapshot function, tour access - workaround and feature request

Posted: Fri Oct 25, 2019 8:31 pm
by Hopki
Hi Guys,
I made a better one: viewtopic.php?f=22&t=14039#p58979
It's a bit bigger so easier for mobiles.
The post also has lots more information.
Regards,
Hopki

Re: snapshot function, tour access - workaround and feature request

Posted: Fri Oct 25, 2019 11:49 pm
by wiso
thank you soulbrother, thank you hopki
now it works fine!

greetings from vienna,
wiso