1. ahmed
  2. General
  3. Saturday, March 26 2016, 06:51 PM
dear

kindly is't possible to change the background image or color of registration form as you can observe in the url below : http://alsoukk.com/index.php/acceuil/modifier-votre-compte?view=registration.

and for another subject can the share location option field dectect automatically the location of users with out the click of the users in every time that they make a new registration.

thanks
admin Accepted Answer
Admin
Hi,
all your forms have CSS class "well", in your custom.css you have set this background color at line 340.

and for another subject can the share location option field dectect automatically the location of users with out the click of the users in every time that they make a new registration.
No, but you can add some javascript code to simulate click on Geocode button on page load event.
  1. more than a month ago
  2. General
  3. # 1
ahmed Accepted Answer
dear

kindly can you add me a javascript code to simulate the click on geocode button on page load event.

thanks
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was a weekend for us.

try to add this javascript code in some your javascript file:
jQuery(window).load(function(){
navigator.geolocation.getCurrentPosition(function(position){
jQuery('#jform_location').geocomplete('init');
jQuery('#jform_location').geocomplete('geocode',{
address: position.coords.latitude+','+position.coords.longitude
});
});
});


NOTE: this code is not tested and not supported, this is only for example purpose.
  1. more than a month ago
  2. General
  3. # 3
ahmed Accepted Answer
dear

kinly in which file i have to put this codes please. could you provide me the file path please?

thanks
  1. more than a month ago
  2. General
  3. # 4
admin Accepted Answer
Admin
You can try to put this code at the end of file /templates/modern/js/modern.js
  1. more than a month ago
  2. General
  3. # 5
ahmed Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 6
admin Accepted Answer
Admin
Hi,
tried and for me works, try to clean your cache browser.

Still change with this code, otherwise geocode is enabled in all pages.
jQuery(window).load(function(){
if( jQuery('#member-registration').length ) {
navigator.geolocation.getCurrentPosition(function(position){
jQuery('#jform_location').geocomplete('init');
jQuery('#jform_location').geocomplete('geocode',{
address: position.coords.latitude+','+position.coords.longitude
});
});
}
});
  1. more than a month ago
  2. General
  3. # 7
ahmed Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 8
ahmed Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 9
admin Accepted Answer
Admin
Hi,
previous code will works only for field with alias "location", now I see a field with alias "emplacement".

as we said this code is only for example purpose, we do not support this. We can point you in a right way but we can't do this for you.
  1. more than a month ago
  2. General
  3. # 10
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.