AVeryNiceWeb

How to change Google Map Type

Here we discuss Ultimate Member ("UM") and any problems with it only. Support is provided up to version 1.0.72
Forum rules
We can provide customization or technical support at the lowest cost for your Ultimate Member WordPress site. Register at:
ucp.php?mode=register and create a new topic down below with any request you might have.

Attention: we are not the developers of this plugin. For support questions go to the Free UM support forum at:
https://wordpress.org/support/plugin/ultimate-member/ .

How to change Google Map Type

Postby admin » Wed Aug 09, 2017 8:47 am

Go to ~root /wp-content/plugins/ultimate-member/core/um-filters-fields.php.
FIND:
Code: Select all
   /***

   ***   @outputs a google map

   ***/

   add_filter('um_profile_field_filter_hook__googlemap', 'um_profile_field_filter_hook__googlemap', 99, 2);

   function um_profile_field_filter_hook__googlemap( $value, $data ) {

      $value = '<div class="um-googlemap">

               <iframe width="600" height="450" frameborder="0" style="border:0" src="https://maps.google.com/maps?q=' . urlencode( $value ) . '&output=embed"></iframe>

            </div>';

      return $value;

   }


Replace the value for:
Code: Select all
<div class="um-googlemap">

               <iframe width="600" height="450" frameborder="0" style="border:0" src="https://maps.google.com/maps/place?&t=k&z=18&q=' . urlencode( $value ) . '&output=embed"></iframe>

            </div>


MORE

This code is hidden: 

To view this code please make a small donation or login to see it!
The AVNW Support Team
http://www.AVeryNiceWeb.com

We also have great domain names for your next website. Go through the list and make an offer now!

Shopping for a new website? See our design deals.

How much is your website worth? Get a free estimate.

And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook
  2. Post a review.- Posting a good review about this site could help us provide improved support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 466
Joined: Sun Jan 12, 2014 11:18 pm
Location: New York City

Return to Ultimate Member

Who is online

Users browsing this forum: No registered users and 0 guests

cron