Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.1.2, getImage(), slim
- This topic has 9 replies, 2 voices, and was last updated 11 years, 10 months ago by
Steven Zahm.
-
AuthorPosts
-
09/25/2014 at 5:09 pm #305200
Yemi
GuestHi there,
I have just updated the connections plugin from a very old version (Version 0.7.9.7) to the latest version. Everything worked before the update. But after the update, images stopped showing for all profiles already created although the images are displayed at the backend. I have also tried deleting and reuploading the images but that didn’t work too. I deactivated and reactivated the plugin, still nothing.
What can I do to make these images display again? The plugin is used to display profiles on this page: http://lhssstl.org/about/faculty-staff/
I’ll be glad to provide more information if necessary.
Thank you!
09/25/2014 at 5:28 pm #305205Steven Zahm
Keymaster@ Yemi
Looks like you based you custom template on an old version of the Slim template. You need to update that template to use the function that displays the image.
Replace the old code for the image with this:
$entry->getImage( array( 'image' => 'photo', 'height' => 120, 'width' => 100, ) );That should fix it up. Hope that helps, let me know.
09/25/2014 at 6:22 pm #305218Yemi
GuestHi Steve!
Thanks for your speedy reply. The template I’m using is “LHS-Slim 1.0.1 by Mike Roosa”
I think the relevant line dealing with the images is this:
echo 'getFirstName() , ' ' , $entry->getLastName() , '" src="' , CN_IMAGE_BASE_URL , $entry->getImageNameCard() , '" />' , "\n";
I tried replacing this with the code snippet you supplied but didn’t work. Am I doing something wrong?
Thanks again for your help!
Yemi.09/25/2014 at 6:38 pm #305219Yemi
GuestSorry the code got messed up in my last message, I’m sending it again below:
echo ‘
getFirstName() , ‘ ‘ , $entry->getLastName() , ‘” src=”‘ , CN_IMAGE_BASE_URL , $entry->getImageNameCard() , ‘” />’ , “\n”;
09/25/2014 at 6:46 pm #305220Steven Zahm
Keymaster@ Yemi
You want to replace this code:
if ( $entry->getImageLinked() && $entry->getImageDisplay() ) { echo '<img class="photo" alt="Photo of ' , $entry->getFirstName() , ' ' , $entry->getLastName() , '" src="' , CN_IMAGE_BASE_URL , $entry->getImageNameCard() , '" />' , "\n"; } else { echo '<div class="cn-image-none" style="width: ' . $connections->options->getImgEntryX() . 'px ; height: ' . $connections->options->getImgEntryY() . 'px ;">No Photo Available</div>'; }Let me know how it goes!
09/25/2014 at 6:55 pm #305222Yemi
GuestOMG it worked!!!
Thanks a million, God bless you!
09/25/2014 at 6:58 pm #305223Steven Zahm
Keymaster@ Yemi
No problem and thanks!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections09/25/2014 at 7:26 pm #305224Yemi
GuestYes certainly!
09/26/2014 at 1:40 pm #305287Hector
GuestI’m also having the same issue with the update, where exactly do I replace the code and I’m also getting this shortcode? displayed on the web page how do I have this removed ( [/vc_column_text][/vc_column] [/vc_row] ) Thanks Hector..
09/26/2014 at 7:22 pm #305330Steven Zahm
Keymaster@ Hector
If you’ve customized a template, then only you will know where to replace the code at…
I did visit the site, seems the images are loading fine and that you’re using on of the core default templates, Bio Entry Card.
The text you’re asking about … I can’t really help with that, sorry, they are shortcodes for maybe a theme or another plugin. If you want to remove them, edit the page and delete them.
Hope that helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
