Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Nearby Events Search Module

11 years 2 weeks ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 4
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

How canI get the Nearby Events Search Module to automatically detect a user's location and load nearby events automatically. Basically, I want this to happen without the user having to click the "Auto-Detect" button.

I tried assigning an id to the button and using jQuery to click it after document ready but I cannot get it to work.

11 years 2 weeks ago
Licenses:
11 years 2 weeks ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 4
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

I am looking to have this be automatic, without the visitor having to click on "Auto-Detect".

11 years 2 weeks ago
Licenses:

Hi,

please edit:
/modules/mod_community_nearbyevents/assets/script.js after this code at line 16

this.$autodetect.on( 'click', $.proxy( this.autodetect, this ) );
put this code
this.mapload( $.proxy( this.autodetectCallback, this ) );

Regards

The following user(s) said Thank You: David
11 years 1 week ago
  • David's Avatar
    Topic Author
  • David
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 4
Licenses:
JomSocial Expired iSEO Expired Socialize Expired

Perfect!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW