• Resolved domino4evers

    (@domino4evers)


    Hi there

    Thanks for a great plugin. We are using it on our intranet, to log if the personal is using the intranet.
    Bu we have encounter a small “error”: If a user is visiting a post, it does not log the URL for that post, so we can’t se what kind of content they are viewing.

    We have modified the code a little:

    Moove_Activity_Database_Model::insert(
    array(
    ‘post_id’ => $data[‘pid’],
    ‘post_name’ => $current_url,
    ‘user_id’ => intval( $data[‘uid’] ),
    ‘status’ => esc_attr( $data[‘status’] ),
    ‘user_ip’ => esc_attr( $data[‘uip’] ),
    ‘display_name’ => $username,
    ‘city’ => $city_name,
    ‘post_type’ => get_post_type( $data[‘pid’] ),
    ‘referer’ => $data[‘ref’],
    ‘month_year’ => get_gmt_from_date( $date, ‘m’ ).get_gmt_from_date( $date, ‘Y’ ),
    ‘visit_date’ => get_gmt_from_date( $date, ‘Y-m-d H:i:s’ ),
    ‘campaign_id’ => isset( $ma_data[‘campaign_id’] ) ? $ma_data[‘campaign_id’] : ”
    )
    );

    But I need to grab the URL and write it in the database. But somehow it does not get the URL. Could it be that the website is on a subdomain?

    Can you help?

  • The topic ‘Grab URL / Postname and insert in Aktivity Log’ is closed to new replies.