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.
- This topic has 13 replies, 2 voices, and was last updated 4 years, 10 months ago by
Kitty Nicol.
-
AuthorPosts
-
02/22/2018 at 10:51 pm #452787
Kitty Nicol
ParticipantYes! Thank you so much! That is exactly what I’m after :)
There is a couple of things that happened when I added the code though, it appears that this part massively slows my site down
if ( ! empty( $logoHREF ) ) { echo "
"; }
If I comment that bit out, my site loads fine, but as soon as I have this it takes a very long time to load the page. The other thing is that the listings that don’t have an image added show a broken image, so the conditional part is not working I guess?
Really appreciate your help on this, thanks again!
02/22/2018 at 10:53 pm #452788Kitty Nicol
Participant^^ That should be
if ( ! empty( $logoHREF ) ) { echo "<image src='$logoHREF'>"; }
But image changed to img. Sorry, it won’t let me edit the post.
02/23/2018 at 9:03 am #452955Steven Zahm
Keymaster@ Kitty
RE: it appears that this part massively slows my site down
Interesting because that code is far, far, more “lighter” than the
$entry->getImage(...
block of code. The later has to check for an existing image of the correct size and scale, if one is not found open the original image and process it. Which is quite a bit of work. The$entry->getOriginalImageURL('logo');
simply returns the file name of the image being requested. That info is already available whether or not any image code is used.RE: The other thing is that the listings that don’t have an image added show a broken image, so the conditional part is not working I guess?
Play with the conditional until it works correctly. Looking at the source, it seems the return will never be empty because at least the folder path will be returned. So you’ll have to adjust the conditional to take that into account.
03/18/2018 at 7:35 pm #455835Kitty Nicol
ParticipantSorry for the delay in getting back to you. Just wanted to confirm that I have successfully got this working now, and the site load issue resolved itself once I was able to make the code conditional and did not have a whole bunch of broken images.
Thank you very much for your help and perseverance with me, and your great plugins! Much appreciated!
Cheers,
Kitty -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.