+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Account address on map

  1. #1

    Account address on map

    Hi
    Is it possible to activate it automatically only for all registered users?
    It is normal that a registered user to do faster, does not want to write his position every time.
    Thank you

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Go to templates > tpl > blocks > field.tpl > after {foreach from=$fields item='field'}

    add:
    Code:
    Only registered members can view the code.
    then go to templates > js > form.js > this.accountFieldSimulation

    below the line:
    Code:
    Only registered members can view the code.
    add:
    Code:
    Only registered members can view the code.
    Last edited by Rudi; February 22, 2022 at 10:44 AM.

  3. #3
    Thanks, I did but it doesn't work.
    Maybe I am doing something wrong?
    I entered the field in the category in the "Position" section

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Sorry, I've corrected my code

  5. #5
    Thanks, but if I'm not registered and want to post an ad, I wouldn't want to see the field. I want only for registered users.

  6. #6
    I saw you fixed the code but it doesn't work.

  7. #7
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    I can't get what you need to achieve ))

  8. #8
    I just wish that the field is only visible to registered users.
    For those who want to post an ad without registration, it must be hidden
    Thank you

  9. #9
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Ok, try the code below again, it should work
    Last edited by Rudi; February 22, 2022 at 10:44 AM.

  10. #10
    Now work. Thank you very much

+ Reply to Thread