Chris

Forum Replies Created

Viewing 15 posts - 961 through 975 (of 1,120 total)
  • Author
    Posts
  • in reply to: Style the marker infowindow #10550
    Chris
    Keymaster

      Hi,

      It’s pretty easy to change the interior of the infoWindow.  Look at file ‘mappress.css’ in the plugin directory.  The classes under ‘.mapp-iw’ are all styles for the infoWindow body, title, etc.

      Changing the infowindow shape is harder.  That HTML and CSS all comes directly from Google.  You could try to style it but I think it will be difficult.  If you want to try you can use Firebug or a similar tool to see what classes they’re using.

      in reply to: "Suggested Routes" CSS #10549
      Chris
      Keymaster

        Hi,

        That list actually comes directly from Google so it uses their classes.

        You can use Firebug or the IE developer tools to ‘inspect’ the list and see which classes and styles are being used.

        I think the list is in a div with class ‘adp-list’.  You can style it from there.

        As an example, MapPress puts a border around the list – this is from ‘mappress.css’ in the plugin directory:

         .adp-list {  border: 1px solid lightgray ;  cursor: pointer ; }
        in reply to: creating price markers #10538
        Chris
        Keymaster

          Hi, MapPress doesn’t suport dynamically generated markers yet (i.e. a marker with text on it).  Although you could use a picture of a house, you could not add text to it.

          in reply to: Template tag #10528
          Chris
          Keymaster

            Hi,

            I wasn’t clear – is the_title() actually set but just not displaying in the map?  For example, if you print it instead of trying to map it, do you see it has a value:

            print_r(the_title());

            What happens if you just hardcode the map title, e.g.

            …title => ‘hello’…

            If that’s not the issue,  you could take a look at the poi template file to see if perhaps it’s not generating the HTML the way you need it.  The file is:

            /pro/templates/map_poi.php

            in reply to: Template tag #10515
            Chris
            Keymaster

              Hi, no there’s no way to search by name.  If you’re just searching for one name in the current post, you could loop through the results from the get_post_map_list() function call.

              in reply to: Template tag #10512
              Chris
              Keymaster

                Hi,

                Here’s how you can get a list of maps for the post, then use the first map in the list:

                $maps = Mappress_Map::get_post_map_list($post->ID);
                if (!empty($maps)) {
                	$mapid = $maps[0]->mapid;
                	do_shortcode('[mappress mapid="$mapid"]');
                }

                 

                in reply to: Template tag #10511
                Chris
                Keymaster

                  Hi, what version of the plugin are you using?

                  in reply to: @media print CSS for MapPress maps #10506
                  Chris
                  Keymaster

                    Hi Brad, that is strange but I’m sorry, I don’t know how to keep the map on one page.  Maybe you could try the twentyeleven theme for a minute to see if there’s any theme-specific CSS that might be interfering?

                    in reply to: No tooltips in mashups #10444
                    Chris
                    Keymaster

                      Hi,

                      If you can provide the MapPress version you’re using, a sample URL illustrating the problem, and the shortcode you’re using for your mashup that would be helpful.

                      in reply to: Can't see custom icons in 2.38.4-beta #10443
                      Chris
                      Keymaster

                        Hi @David, it sounds like your problem is different if both settings point to the same path.  The directory should be created on activation, and I think for multisite there is only one directory (it’s shared).

                        One thing to check is that you have create permissions on the directory (try using ‘777’ on the whole uploads directory as a test).

                        Other than that I can’t say, but if you like you can send a login and I’ll take a look.

                        in reply to: Adding my custom icon #10435
                        Chris
                        Keymaster

                          Hi,

                          The .png files should work too.

                          If you’re using version 2.38, try this: put your new file in the icons directory.   Then go to the MapPress settings screen and save the settings (without making any changes).  That should force the plugin to refresh the icons list.

                          If that doesn’t work, feel free to send me a login and I’ll take a look for you.  Please just tell me the name and directory of the file you expect to see.

                          in reply to: Adding my custom icon #10429
                          Chris
                          Keymaster

                            Hi Steve, just edit your map.  When you are editing a POI on the map, click the ‘red dot’ icon in the upper-right of the edit box (where you enter the POI’s title and body).

                            A dialog box should open with a list of available icons – and your custom icon should be one of them.

                            in reply to: Automap creation when populating address field programmatically #10414
                            Chris
                            Keymaster

                              Hi Brad,

                              Normally MapPress updates its maps when the ‘save_post’ action is triggered.  This happens when a post is saved or published.

                              Formidable is probably updating the post’s custom fields after the ‘save_post’ action is triggered – so the fields are still blank when MapPress checks.

                              What’s needed is an action or fitler that happens after the post is created and the custom fields are updated.

                              I took a quick look at the Formidable forums and I think this code will work (add it to your functions.php):

                              function update_maps ($entry_id, $form_id) {
                                 if($form_id == 17) {        // Replace with your form ID
                                  //get ID of post to be created
                                  global $frmdb;
                                  $post_id = $frmdb->get_var( $frmdb->entries, array('id' => $entry_id), 'post_id' );
                                  // Update the map for that post
                                  do_action('mappress_update_meta', $post_id);
                                }
                              }
                              
                              add_filter('frm_after_create_entry', 'update_maps', 50, 2);
                              in reply to: Preserve MapPress metadata on posts export #10412
                              Chris
                              Keymaster

                                Hi Jim,

                                MapPress isn’t saved as metadata, it’s stored in custom tables.  One option is to just copy the tables to your new database.

                                Another is to re-generate the maps (assuming they were generated from your custom fields in the first place).  If MapPress is configured to generate maps from custom fields you can just publish the posts again and it will generate the maps (I’m not sure if the importer does a ‘publish’ as it creates the posts, but you can always do it from the admin using bulk actions).

                                in reply to: Changing shortcode output #10405
                                Chris
                                Keymaster

                                  Hi Andy,

                                  Sorry, that’s not something the plugin supports.  You can type text above the shortcode, but I assume you want it inserted automatically.

                                  There are some plugins for defining shortcodes in the WordPress text editor that might allow you to automate inserting the text and shortcode, but then you’d still need to type in the mapid.

                                Viewing 15 posts - 961 through 975 (of 1,120 total)