×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Hotspot Detail window

Hotspot Detail window 12 years 7 months ago #13910

  • lisa gage
  • lisa gage's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Hi, when I click on the hotspot marker, a detail window appears with the location, address, etc. another box appears in the foreground with the "directions" link--this box is too large and doesn't look nice. i'd like my details box to look like another poster's box--i printed out the thread & attached the pdf.

you can see what is going on w/ my map at onigiricrush.com/find-us

thank you for your assistance,
lisa

Hotspot Detail window 12 years 7 months ago #13914

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Lisa,
Well, the problem here is you template.
In your main.css file you are styling the id #container. And the div that holds the direction in hotspots is named container...

Go to media/com_hotspots/js/Hotspots.js line 504
id: 'container'
change it to
id: 'hotspots-container'
This should fix the problem.
Cheers,
Daniel

Hotspot Detail window 12 years 7 months ago #13915

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ah and repeat the same procedure for
media/com_hotspots/js/Hotspots.Hotspot.js

Hotspot Detail window 12 years 7 months ago #13919

  • lisa gage
  • lisa gage's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
FABULOUS! worked like a charm. i am very pleased with this component and with the kind, patient support.

thank you!
lisa

Hotspot Detail window 12 years 7 months ago #14044

  • Lakes Entrance
  • Lakes Entrance's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0

Daniel Dimitrov wrote: Ah and repeat the same procedure for
media/com_hotspots/js/Hotspots.Hotspot.js


Daniel, i tried this and it didn't change anything. Still referring to "container', not hotspot-container.

I changed it in the first instance, as per line 504, then in the second file, I found one instance of container where it had ID beside it. About line 141. I changed that and it still refers to "container" using firebug.

Am I missing something?

Part of the problem of the spacing in the info-box, is that many br / commands get popped in after the end of the text. This puts too much space between the end of the text and the green "directions/readmore" box at the bottom. Most of the time the green box is pushed outside of the white modal window altogether.

Domain is www.bscprojects.com.au/gippsland-lakes if you could kindly check it out.

I'm using just the short desicription to add the image and text, and eliminated showing address info etc.

Hotspot Detail window 12 years 7 months ago #14046

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Lakes,
Please start a new thread next time. Are you trying to change the width of the window? Because the code changes above should be doing just this.

I know that <br>s a bad markup. (this is all left from version 0.9 and I'm about to fix it in 2.1 . Up until then you can go to
components/com_hotspots/views/json/tmpl/default_description.php and remove the unnecessary <br>s

Cheers,
Daniel

Hotspot Detail window 12 years 7 months ago #14047

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ah and actually the reason why the buttons in the popup go outside of the popup is the fact that your image in the short description doesn't have dimensions. Because of this the google API doesn't calculate the height of the popup properly.
Daniel

Hotspot Detail window 12 years 7 months ago #14049

  • Lakes Entrance
  • Lakes Entrance's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Daniel, you're up early. Hope it's not too chilly.

It's come to the end of our day here, so I'll add a dimension to the images, which should fix that.

And i'll go into the php file and see if i can find the correct br's to remove.

I thought it weird you used br's instead of padding etc. All good though. Love your product and must get over to joomla.org and write about it.

Thanks for your promptness, appreciated greatly.
Shane

Hotspot Detail window 12 years 7 months ago #14050

  • Lakes Entrance
  • Lakes Entrance's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Editing the php file worked a treat. Tightened all the space up nicely.

Which file controls the layout and style of the Details View page?

Removed a br from after the Name, and a br from after the brief description.

Perfect.

Must note the change in case an update overwrites it ...

Hotspot Detail window 12 years 7 months ago #14051

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Don't worry about the update - the update will bring good code formatting :) As I said this was left from 0.9 :)

The single view is located in components/com_hotspots/views/hotspot/tmpl/default.php

Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.138 seconds