Home Forums Plugin Support WP User Frontend (Free Version) Changing the default map type for all posts

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  stuartmichael13 5 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6397

    stuartmichael13
    Participant
    Post count: 2

    Hi,

    Is there a way to change the default map type and size in all posts? I've enabled the Google Maps custom field in my “add post” form and changed the settings so that the map is shown in all the posts once the user selects a location. But now I want it to default to “Map with Terrain” and I want to change the default size as well.

    I also have two other non-related questions.

    1) Is there a way to add a delete post button to the post editor form?
    2) Is there a way to change the default size of the “upload image” button on my add post form? It currently defaults to a small size but I would like it to default to its full size.

    Thanks!

    #6399

    Tareq Hasan
    Keymaster
    Post count: 2831

    Map Type: There isn't any settings to change the map type. You've to edit the plugin in that case. On the wpuf-functions.php, fine the line window.google.maps.MapTypeId.ROADMAP. The ROADMAP needs to be change to TERRAIN.

    If you are using the post meta displaying automatically, you've to change the size as well. You'll find the height and width just few lines up of the ROADMAP on the same file.

    Other questions:
    1) Yes possible, but that will require some other codes for deletion as well.
    2) You can change the button size using CSS in your theme.

    #6400

    stuartmichael13
    Participant
    Post count: 2

    Thanks for the reply, I just have a clarification regarding #2:

    I didn't mean “upload image” button… I must have been half asleep.

    What I meant to ask was, how to I change the default size of the uploaded images that are uploaded from the frontend through the upload image button? When the image is uploaded into the post it uploads as a small version of the picture that was originally uploaded. I would like it to upload into the post as its full size.

    Thanks.

    #6401

    stuartmichael13
    Participant
    Post count: 2

    Nevermind, it took some searching but I finally found the line of code to change.

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

The topic ‘Changing the default map type for all posts’ is closed to new replies.