Forum Replies Created

Viewing 15 replies - 121 through 135 (of 191 total)
  • Thread Starter supernova42

    (@supernova42)

    I went on to use ‘Basic Google Maps Placemarks’
    It works really well.
    I get users of my boating website to enter the Lat and Long of where their boat is moored and I use it to generate a placemark on GoogleMaps.
    The placemaps are world wide.
    Cheers

    Thread Starter supernova42

    (@supernova42)

    Thank you for your reply

    I have renewed the MailChimp Lists in WP but the list in MailChimp is not being updated.
    I’m not getting any errors.
    For me User Sync does not work

    Thanks

    Thread Starter supernova42

    (@supernova42)

    Thanks for your response
    I am not getting any errors
    I have renewed my MailChimp Lists and all went OK

    These are my selections on the User Sync page
    Enable Auto Sync: YES
    Sync User With This List: MQRA
    Double Opt-In: NO
    Role To Sync: All Roles
    Send Additional Fields: None defined
    Users Must Opt-In: NO
    I carried out a Manual Synchronisation and all went well.

    When I log into my MailChimp account the list is not being updated and is not synchronising with my WordPress site.

    Thread Starter supernova42

    (@supernova42)

    I’ve done this.
    I deleted the reference to thumbnail in the Image MarkUp Option

    • This reply was modified 8 years, 1 month ago by supernova42.
    • This reply was modified 8 years, 1 month ago by supernova42.

    In the settings tab, there is an option to Notify Site Owner About New Topics.

    I know that the person creating the topic, even if they are subscribed to that topic, are not notified. It makes sense.

    Thread Starter supernova42

    (@supernova42)

    For some reason you cannot use the fields and groups commands together. It’s either one or the other.
    Thanks

    Thread Starter supernova42

    (@supernova42)

    Does the latest Participants Database upgrade resolve this problem Roland.
    i.e.
    customized datatype parameters won’t be reverted when the field definition is saved #1717
    Thanks

    Will that get over written when you next update the Participants Database?

    You need to use web inspector in order to get the hook. It’s not straight forward and it might take you a few attempts to get the correct hook. When you have that hook you can use CSS to change the font sizes, font weights etc. It’s just a question of practice.

    You might want to try Google Chrome. Open you website and page etc within google chrome and then activate the web inspector.

    I only discovered how to do it myself a few months back and find it a very powerful tool.

    • This reply was modified 8 years, 2 months ago by supernova42.
    Thread Starter supernova42

    (@supernova42)

    Thanks Roland – did both of these and all works fine now.
    I have many members in my boat owners website. They put details of their boat on the website together with the latitude and longitude of where the boat is kept. I use these values to show placemarkings on a google map for each of the boats so that the distribution of boats throughout the world is shown. It looks very impressive.
    Many Thanks

    Thread Starter supernova42

    (@supernova42)

    This is my finished function. Basically users input details of their boat into the website. Data is stored in Participants Database. The user also inputs the Lat and Long of their boat. The routine below creates a PlaceMarker page for the users details and the PlaceMarker is displayed on the Google Map. I have a lot of subscribers and as more users enter their details the number of PlaceMarkers grows.

    [insert_php]
    /* Update Members Details */
    $current_user = wp_get_current_user();
    $user_name = $current_user->user_login;
    $user_id = Participants_Db::get_record_id_by_term(‘username’, $user_name);
    $record = Participants_Db::get_participant( $user_id );
    echo do_shortcode(‘[pdb_record tabs=true record_id=’.$user_id.’]’);

    /* Update Najad Yacht Position and PlaceMarker */
    $current_user = wp_get_current_user();
    $id = $current_user->id;
    $boatdata = Participants_Db::get_participant($id);
    $boat_name = $boatdata[‘boat_name’];
    $home_port = $boatdata[‘home_port’];
    $model = $boatdata[‘model’];
    $latitude = $boatdata[‘latitude’];
    $longitude = $boatdata[‘longitude’];

    if (!empty($boat_name) &&
    !empty($home_port) &&
    !empty($model) &&
    !empty($latitude) &&
    !empty($longitude) &&
    ($latitude <> ‘0’) &&
    ($longitude <> ‘0’) )
    {

    /* Find existing Post ID and delete Post */
    $mypost = get_page_by_title($boat_name, ”, ‘bgmp’ );
    $post_id = $mypost->ID;
    wp_delete_post($post_id);

    /* Create new PlaceMark */
    $author_id = 1;
    $post_id = wp_insert_post(
    array(
    ‘comment_status’ =>’closed’,
    ‘ping_status’ =>’closed’,
    ‘post_author’ => $author_id,
    ‘post_name’ => $slug,
    ‘post_title’ => $boat_name,
    ‘post_content’ => $home_port.'<br />’.$model,
    ‘meta_input’ => array(
    ‘bgmp_address’ => $latitude.’,’.$longitude,
    ‘bgmp_latitude’ => $latitude,
    ‘bgmp_longitude’ => $longitude),
    ‘post_status’ => ‘publish’,
    ‘post_type’ => ‘bgmp’) );
    }
    else {echo ‘Information has not been entered…’;}
    [/insert_php]

    Thread Starter supernova42

    (@supernova42)

    I’ve got this working now with the following code. All I need to do now is pass my values from my Participants Database.

    [insert_php]
    $post_id = 100;
    $author_id = 1;
    $slug = ‘arctic-fern’;
    $title = ‘Arctic Fern’;
    $content = ‘Milford Haven Marina – Najad 391’ ;

    $post_id = wp_insert_post(
    array(
    ‘comment_status’ => ‘closed’,
    ‘ping_status’ => ‘closed’,
    ‘post_author’ => $author_id,
    ‘post_name’ => $slug,
    ‘post_title’ => $title,
    ‘post_content’ => $content,
    ‘meta_input’ => array(‘bgmp_address’ => ‘52.12345,-2.54321’,
    ‘bgmp_latitude’ => ‘52.12345’,
    ‘bgmp_longitude’ => ‘-2.54321’),
    ‘post_status’ => ‘publish’,
    ‘post_type’ => ‘bgmp’)
    );
    [/insert_php]

    Thread Starter supernova42

    (@supernova42)

    Absolutely fantastic – I can now transfer all my WordPress users to the Participants Database without using csv exports and imports. As new users join the WordPress site, I can just run this function to transfer their data to the Participants Database.

    Many Thanks Roland, I really appreciate your assistance…

    [insert_php]
    echo ‘<b>Creating New PD Records for the following WordPress Users</b><br /> ‘;
    for ($id=1; $id<=1000; $id++) {
    $user = get_user_by( ‘id’, $id );
    $wp_id = $user->id;
    $wp_username = $user->user_login;
    $wp_email = $user->user_email;
    $wp_first_name = $user->user_firstname;
    $wp_last_name = $user->user_lastname;

    if (!empty($wp_username)) {
    $user_id = Participants_Db::get_record_id_by_term(‘username’, $wp_username);
    if (empty($user_id)) {
    echo $wp_id.’ : ‘.$wp_username.’ : ‘.$wp_email.’ : ‘.$wp_first_name.’ ‘.$wp_last_name.'<br />’;
    $data=array(‘wp_id’ => $wp_id,’username’ => $wp_username,’email’ => $wp_email,’first_name’ => $wp_first_name, ‘last_name’ => $wp_last_name);
    Participants_Db::write_participant($data);
    }
    }
    }
    [/insert_php]

    Thread Starter supernova42

    (@supernova42)

    Yes I’ve used this command before, just forgot.

    The Participants Database is quite unique – I don’t believe there is another plugin like it for WordPress.

    Thanks

    Thread Starter supernova42

    (@supernova42)

    $wp_first_name = $user->user_firstname;
    $wp_last_name = $user->user_lastname;

Viewing 15 replies - 121 through 135 (of 191 total)