Tagged: claim listing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5600
    David
    Member

    Hello. When testing the claim listing feature, I don’t receive an email and I don’t see the listing in the “Listing Claims” page in the admin. The listing form seems to work, however. You can see for yourself here:

    http://www.wildwoodunderground.com/listings/american-inn-motel/

    (I moved the button to the bottom of the page).

    Also, on an possibly unrelated subject, when I click on the various tabs (Details, Map, Comments, Contact), the anchor part of the URL shows up “#undefined1”, “#undefined2”, “#undefined3”, and “#undefined4” respectively. Everything works, otherwise.

    Thank you for your help.

    #5623
    David
    Member

    I partially solved the problem by removing all references to $example_data in the function add_claim in bepro_listings_claim.php:

    `
    // MODIFIED! –WWUG
    function add_claim($user_id, $post_id, $comments){
    global $wpdb;
    $check = $this->get_claims($user_id, $post_id);
    $check = false;
    if($check && sizeof($check) > 0) return false;
    do_action(“bl_claim_added”);
    $admin_email = get_option(‘admin_email’);
    wp_mail($admin_email, ‘Claim Submission’,
    ‘A user filled out the claim form. Please see claim listings for more info.’);
    return $wpdb->query(“INSERT INTO “.$wpdb->prefix.BEPRO_LISTINGS_CLAIM_TABLE_BASE.” (user_id, post_id, comments) VALUES($user_id, $post_id, ‘$comments’)”);
    }

    Note that I also added a wp_mail() to the admin, so I can get notified when a user submits a claim request.

    • This reply was modified 8 years, 10 months ago by David.
    • This reply was modified 8 years, 10 months ago by David. Reason: Code not rendering properly in post
    #5626

    Hi,

    Thanks for purchasing this plugin. As noted on the product page, this plugin requires BePro Email to send out notifications. Do you have it installed?

    https://www.beprosoftware.com/shop/bepro-listings-claim/
    https://www.beprosoftware.com/shop/bepro-email/

    To help troubleshoot the other issues you are experiencing, try

    – deactivating all plugins not created by BePro Software
    – return to one of the stock themes (twentythirteen, twentyfourteen, etc)

    Let us know if that fixes the admin issues.
    ___
    BePro Software Team

    #5631
    David
    Member

    Hi and thank you for your help. I do have the BePro Email installed. Unfortunately the site is live and rather busy, so I can’t deactivate plugins or return to a stock theme.

    #5641
    jambojam
    Member

    Hello David,

    I love the look of your site, I’m a relative novice when it comes to wordpress. I was just wondering how you got the images uploaded from bepro to display in that very nice slider of yours. Is there a plugin available that I can just whack into the site?

    Cheers

    Jam

    #5642
    David
    Member

    Hi jambojam,

    In order to replace the default WP gallery within BePro Listings, I had to override the bepro_listings_item_gallery_template hook. If you aren’t familiar with coding PHP, the process can be a bit tricky. Here it is in a nutshell.

    1. Download slippry slider to your theme’s “js” folder (create the folder if there isn’t one already) and unzip.

    2. In your theme’s functions.php file append:


    /* Override the BePro image gallery template */
    function override_bepro_templates() {
    $data = get_option("bepro_listings");
    $data['bepro_listings_item_gallery_template'] = 'quickstrap_listings_item_gallery';
    // I had to add this line as well, though the documentation did not say it was required
    add_action('bepro_listings_item_gallery', 'quickstrap_listings_item_gallery');
    update_option("bepro_listings", $data);
    }
    add_action('init', 'override_bepro_templates', 100);

    /* Add slippry slider to WordPress output */
    function add_custom_scripts() {
    wp_enqueue_script('quickstrap-slipry',
    get_template_directory_uri() . '/js/slippry-1.2.9/dist/slippry.min.js',
    '1.2.9',
    true
    );
    wp_enqueue_style('quickstrap-slippry',
    get_template_directory_uri() . '/js/slippry-1.2.9/dist/slippry.css'
    );
    }
    add_action('wp_enqueue_scripts', 'add_custom_scripts');

    /* BePro Item Gallery Template */
    function quickstrap_listings_item_gallery() {
    $post_id = get_the_ID();
    $data = get_option("bepro_listings");
    if (empty($data["show_imgs"])) {
    return;
    }

    // Return if no images
    $num_images = $data["num_images"];
    if (!$num_images) {
    return;
    }

    // Get images
    $imgs = bl_get_listing_images($post_id);
    $num_cols = !empty($data['gallery_cols']) ? 3 : $data['gallery_cols'];

    ?>
    <script>
    jQuery(document).ready(function ($) {
    $('#slippry-slides').slippry();
    });
    </script>
    <?php
    $html .= '<ul id="slippry-slides">';
    for ($i = 0; $i < count($imgs); $i++) {
    $html .= '<li style="">' .
    str_replace('<img ', '<img style="" u="image" ',
    wp_get_attachment_image($imgs[$i], [600,480])) .
    '
    ';
    }
    $html .= '';
    }

    Good luck — I hope you can figure it out.

    #5652
    jambojam
    Member

    Thanks bud, no I am not familiar with php… but I have a few friends that are that may be able to help here. Thank you very much for your reply!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.