You are not logged in.

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


#1 2012-12-11 00:01:04

Virtuel Rundtur
Member
From: Denmark
Registered: 2011-07-08
Posts: 30
Website

Shadowbox in virtual tour

Hi forum

I have a customer who need to show an external page in a shadowbox in their virtual tour.

I have struggled to get it to work, but with no luck in the version of krpano as PanoTour Pro uses.

I've found this link http://virtualtuur.com/shadowboxtest/ on krpano's forum where a user has created exactly what I want. I just can not get it to work :-(
I have tried everything from modifying the swfkrpano.js file to changing the html and xml files, but nothing works.

This is the link to the description at krpano forum: http://krpano.com/forum/wbb/index.php?p … #post36534

If there is someone who is fresh at making a small guide for how it's done, or if you have input and ideas are very welcome.

I am sure this is a feature a lot of us can use. In this way you can embed youtube videos, flipbook pdf's, online booking formulars etc. without leaving the tour.

Thanks in advance

Cheers big_smile

Henrik

Last edited by Virtuel Rundtur (2012-12-11 00:02:08)


-----o o-----
Virtuel Rundtur
1st class Virtual Tours
http://www.rundtur.dk

Offline

 

#2 2012-12-11 02:26:11

Gund
Member
Registered: 2012-10-26
Posts: 68

Re: Shadowbox in virtual tour

Totally understand you Henrik I also desperatly need to know how to do it.
I can only suppose that you have to assign a Javascript function to a hotspot and put the shadow box script in you html with the tour. (and of course put the shadowbox into the tour folder)
They thing I do not know - is what exactly should be written in tour's html and waht code is responsible for activating a shodowbox from a panorama hotspot (this is definetly not rel="shadowbox")

Offline

 

#3 2012-12-11 09:52:28

bdd
Administrator
Registered: 2011-01-18
Posts: 622
Website

Re: Shadowbox in virtual tour

You can look at the HTML code of the virtual tour linked by Henrik.
The code is quite simple :

Code:

<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
    troubleElements: ["select", "canvas"]
});

