![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
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 ![]()
Henrik
Last edited by Virtuel Rundtur (2012-12-11 00:02:08)
Offline
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
You can look at the HTML code of the virtual tour linked by Henrik.
The code is quite simple :
<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
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)
Offline
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 :
openShadowbox(http://rundtur.dk/toppano/index1.html, iframe, a title)
Gérald
Offline
SUCCESS !!!!!!
Finally got it working! ![]()
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
Offline
It works!!!!
All I can say is - I love you bdd Adnministrator)
Offline
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
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
Offline
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
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
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.. ![]()
Destiny..
Offline
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:
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).
<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
Did you remember to upload it to a web server, or else it wont work....
Cheers
Henrik
Offline
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
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!
Online
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!
Online
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
