Topics

Tribe Support

Tribe Support's Topics

Umesh

Umesh

May 01 2016

com_locations and disabled button

In anahita/src/site/components/com_locations/templates/helpers/ui/_ui_location.php

'Add Location' button is always in disabled mode. Is there a reason to keep it that way

#GoogleLocationAPI #LocationGraph

  • 8 Comments
  • Last Comment by Umesh
It is enabled when browser geolocates the user. If the browser privacy mode disables geolocating then the button stays disabled. Also you need to obtain browser and server keys from google for the geolocation to work. I know configuring google services is a bit of work, but they have made it a lot simpler now.
Umesh
Umesh
May 02 2016 Permalink
Thanks @Rastin - I did set the Google browser and server key. Let me check if I accidently disabled browser geolocation support
Use Inspect > console and see if there are any errors
Umesh
Umesh
May 02 2016 Permalink
Here is the root cause - Starting from April 20th - geolocation API are available only for secured origin in Chrome browser

https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only

I need to switch to HTTPS then :)
Rastin Mehr liked this
Your users will appreciate that
Umesh
Umesh
May 03 2016 Permalink
@Rastin .. style.css, favicon, brand href are still coming as http. I changed live_site parameter in configuration.php as well enabled nginx for SSL support.

Earlier version we used to have force_ssl parameter in configuration.php file. I believe that is no more there due to legacy code removal process.

I looked at the render method in vendor/anahita/anahita/src/libraries/default/application/template/helper/render.php but couldnt locate anything specific that I need to touch for SSL.

Is there anything else I need to do to enable SSL support?
No #SSL should be detected automatically by Anahita. If not, then server isn't providing the information Anahita needs to know whether ssl is on or not.

Test to see if this global method is returning true or not:

https://github.com/anahitasocial/anahita/blob/master/src/libraries/anahita/functions.php#L21
Umesh
Umesh
May 05 2016 Permalink
Finally managed to solve this issue. There were 2 issues
1. Had nginx configuration to serve images and CSS files from cookieless domain.
2. Have not enabled full #SSL in cloudflare
Rastin Mehr liked this

Powered by Anahita