Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Mitch
I do offer customization services if your interested. Please use the contact link at the very bottom of the page.
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.
05/26/2017 at 9:08 am in reply to: Updating Phone Directory Profile Picture Programmatically #424190Steven Zahm
Keymaster@ Kenneth
Open the db in phpMyAdmin or similar tool. Copy the contents of the
optioncolumn 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()andcnImage::sideload()return the same response so they are interchangeable.Hope that helps!
Steven Zahm
KeymasterGreat! I’m going to marked this as resolved.
Steven Zahm
Keymaster@ Louis
Great to hear this is resolved!
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!
Steven Zahm
KeymasterSteven Zahm
Keymaster@ plzit
Open this file,
class.entry-data.php, found here:../wp-content/plugins/connections/includes/entry/Scroll to line
3498which 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?
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!
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.
-
AuthorPosts
