×

Notice

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

TOPIC: Important: how hotspots link to external site

Important: how hotspots link to external site 12 years 10 months ago #14914

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello,
I bought hotspots because I was convinced that I could link hotspots to external sites (no sobi2, no articles, no detail page).
But I noticed that the component does not allow this option.
Because for me it's important to have this option kindly ask if someone can help me step by step to modify the code to make this option until the next release of the.

I've seen a topic about it but I would like, if possible, get some help step by step to change the code.
thanks
Luke

Important: how hotspots link to external site 12 years 10 months ago #14915

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Luca,
So in backend in the drop down box you want to have a "link to url" option. Once selected you will enter an url and the read more button in frontend will send the user to this url???

Daniel

Important: how hotspots link to external site 12 years 10 months ago #14916

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi Daniel,
No, I wish that when I click on the icon directly on the map I can go directly to the external link, no pop-ups get to where there is a "read more". I do not know if I can make myself understood ...

I wish that clicking the icon on the map I can go directly to the external link with no additional pages or popups!

In any case (in extreme cases) could perhaps also be good to put the external link button "read more" if you are not able to find an alternative to my specific request!
Ideally, however, a direct link icon without having to get to the button "read more"!

Important: how hotspots link to external site 12 years 10 months ago #14925

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Daniel is fine to put the various links to other sites instead of the button "read more". I ask you kindly explain to me how ... thanks
Luca

Re: Important: how hotspots link to external site 12 years 10 months ago #14930

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Daniel up please! :)

Re: Important: how hotspots link to external site 12 years 10 months ago #14942

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Luca,
Why do you want to make the marker click go to another page? What is the problem of showing the infowindow with a small description and then if the user wants to know more, he will click on read more???

I'm asking because the desired behavior requires a lot of code changes and I don't want to waste my time figuring out how to do this if you don't really need it.

Kind regards,
Daniel

Re: Important: how hotspots link to external site 12 years 10 months ago #14943

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel, thanks for your intervention.
To me it is good that I open the popup when I click on the icon of the map, but I need the "read more" button on the popup points to external links for each icon on the map.
I need each icon on the map points to an external link, via the read more button that appears in the popup!

How do I get this?

Re: Important: how hotspots link to external site 12 years 9 months ago #14951

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
No up for me?

Re: Important: how hotspots link to external site 12 years 9 months ago #14959

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Luca,
I'm sorry for the slow response, but please note that those modifications are not part of your support subscription and I'm taking my own free time to help you.

So, here is what we are gong to do!
In the backend when you create a new hotspot go to the dropdown "link to" and select sobi2 and enter your url in the detail description. For example:
compojoom.com

Now! Find the file components/com_hotspots/views/json/view.raw.php

On line 85 you have this code:
if ($hotspot->autor == "sobi2") {
			$hotspotsLink = JRoute::_("index.php?option=com_sobi2&sobi2Task=sobi2Details&sobi2Id=" . $hotspot->description, false);
 

change it to:
if ($hotspot->autor == "sobi2") {
    $hotspotsLink = $hotspot->description;

Now in the frontend when you click on a hotspot and then on readmore -> you should go to the url that you've entered in the detail page.

Hope that this helps!
Daniel

Re: Important: how hotspots link to external site 12 years 9 months ago #14961

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel,
oops I'm sorry but I did not know my subscription was not included the support on code.
I thank you for the availability
Luca

Re: Important: how hotspots link to external site 12 years 9 months ago #14962

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The support is only for bugs or configuration problems. It doesn't include modifications to the code.

Anyway, is this working now?

Cheers,
Daniel

Re: Important: how hotspots link to external site 12 years 9 months ago #14986

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel,
everything works perfectly. The only thing is that I'd like the link to appear in a new page ... how can I do?
thanks again
Luca

Re: Important: how hotspots link to external site 12 years 9 months ago #15008

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You mean like in popup? When you click on the link you want that a new browser window opens or what?

Daniel

Re: Important: how hotspots link to external site 12 years 9 months ago #15009

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Yes, I want that when I click the READ MORE button (located in popup window) to open a new browser window and NOT to remain on the same window! It very, very important to me that.

Re: Important: how hotspots link to external site 12 years 9 months ago #15047

  • LUCA BORRO
  • LUCA  BORRO's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel,
I wanted to know if is possible receive , To Payment, a code change that I asked here about the opening of the link in a new page. I think it's a very simple thing to achieve.
It's possible to get this charge paid? Since membership in the package does not include changing the code ...
For me it is very urgent and important to this change so they are willing to pay for it.
I look forward to hearing from you. My personal mail is This email address is being protected from spambots. You need JavaScript enabled to view it..
If you are interested please contact me.
thanks
Luca

Re: Important: how hotspots link to external site 12 years 9 months ago #15052

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Luca,
You don't need to hire me to do this for you :) You can just write a review how good hotspots is and spread the word :) extensions.joomla.org/extensions/maps-a-...-locations/maps/9468

So, adding a traget="_blank" is easy. Go to media/com_hotspots/js/Hotspots.js
line 430:
		if(this.options.readMore.toInt()) {
			readmore = new Element('span', {
				'class' : 'link'
			}).adopt(new Element('a', {
				href: hotspot.readmore,
				html: this.locale.readMore
			}));
		}
change it to this:
		if(this.options.readMore.toInt()) {
			readmore = new Element('span', {
				'class' : 'link'
			}).adopt(new Element('a', {
				href: hotspot.readmore,
				html: this.locale.readMore,
                'target' : '_blank'
			}));
		}

Now the link will automatically open in new windows.
Sorry that it took us so much time, but we've been busy with transifex for the last 4 days:
compojoom.com/about/blog/entry/translate...with-opentranslators
Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.178 seconds