×

Notice

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

TOPIC: adding new hotspots from the 2nd tab

adding new hotspots from the 2nd tab 14 years 5 days ago #10745

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi,

I was adding new hotspot from the 2nd tab. Once I finished I received the message "Hotspot added"

Where can I change that text to something like "Hotspot added to our database. It will be online available soon."

adding new hotspots from the 2nd tab 13 years 11 months ago #10978

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi, repeating the same question:


I was adding new hotspot from the 2nd tab. Once I finished I received the message "Hotspot added"

Where can I change that text to something like "Hotspot added to our database. It will be online available soon."

adding new hotspots from the 2nd tab 13 years 11 months ago #10980

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
languages/your-language/your-language.hotspots.ini
Search for hotspots added and changed to what you need.

adding new hotspots from the 2nd tab 13 years 11 months ago #10991

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi,

I change it but I am receiving the message "Hotspot added" twice and not the one I set up ""Hotspot added to our database. It will be online available soon."

adding new hotspots from the 2nd tab 13 years 11 months ago #11017

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,
Sorry about that! Now I see that Hotspot added is hardcoded. I'll change it in the next release. Up until thengo to
components/com_hotspots/controller.php line 209
$this->setRedirect($url, 'Hotspot added');
change it to:
$this->setRedirect($url, 'your desired text ');

adding new hotspots from the 2nd tab 13 years 11 months ago #11031

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi,

The text was perfectly changed but I am still getting the same message twice on the screen.

adding new hotspots from the 2nd tab 13 years 11 months ago #11046

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
hm, try this.
Go to components/com_hotspots/views/all/tmpl/default.php and remove this code:
$appl = JFactory::getApplication();
$messages = $appl->getMessageQueue();
if($messages) {
	$messagessplit = $messages[0];
	if ($messagessplit['message'] != "")
	{
		echo "<div class=\"hs_error\">";
		echo $messagessplit['message'];
		echo "</div><br />";
	}
}

adding new hotspots from the 2nd tab 13 years 11 months ago #11069

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi,

Removing that code, the problem is gone. Thanks for your support.

I just notice that If you made a mistake filling the form like leaving empty the email field, you dont go back to Add hotspot tab to fix the problem, you are sent to the map tab and all the information from Add hotspot tab is gone.

adding new hotspots from the 2nd tab 13 years 11 months ago #11072

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yes, I'm aware of the problem. We'll improve this in the next version.
  • Page:
  • 1
Time to create page: 0.112 seconds