×

Notice

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

TOPIC: Issue with saving hotspot description

Issue with saving hotspot description 13 years 5 months ago #12699

  • Egon Garding
  • Egon Garding's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi,

I don´t k now what I did wrong. I can´t save the changes I did in the hotspot/markes description. It just saves the first entry I did.
If I need to edit the entry it doesn´t save it. I wanted to link to an article for example, but the component doesn´t save it. If you open it again it shows the entry as is was before. Please help us.

Thx
Timo

Issue with saving hotspot description 13 years 5 months ago #12701

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Backend/frontend? Could you provide me with access to your website?
Daniel

Issue with saving hotspot description 13 years 5 months ago #12714

  • Eliecer Marchante
  • Eliecer Marchante's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
yes, same happen to me. The description wont accept any html code at all.

Issue with saving hotspot description 13 years 5 months ago #12746

  • Egon Garding
  • Egon Garding's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi Daniel,

do you have any good news for us?

Regards

Issue with saving hotspot description 13 years 5 months ago #12748

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ah sorry, I'm still not ready with my blog post, but the new version is online. You can use live update to update or download it from the download section.

Blog post will come later this evening :)
Cheers,
Daniel

Issue with saving hotspot description 13 years 5 months ago #12749

  • Egon Garding
  • Egon Garding's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi Daniel.
thx for your answer. I did the update but the issue still remains. Please login to my backend and try to edit "Nienburg-Weser" and set the link to article (249) not detailed description and save the changes. Unfortunatly it is not saving :-(

Issue with saving hotspot description 13 years 5 months ago #12750

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, confirmed! I didn't understand the issue properly! (I've fixed the problem with the description not accepting any html...) I'll debug this evening and you will have a fix by tomorrow morning!
Daniel

Issue with saving hotspot description 13 years 5 months ago #12784

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
:) it is not a php problem, but a javascript one. I suppose that you guys are using tinyMCE as your editor. When you select "link to an article" you notice how the editor is disabled, right? Pretty cool!?? Anyway, I was just hiding the editor and replacing it with the form, but it seems that when we send the form, javascript kicks in place and just gets the info from the hidden form and not the one you typed in. Here comes the fix :) Open media/com_hotspots/js/Hotspots.Add.Backend.js
and change lines 16 to 21 like this:
				if(selected == 'sobi2'  || selected == 'article' ) {		
//					tinyMCE.get('description').hide();
					tinyMCE.execCommand('mceRemoveEditor',false, 'description')
				} else {
					tinyMCE.execCommand('mceAddEditor',false, 'description');
//					tinyMCE.execCommand('mceToggleEditor',false,'description');
				}
			}

Let me know if this fixes the problem and I'll include the fix in hotspots 2.0.4

Issue with saving hotspot description 13 years 5 months ago #12828

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, obviously I'll sound like an idiot now saying that it is also a php issue :), but what can I do???

You guys need to go to:
administrator/components/com_hotsptos/controller/hotspots.php and change line 80 from:
			$row->autor = $user->name;
to:
		if(!$row->autor) {
			$row->autor = $user->name;
		}

then go to
components/com_hotspots/views/json/view.raw.php line 88 and change it from:
$hotspotsLink = JRoute::_("index.php?option=com_content&view=article&id=" . $description);
to
$hotspotsLink = JRoute::_("index.php?option=com_content&view=article&id=" . $hotspot->description, false);

If it is not working after this change, I'll have to fire myself...

Issue with saving hotspot description 13 years 5 months ago #12838

  • Egon Garding
  • Egon Garding's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi Daniel,

thx for your quick help. But unfortunatly it is not working neither. Both fixes aren´t working. It is even worse. If you want to edit or add a hotspot, google maps is not showing at all.
Do you still have access to the backend? I can provide you the FTP Details, if you need them.

Regards
Timo

Issue with saving hotspot description 13 years 5 months ago #12840

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, I'm starting to feel really stupid...
I don't think that I have your backend credentials... Please send me a mail with them and also ftp access. I'll log in and correct the issue.
Daniel

Issue with saving hotspot description 13 years 5 months ago #12841

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Egon,
You've inserted the code, but you've forgot to delete one of } and this was causing a js error on the page and the changing of the select box was not registered. Now it is fine. I also inserted a new hotspot in the "sehenswürdigkeiten" category - you can see that the link is pointing to an article with id 1 - which is obviously not existing :)

Regards,
Daniel

P.S. Don't forget to write a review about hotspots here: extensions.joomla.org/extensions/maps-a-...-locations/maps/9468

Issue with saving hotspot description 13 years 5 months ago #12842

  • Egon Garding
  • Egon Garding's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi Daniel,

great!!! This is working now.
Thank you very much.
Timo
  • Page:
  • 1
Time to create page: 0.167 seconds