function openShadowbox(content, player, title){
    content = content.replace(/'/g, "");
    player = player.replace(/'/g, "");
    title = title.replace(/'/g, "");
    
    Shadowbox.open({
        content:    content,
        player:     player,
        title:      title
    });
}
</script>

The future version of Panotour Pro will include directly a plugin that will enable the display of a box over the tour. You will not need to code anything then.
This box will fit all the needs explained in Henrik's post.

Gérald

Offline

 

#4 2012-12-11 10:12:36

Virtuel Rundtur
Member
From: Denmark
Registered: 2011-07-08
Posts: 30
Website

Re: Shadowbox in virtual tour

Hi Gerald

I am sure that PTP 2.0 will be everything that i am looking for, and after a e-mail from Alexandre a few days ago, i am getting even more excited!

But in the meanwhile i must try to handle my customers needs in other ways...(not to be missunderstood :-)

Do you know how to trigger the shadowbox from PTP. What should I write in the JS form under hotspots?

I guess im also having zorder or transparency problems, but i am not sure...

Cheers

Henrik

Last edited by Virtuel Rundtur (2012-12-11 10:14:29)


-----o o-----
Virtuel Rundtur
1st class Virtual Tours
http://www.rundtur.dk

Offline

 

#5 2012-12-11 10:39:57

bdd
Administrator
Registered: 2011-01-18
Posts: 622
Website

Re: Shadowbox in virtual tour

If the JS function that opens the shadowBox is the above "openShadowBox", then in the JS field of the hotspot, you should enter something like that :

Code:

  openShadowbox(http://rundtur.dk/toppano/index1.html, iframe, a title)

Gérald

Offline

 

#6 2012-12-11 10:59:21

Virtuel Rundtur
Member
From: Denmark
Registered: 2011-07-08
Posts: 30
Website

Re: Shadowbox in virtual tour

SUCCESS !!!!!!

Finally got it working! big_smile

My bad. It was flash blocking to execute external site from my local pc.

Uploaded it to my web server, and it worked fine!

I will call my customer with the good news!!!!

Thank you Gérald for excellent support!!!

I will make a small tutorial later to share with other "not so skilled programmers" :-)

Cheers

Henrik


-----o o-----
Virtuel Rundtur
1st class Virtual Tours
http://www.rundtur.dk

Offline

 

#7 2012-12-11 14:31:17

Gund
Member
Registered: 2012-10-26
Posts: 68

Re: Shadowbox in virtual tour

It works!!!!
All I can say is - I love you bdd Adnministrator)

Offline

 

#8 2012-12-17 19:58:39

Gund
Member
Registered: 2012-10-26
Posts: 68

Re: Shadowbox in virtual tour

Oh and does anyone know why if you set wmode="transparent" or wmode="opaque" the tour gets kind of jerky and slow - can it be somehow fixed. Unfortunately this shadowbox variant doesn't work properly withput wmode="transparent" or wmode="opaque"command so deleting it is not anoption

Offline

 

#9 2012-12-18 11:26:35

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2417
Website

Re: Shadowbox in virtual tour

This is a fact, but why are you allowing the auto pano while viewing the contents of a shadowbox anyway.. You really need to pause before viewing, especially when viewing video.. It will also depend on your PC or Mac  and the type of media being viewed too..

What I would like to see with the new ptp V2 when set to auto rotate, is an option to automatically pause the rotate while viewing media content like a video or slideshows in a shadowbox window.. It then restarts rotating automatically when the shadowbox is closed.. This will avoid the issue..

It will probably not be an actual shadowbox with V2 anyway, but it will be a similar box opening, so it might have similar issues.. I tend to set my VR with shadowbox media content to pause automatic rotate... I  cannot wait to see what V2 will bring us...

I have been getting emails from easy pano for over a year suggesting that their Tour software is almost there.. To be honest, it looks tacky so when they finally get it all working, I cannot see it standing up against kolor ptp V2... My advise to anyone if easy pano is released before ptp V2, is to most defiantly hold off buying it since it will not be long before ptp V2 is available for beta testing....

This test of mine uses two options, one in a shadowbox and the other is a JavaScript call... They both work really well but if I set the pano to auto rotate, it might get jerky... Like I said above, it does depend on the media being viewed but it still best to pause before viewing other media..

http://members.westnet.com.au/dps/js/co … ltour.html

Destiny..

Gund wrote:

Oh and does anyone know why if you set wmode="transparent" or wmode="opaque" the tour gets kind of jerky and slow - can it be somehow fixed. Unfortunately this shadowbox variant doesn't work properly withput wmode="transparent" or wmode="opaque"command so deleting it is not anoption


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#10 2012-12-19 18:40:29

Beru
New member
Registered: 2012-12-19
Posts: 2

Re: Shadowbox in virtual tour

Hi Guys,
Allright so here is my situation:

I have a panotour VT embed into a html page with hotspots that are to display content of another html page in a shadowbox.
This example is what im trying to achieve

http://virtualtuur.com/shadowboxtest/

I have this javascript function on the page where the VT is embed :

<script type="text/javascript">
function openShadowbox(content, title){
    Shadowbox.open({
        content:    content,
        title:      title
    });
}
</script>

How do I call my function in Hotspot properties in panotour?

Ive tried like : openShadowbox(toppano/page1.html, a title) , openShadowbox('toppano/page1.html', 'a title'),  the same with "onclick=" at the beginning...

How do I write it?When I click on the hotspot nothing happens

Im developing it locally on Wamp.. I've allowed my Wamp folder, the panotour folder in Global Security Settings panel of Flash player..still doesn't work..

The shadowbox works coz Ive tried it with a normal <a> link

I really need some help on that! Thanks

Offline

 

#11 2012-12-19 20:52:52

Gund
Member
Registered: 2012-10-26
Posts: 68

Re: Shadowbox in virtual tour

First you need to assign a javascript to a hotspot. Wrtie         openShadowbox(1.html, iframe, a title)         change only 1.html to the desired link. Than write exactly the same cpde that is written in the 3rd post of this thread by bdd Administrator in your virtual tour .html. (the script you wrote above doesn't even have links to shadowbox.js and css). - copy the shadowbox files directly into the folder with your virtual tour .html.
Upload you tour to a web-server as the JS does not work on a local host (make sure you have written the domain name in the tour properties - otherwise it will give you a license error). Well you wrote that you allowed the domains and you use web-emulators instead of the web-server so that is probably not the issue.

Offline

 

#12 2012-12-19 23:39:52

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2417
Website

Re: Shadowbox in virtual tour

Hi..

I have given the shadowbox a miss to avoid issues with video.. A shadowbox is great for many things since its rock solid.. With video however, it does tend to cause some small issues.. I am currently experimenting with placing the Streaming YouTube directly into the pano.. Since there is no shadowbox, you can drag it where you want too.. http://members.westnet.com.au/dps/js/Yo … uTube.html It works on my iPod too so it should be fine with an iPad.. cool

Destiny..


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#13 2013-04-12 07:39:57

JonathanT
New member
Registered: 2013-04-10
Posts: 7

Re: Shadowbox in virtual tour

Hi Forum,

I'm also stuck with this.

In my case I want to actually display a HTML file in the shadowbox to act as a fact sheet on the particular part of the tour.

I've followed the instructions from the 11th post of this thread and my shadowbox opens, but the HTML tour referenced does not display.

The following is what is in the Javascript field of the hotspot properties:

Code:

openShadowbox(test.html, iframe, a title)

test.html is also located in the same folder as my virtualtour.html file.

The following is what I added in the head tag of the virtualtour.html file (I've also tried it in the body tag with no difference in result).

Code:

<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
    troubleElements: ["select", "canvas"]
});

function openShadowbox(content, player, title){
    content = content.replace(/'/g, "");
    player = player.replace(/'/g, "");
    title = title.replace(/'/g, "");
    
    Shadowbox.open({
        content:    content,
        player:     player,
        title:      title
    });
}
</script>

The result is that when I click on the hotspot it opens the shadowbox but doesn't display anything in it (it's just black).

Any ideas where I'm going wrong?

Also can anybody advise what code I need to add (and where) to pause the auto-rotation when the shadowbox opens, and then start it again when the shadowbox closes?

As you've probably gathered by now I'm not a coder so any advice is appreciated.

Thanks
Jonathan

Offline

 

#14 2013-04-13 18:27:41

Virtuel Rundtur
Member
From: Denmark
Registered: 2011-07-08
Posts: 30
Website

Re: Shadowbox in virtual tour

Did you remember to upload it to a web server, or else it wont work....

Cheers

Henrik


-----o o-----
Virtuel Rundtur
1st class Virtual Tours
http://www.rundtur.dk

Offline

 

#15 2013-04-14 04:06:26

JonathanT
New member
Registered: 2013-04-10
Posts: 7

Re: Shadowbox in virtual tour

Virtuel Rundtur wrote:

Did you remember to upload it to a web server, or else it wont work....

Hi Henrik,

Yes I did remember that and have since found the problem.

The HTML was in fact showing all along but I couldn't see it due to a very simple problem.  The shadowbox is black and I had normal black text in my HTML file with no background colour defined.  As a result I had black text on a black background so couldn't see it.  I've formatted the HTML background, font colours, etc properly and problem sovled.

Does anybody know how what code I need to add (and where) to pause the auto-rotation when the shadowbox opens, and then start it again when the shadowbox closes?

Thanks
Jonathan

Offline

 

#16 2013-05-07 17:28:09

alexojeda
Member
Registered: 2012-12-28
Posts: 98
Website

Re: Shadowbox in virtual tour

Hi, Im trying to add this code to show a video on my Pano with the shadow box, because as mentioned above, I have autorotate enabled and its distracting. Havnt been able to figure out where I need to add the code after browsing with Dreamweaver through the Tour files.

If anyone could explain this a bit more in detail for a beginner who knows some about coding but not much.

Also, if I could pause when the video starts, it would be best. Someone mentioned that I need to disable autorotate, the code autorotate, enabled, false and autorotate.enabled, true when the video shows or not. havnt been able to accomplish this. If anybody has please let me know.

many thanks in advance!


Alex Ojeda www.alexojeda.com
Novoflex Panorama VE-System 6/8
Canon Fisheye EF 8-15mm F/4L USM
Manfrotto Tripod

Offline

 

#17 2013-05-07 19:24:20

alexojeda
Member
Registered: 2012-12-28
Posts: 98
Website

Re: Shadowbox in virtual tour

Ive done as suggested above, and wrote both code to the .html tour page, and js code to java script link in PTP, but nothing happens. I read above to add the shadowbox files to same directory, both .css and .js. Any ideas on where to get those files from or how to build them? Would this be why it isnt working?

Many thanks!


Alex Ojeda www.alexojeda.com
Novoflex Panorama VE-System 6/8
Canon Fisheye EF 8-15mm F/4L USM
Manfrotto Tripod

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson