GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Not resolved]Buddypress | Hide Full Adress for Privacy Reasons

Forums Support Buddypress | Hide Full Adress for Privacy Reasons

Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #54916
    sanis
    Member

    Hello Eyal,

    I make use of a function that hides full address from “Location” tab of Buddypress. How could I modify that function so the address will be hidden also in the Directory Page that search form redirects? The function is:

    Thank you in advance,
    Sanis

    #54920

    Hello Sanis,

    How could I modify that function so the address will be hidden also in the Directory Page that search form redirects?

    I am not sure I understand your questions. Are you referring to the search results of GEO my WP search forms?

    #54941
    sanis
    Member

    Hello Eyal,

    Yes, I am referring to the search results of GEO my WP search forms. Excuse me for my so bad english… How could I modify the above function?

    Thank you,
    Sanis

    #54970

    The function that displays the address in the search results is

    Which can be found in `geo-my-wp/includes/geo-my-wp-template-functions.php.

    You can either remove this function from the search results template file or you can use the filter which is in the function:

    I hope that helps.

    #54989
    sanis
    Member

    Hi Eyal,

    Unfortunatelly I couldn’t make it work. The 2 functions that I have found are

    If I remove $address from the first function address is removed but city is removed too and each member’s tab goes fullwidth from 30% to 100% of the page and looks very wird. I would like only the street and the number to be removed but the city to be visible as it happens with the other function I posted at the top of the page. Is that possible and if yes how could I override the plugin so I will not loose the changes at next update?

    Thank you,
    Sanis

    #54994

    The function below ( add it to the functions.php file of the child theme) will display the city of the member only.

    $info is an object contains the data and location data of the member. You can use it to modify the function to display other fields as well.

    I hope that help.

    #55034
    sanis
    Member

    Thank you so much Eyal, that did the trick!!! Is there a way to hide full adress from the map too? If a user clicks on the icon that is in the map he can see in the pop up that opens other members full address..

    Thank you,
    Sanis

    #55068
    sanis
    Member

    Hello Eyal,

    Propably you have missed my message.. Is there a way to hide full address from the map too?

    Thank you,
    Sanis

    #55120

    Hello Sanis,
    There is the filter ‘gmw_fl_info_window_content’ which can be found in geo-my-wp/plugins/friends/includes/gmw-fl-search-query-class.php.

    This filter allows you to modify the content of the info window in a similar way that was done with the other filter.

    I hope that helps.

    #55149
    sanis
    Member

    Hello Eyal,

    I renamed and transfered the following function in my child themes function.php (after removing [‘address’]) so I don’t loose the changes after next upgrade but unfortunately it didn’t work

    So then I renamed and added the function:

    but after that the pop up window with each members info stopped opening after hovering on the marker… What do you think that I am doing wrong?

    Thank you,
    Sanis

    #55151

    Hello Sanis,
    That is not how this should be done.

    You need to use the filters inside the function

    to modify the content of the info-window. You need to write a custom function that will modify the info-window content and execute this function using the filters inside the info-window function mentioned above.

    You need to know how WordPress hooks system work in order to get it done. Take a look at this article to learn more about it.

    #55193
    sanis
    Member

    Hello Eyal,

    I am not a developer so this is very difficult to me… I achieved to hide full adress from the window with css styling but now a new issue came up. Full Address of my site’s members appears in activity stream every time they update it and nobody wants that. S.O.S Is there a way to mention that location was updated but hide full adress from activity stream?

    Thank you again,
    Sanis

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.