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.

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,046

Location: Osijek, Croatia, EU

  • Send private message

1

Wednesday, January 15th 2014, 8:22pm

information panels / info boxes

Many questions on how to display some info panels at the opening of each scene.

This is one way how this can be done: Link to online version
Code you can see here: Code
Complete packed project you can download: Here

Enjoy learning *cool*

ELLIOT73

Beginner

Posts: 8

Location: Atlanta, Georgia

  • Send private message

2

Monday, January 20th 2014, 8:01am

Hello Umalo



I can't follow your explanation of how to show the info_panel. I copied your file on my computer (Dreamweaver) and it works, but it will not work with my panorama. I must be missing something.

Is there some more information on Krpano site. If there is more info under the name show info plugin?



Thanks

Elliot

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,046

Location: Osijek, Croatia, EU

  • Send private message

3

Monday, January 20th 2014, 10:45am

Hard to say without the code but in general you have to:
- prepare as many infoboxes you want. image name to be info_1.png, info_2.png ... stored in folder /info
- in each scene add attribute: info_name="info_1" if the box for this scene is named info_1. It could be any name if info box image is the same name
- also add onstart="show_info()" in each scene. There are also other ways e.g. with event onnewpano how this call can be achieved. This is only one option.
- info_x.png is to be also stored in /info folder
- don't forget to copy/paste new plugins info_box and info_x and also action show_info

If you are still not able try understanding code first than apply it to your project. Try comparing differences in scene definitions in my example and in your generated code

ELLIOT73

Beginner

Posts: 8

Location: Atlanta, Georgia

  • Send private message

4

Monday, January 20th 2014, 11:14am

Hello Umalo

Where do I get the plugins info_box, info_x and show_info



Thanks

Elliot

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,046

Location: Osijek, Croatia, EU

  • Send private message

5

Monday, January 20th 2014, 12:05pm

Download package and explore my code: tour.xml
<plugin name="info_box" ...

<action name="show_info"> ...

you can see it also in the link Code above.

ELLIOT73

Beginner

Posts: 8

Location: Atlanta, Georgia

  • Send private message

6

Tuesday, January 21st 2014, 2:34am

Hello Umalo

Following your instructions I was able to make it work. I don't really understand why it works because I don't see an actual plugin saying info_box among my files.

At any rate it is working in a very fine manner.

Thanks a lot
Elliot

ELLIOT73

Beginner

Posts: 8

Location: Atlanta, Georgia

  • Send private message

7

Tuesday, January 21st 2014, 7:11am

Hello Umalo

I have one more question. Is there a way that we can turn off the info_box based on Time instead of pressing the "X"

Thanks
Elliot

ELLIOT73

Beginner

Posts: 8

Location: Atlanta, Georgia

  • Send private message

8

Tuesday, January 21st 2014, 10:11am

Hello Ummalo

Something interesting has happened. I use Dreamweaver to do my webpage. When I try the page on my local computer everything works. When I load the page on the website the info_box doesn't work.

Any ideas?

Thanks
Elliot

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,046

Location: Osijek, Croatia, EU

  • Send private message

9

Tuesday, January 21st 2014, 10:41am

Hello Umalo
I have one more question. Is there a way that we can turn off the info_box based on Time instead of pressing the "X"
Thanks
Elliot


Yes, than you have to use onidle event. Set it to some second and when triggered set off visibility of info_box plugin

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,046

Location: Osijek, Croatia, EU

  • Send private message

10

Tuesday, January 21st 2014, 10:42am

Hello Ummalo
Something interesting has happened. I use Dreamweaver to do my webpage. When I try the page on my local computer everything works. When I load the page on the website the info_box doesn't work.
Any ideas?
Thanks
Elliot


Most probably you have some errors in the code. Can you share the link?

ELLIOT73

Beginner

Posts: 8

Location: Atlanta, Georgia

  • Send private message

11

Tuesday, January 21st 2014, 11:07am

information panels / info boxes

Anton

I sent a private email with the link.

Thanks
Elliot

ELLIOT73

Beginner

Posts: 8

Location: Atlanta, Georgia

  • Send private message

12

Tuesday, January 21st 2014, 4:04pm

Anton



Thanks for your help. You were right, it was the cookies. We are using Windows 8.1. When you try to clean the cookies on W 8.1 the first line of the options have to be un-checked. If you don't uncheck the first line the machine will not clean the cookies.

Regarding your question Are you able to make event with onidle to turnoff the info box after e.g. 10sec. I have not tried.

That is next. Where is that I have to place the "onidle". Are there any instruction on the Krpano page?



Thanks again for your help
Elliot

Umalo

Professional

  • "Umalo" started this thread

Posts: 1,046

Location: Osijek, Croatia, EU

  • Send private message

13

Tuesday, January 21st 2014, 4:54pm

You have to find this information on:
- forum e.g. Link
- Documentation: Link
- or in examples folder in krpano package. There are many examples. Without checking but pretty sure you can quickly find some onidle example there.
(online version Link Explore your local version of examples. There is specific eample for events: Link to online version
Link tio code

Don't forget to set idletime and test if counter is reseted when loading new scene or it must be reseted manualy.

ELLIOT73

Beginner

Posts: 8

Location: Atlanta, Georgia

  • Send private message

14

Wednesday, January 22nd 2014, 1:08am

Anton

Thanks for the information. I will try to set the timming command next.

I will keep you informed on the progress of this next task.

Thanks
Elliot

nwatts

Beginner

Posts: 6

Location: Dublin, Ireland

Occupation: Educational Technologist

  • Send private message

15

Thursday, August 28th 2014, 4:10pm

Thanks for info_box


"Complete packed project you can download: Here"

Thanks for making info_box code code available. I am finding it very helpful. "fix_infobox_aspectresize" does not seem to be working for iPhone when called from within plugin. Otherwise great thanks *thumbsup*



Umalo

Professional

  • "Umalo" started this thread

Posts: 1,046

Location: Osijek, Croatia, EU

  • Send private message

16

Thursday, August 28th 2014, 6:32pm

I think you mixed this example with other where I used fix_infobox_aspectresize but anyway glad it help you.
Umalo

P.S. fix_infobox_aspectresize should be called from onresize event and maybe from plugin onloaded attribute so check there when and why it is not triggered.

nwatts

Beginner

Posts: 6

Location: Dublin, Ireland

Occupation: Educational Technologist

  • Send private message

17

Monday, September 1st 2014, 11:01am

resizing

Thanks for your help and advice.