×

Notice

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

TOPIC: Customizing questions

Customizing questions 8 years 11 months ago #32932

  • Chris Vrakotas
  • Chris Vrakotas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Hi Daniel,

I’m using the component, its a great piece of software, and I have some questions about it:
Map
1. In the Map/hotspots menu is it possible the date and user to be displayed before the lcocation is clicked?
2. In the Map/Hotspots menu, when we click “read more” we see all info about this specific location. (pic01). Is it possible to have a button, or a text link, linking back to the Map page? (pic_02)
3. In the Map, is it possible the “Center on my location” icon to be bigger and different?
4. About filtering, I need 2 more options: Filtering by date (today, last week, last month) and filtering by a custom field (a list box)
5. How a user can delete/edit his hotspots?

Submission form
1. I’ve added a custon field and it’s placed under description. How can i change the position and place it under Category?
2. I can’t find how I translate some text: New Hotspot, Title, Description and all labels (pic_03). Also the circled area (pic_03). Can you tell me which file I have to modify?
3. When a location is submitted the message is not placed at the top of the page. How can I place it in the top? Also, Is it possible to have a button, or a text link, linking back to the Map page?
4. Is it possible for the site administrator to receive an e-mail notification every time a new hotspot is added?

I hope I'm not wasting your time.
Thanks in advance
Chris
Attachments:

Customizing questions 8 years 11 months ago #32939

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Chris,

1. Yes, you need to modify the view (standard joomla template override). You need to modify the components\com_hotspots\views\hotspots\tmpl\default_hotspot.php file and move the {{date}} and {{created_by}}in the hs-hotspots-overview-short div.
2. It's possible, but what for? The browser has this awesome BACK button that is available on each page. There are mouses that have a dedicated back buttons, on tables you can scroll to the right to go back to the last page. So this is in my opinion not necessary. Also you have an issue when the user opens the hotspots in a new tab. Then the back button won't work.

3. You can achieve this with CSS. All kinds of the presentation can be modified with CSS
4. That's unfortunatly currently not possible
5. There is a userhotspots view in the PRO version. You need to create a link to it in the menu and when users click on it they will see their own hotspots.

Submission form:
1. you need again a template override for this.
2. You don't have to modify files. You can use the standard language override feature in Joomla: docs.joomla.org/J3.x:Language_Overrides_in_Joomla
3. What do you mean with top of the page? The message is shown where your message container is. This message container is defined by your template and we can't influence it. It's the same place where all joomla messages appear.
4. Yes, you need to enable the hotspots - email plugin

Regards,
Daniel

Customizing questions 8 years 11 months ago #32948

  • Chris Vrakotas
  • Chris Vrakotas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Dear Daniel,
Thanks for your answer. Some issues solved, some not.
Map
1. Yes, you need to modify the view (standard joomla template override). You need to modify the components\com_hotspots\views\hotspots\tmpl\default_hotspot.php file and move the {{date}} and {{created_by}}in the hs-hotspots-overview-short div. Done, thanks

2. It's possible, but what for? The browser has this awesome BACK button that is available on each page. There are mouses that have a dedicated back buttons, on tables you can scroll to the right to go back to the last page. So this is in my opinion not necessary. Also you have an issue when the user opens the hotspots in a new tab. Then the back button won't work. Ok, probably you're right

3. You can achieve this with CSS. All kinds of the presentation can be modified with CSS. Which file I have to modify? Where the icon is saved?

4. That's unfortunatly currently not possible. Is it possible in future update?

5. There is a userhotspots view in the PRO version. You need to create a link to it in the menu and when users click on it they will see their own hotspots. Ok

Submission form:
1. you need again a template override for this. Which file I have to modify? I'm graphic designer, not a programmer, I can understand some coding, but I don;t know which file does what.

2. You don't have to modify files. You can use the standard language override feature in Joomla: docs.joomla.org/J3.x:Language_Overrides_in_Joomla Ok

3. What do you mean with top of the page? The message is shown where your message container is. This message container is defined by your template and we can't influence it. It's the same place where all joomla messages appear. Ok, Done

4. Yes, you need to enable the hotspots - email plugin Ok, Done

Another thing, when we see the details of a hotspot, "custon fields" is displayed, It's h6 class. How this cannot be displayed?

Regards
Chris

Customizing questions 8 years 11 months ago #32957

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Chris,
Read this: docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core
Since Hotspots is a Joomla extension and we try to follow the standards after reading the information in the above link you should be able to modify the form (and to actually find it. Hint: it's the file in the form view)

About the CSS. Check this tutorial from Yves: compojoom.com/blog/entry/how-to-use-fire...f-a-joomla-extension The information in this tutorial applies to the Chrome inspector tool as well.

About point 4 - it's actually planned, but hard to achieve in a generic way that won't make maintaining hotspots a mess. That's why I'm putting it away, but would need to find a way to solve it.

So, I hope that with the above links I will teach you how to fish :)

Cheers,
Daniel

Customizing questions 8 years 11 months ago #32971

  • Chris Vrakotas
  • Chris Vrakotas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Thanks for the info Daniel.
Let you know if I have more questions.

Chris

Customizing questions 8 years 10 months ago #33111

  • Chris Vrakotas
  • Chris Vrakotas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Hi Daniel,

I'm trying to use an animated gif for location marker. When I choose it in administrator, I can see the animation, but at the map only the first frame is shown. The gif has 2 frames.

Pls advice.

Regards
Chris

Customizing questions 8 years 10 months ago #33113

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Chris,
The problem is that google is actually internally optimising the marker image. That's why they are fetching the first frame only. You would need to modify the hotspots code and add:
optimized:false, to the code where we add the markers.

I'm not sure how good an idea this is. If they need to optimize the markers, then there must be a reason for this.

Regards,
Daniel

Customizing questions 8 years 10 months ago #33116

  • Chris Vrakotas
  • Chris Vrakotas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Daniel, which file i have to modify??

Regards
Chris

Customizing questions 8 years 10 months ago #33139

  • Chris Vrakotas
  • Chris Vrakotas's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 26
  • Thank you received: 0
Thanks a lot Daniel, it worked!!!

=================================================================
Daniel's answer by email:
Hey Chris,

I don’t have a gif to test, but I think that if you modify:
media\com_hotspots\js\v4\vendor\backbone.googlemaps.js
line 295 this.gOverlay -> add optimized:false as parameter and it should wor

As far the title is concerned: COM_HOTSPOTS_HOTSPOT_TITLE_LABEL

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