WordPress.org

Ready to get started?Download WordPress

Forums

Visitor Maps and Who's Online
Display Visitor Maps shortcode (4 posts)

  1. jimlongo
    Member
    Posted 12 months ago #

    Hi Mike, I love this plugin, and what would be totally awesome would be the ability to display a Visitor Map - World (large) for the last 7 or 30 days on a page.

    http://wordpress.org/plugins/visitor-maps/

  2. jimlongo
    Member
    Posted 12 months ago #

    Okay, I see you've thought of that, at least it looks like that's the intention in settings.
    Enable visitor map on Visitor Map shortcode page.

    However all I get are the pins, no map, and the pins are located at the top left of the page.

    I've tried both versions of the 'missing map background fix', it doesn't change.

    Thanks.

  3. jimlongo
    Member
    Posted 12 months ago #

    here's the URL https://www.shareyourmemories.ca/maps/

    If i look at the source I see the map section like this

    <!--
    This link is for your reference, it can be pasted into a browser:
    https://www.shareyourmemories.ca?do_wo_map=1&time=28&units=days&map=4&pin=1&pins=on&text=on&textcolor=000000&textshadow=FFFFFF&textalign=cb&ul_lat=0&ul_lon=0&lr_lat=360&lr_lon=180&offset_x=0&offset_y=0&wp-minify-off=1&type=png
    
    $map_settings = array(
    // html map settings
    // set these settings as needed
    'time'       => ’28′,  // digits of time
    ‘units’      => ‘days’, // minutes, hours, or days (with or without the “s”)
    ‘map’        => ’4′,       // 1,2,3 etc. (you can add more map images in settings)
    ‘pin’        => ’1′,       // 1,2,3 etc. (you can add more pin images in settings)
    ‘pins’       => ‘off’,     // off (off is required for html map)
    ‘text’       => ‘on’,      // on or off
    ‘textcolor’  => ’000000′,  // any hex color code
    ‘textshadow’ => ‘FFFFFF’,  // any hex color code
    ‘textalign’  => ‘cb’,      // ll, ul, lr, ur, c, ct, cb (codes for: lower left, upper left, upper right, center, center top, center bottom)
    ‘ul_lat’     => ’0′,     // default 0 for worldmap
    ‘ul_lon’     => ’0′,     // default 0 for worldmap
    ‘lr_lat’     => ’360′,     // default 360 for worldmap
    ‘lr_lon’     => ’180′,     // default 180 for worldmap
    ‘offset_x’   => ’0′,   // + or – offset for x axis  – moves pins left, + moves pins right
    ‘offset_y’   => ’0′,   // + or – offset for y axis  – moves pins up,   + moves pins down
    ‘type’       => ‘png’,     // jpg or png (map output type)
    );
    echo get_visitor_maps_worldmap($map_settings);
    –>

    I'm not sure of why everything in my source is converted to html entities (it is converted back on this board), but at any rate the last line converts to -> when it really should be an end comment block -->

  4. jimlongo
    Member
    Posted 11 months ago #

    Can't see why it won't print that last comment tag.
    Something to do with the array

    My workaround for now is just to make line 271 an empty string.

    // show world map
    $string = '';

    it also works with just removing the array

    $string = '<!--
    This link is for your reference, it can be pasted into a browser:
    '.$image_worldmap_link.'-->';

Reply

You must log in to post.

About this Plugin

About this Topic