BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 3,261 through 3,270 (of 15,332 total)
  • Author
    Posts
  • in reply to: Google Map for card-single.php template #424192
    Steven Zahm
    Keymaster

    @ Mitch

    I do offer customization services if your interested. Please use the contact link at the very bottom of the page.

    in reply to: Google Map for card-single.php template #424191
    Steven Zahm
    Keymaster

    @ Mitch

    I’d have to look, but, I think the only line you would need to change is this one:

    var cnSingleMap = $('#cn-gmap-single').length ? $('#cn-gmap-single') : false;
    

    You would have to change the id selector #cn-gmap-single.

    You should probably remove this line too:

    $('#cn-tile-plus .cn-category-select.cn-enhanced-select').chosen();
    

    Make sure you keep an eye on the browser’s console so you can see any javascript errors that may be occurring.

    Steven Zahm
    Keymaster

    @ Kenneth

    Open the db in phpMyAdmin or similar tool. Copy the contents of the option column for an entry which has an image and unserialize it. That will show you the structure. Or use code:

    $slug  = 'http://image.jpg';
    $slug  = $entry->getSlug();
    $photo = cnImage::download( $url, $slug );
    
    if ( ! is_wp_error( $photo ) ) {
    
        $entry->setImageLinked( TRUE );
        $entry->setImageDisplay( TRUE );
        $entry->setImageNameOriginal( $photo['name'] );
        $entry->setOriginalImageMeta( $photo );
    
    } else {
    
        $entry->setImageLinked( FALSE );
        $entry->setImageDisplay( FALSE );
    }
    

    Both cnImage::download() and cnImage::sideload() return the same response so they are interchangeable.

    Hope that helps!

    in reply to: Duplicate Birthdates Won’t Delete #424155
    Steven Zahm
    Keymaster

    Great! I’m going to marked this as resolved.

    in reply to: Not showing individual listings #424152
    Steven Zahm
    Keymaster

    @ Louis

    Great to hear this is resolved!

    in reply to: Can I add text to bottom of each page? #424150
    Steven Zahm
    Keymaster

    @ Beverly

    Put your disclaimer text right below the [connections] shortcode on the page. It will show on every page of the directory.

    Hope this helps!

    in reply to: Not showing #424149
    Steven Zahm
    Keymaster
    in reply to: Duplicate Birthdates Won’t Delete #424148
    Steven Zahm
    Keymaster

    @ plzit

    Open this file, class.entry-data.php, found here:

    ../wp-content/plugins/connections/includes/entry/

    Scroll to line 3498 which should be this:
    return date_i18n( $format, strtotime( gmdate( 'r', $nextUDay ) ), TRUE );

    Change it to this:
    return gmdate( $format, $nextUDay );

    Does that fix it for you too?

    in reply to: Duplicate Birthdates Won’t Delete #424137
    Steven Zahm
    Keymaster

    @ Cre8vMom

    Ok, spent quite a bit of time tracking down where the date was being changed. I was using a core WP function to create a datetime object to work with for comparisons. Perhaps there was a recent change to this function that caused my code to utilizing it, in you specific instance, to return the incorrect date.

    Why, honestly, dunno. I used a native PHP function instead and it works fine on my dev site and you site. I’ll keep this tweak in the next Connections update … hoping it does not cause an issue for others.

    The bad news, these duplicate dates exist in the database, so for the entries that have them, they will need to be edited to be removed.

    Apologies for the trouble!

    in reply to: Duplicate Birthdates Won’t Delete #424099
    Steven Zahm
    Keymaster

    @ Cre8vMom

    re: Just thought of something – could it be because it is a date in the future?

    Do not think so. On my test entry using a date in the future had no effect. It worked just fine.

    The Emeanuel A. entry is experiencing the issue, so that at least gives me something to work with.

Viewing 10 posts - 3,261 through 3,270 (of 15,332 total)