New Listing Notifications

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #58145

    Fredrik
    Buyer
    Post count: 67

    Hello,

    I would like a notification to a non-admin user when a new listing gets published. How can I accomplish this?

    Thanks

    #58187

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    this is not possible, notifications are only sent to the main site admin.

    The only workaround to accomplish this would be to place a filter on the admin email and forward relavant emails to the non-admin users.

    Thanks

    #58234

    Fredrik
    Buyer
    Post count: 67

    Ok. Could you point me to the right direction?

    I have no idea where to start…

    Also;

    Is there an option to turn off sending notifications to these:

    * Post submitted success
    * Email enquiry
    * Post submit success to client email (Client)
    * Registration success email (Client)
    * Listing published email (Client)

    Right now there are only 4 options to disable notifications.
    * New user registration
    * Send to friend
    * Send enquiry
    * Listing published

    The only one I want activated is the “Listing Published” for admins. The rest I want to disable more or less. How can I do this? Why are there only 4 options?

    #58237

    Fredrik
    Buyer
    Post count: 67

    I noted now that if I have a listing with the post status “Draft” and then change it to published GD automatically sends out an email saying that a new listing have been posted. This is all fine except that it does this everytime it gets shifted from draft to published. Is there a workaround for this?

    #58299

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    these options are currently not available because they have never been requested by any member.

    We only included options to disable notifications for messages that aren’t critical to manage a directory with user submitted content.

    Not getting a notification when a new listing is submitted is something I’m sure nobody would want. Not sure how you intend to manage it, but we are not interested in adding features that are only needed by 1 or very few members.

    Also we can’t tell the system to only send the email when the status is move from draft to publish only when the user wants. It will do it everytime, you should refrain from changing status instead.

    Forwarding emails from an account to another is something you do via your email account. With gmail for example this is how it is done: http://email.about.com/od/gmailtips/qt/How-To-Forward-Gmail-Email-Using-Filters.htm

    Thanks

    #58400

    Fredrik
    Buyer
    Post count: 67

    “Not getting a notification when a new listing is submitted is something I’m sure nobody would want. Not sure how you intend to manage it”
    Currently the admins of the site is the only ones able to publish new listings and the users only able to edit the information.

    “Not getting a notification when a new listing is submitted is something I’m sure nobody would want.”
    Depends on how you use GD. I’m pretty sure I’m not alone in using GD like this.

    “Also we can’t tell the system to only send the email when the status is move from draft to publish only when the user wants. It will do it everytime, you should refrain from changing status instead.”
    For users who don’t have the knowledge to code a workaround this is quite a strange recommendation. If you refrain from changing status you pretty much take away the ability to hide listings.

    Anyways. I solved this with a workaround that involves custom code.


    add_action( ‘post_updated’, ‘run_when_post_published_first_time’);

    function run_when_post_published_first_time($post_id) {
    global $post, $wpdb;

    if($post->post_type !== ‘gd_place’)
    return; // also check for autosave/revision

    $result = $wpdb->get_var(“SELECT post_id FROM wp_geodir_gd_place_detail WHERE post_id=’$post_id'”);

    if( isset($result) && !empty($result) ) {
    // New listing
    }
    else
    //listing already exists
    }

    “Forwarding emails from an account to another is something you do via your email account. With gmail for example this is how it is done:”
    I thought you meant a wordpress filter, not email forwarding.

    “but we are not interested in adding features that are only needed by 1 or very few members.”
    Not sure how you get a feeling for how many needs a specific function since most users aren’t on your forums.

    Thanks for the answers anyways.

    You can set this to resolved.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket