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 8 replies, 3 voices, and was last updated 8 years, 9 months ago by
Steven Zahm.
-
AuthorPosts
-
01/04/2014 at 7:31 pm #276454
Mike Nolan
ParticipantWhich Image is the Slim Plus Image?
Thumbnail, Medium, Large or Logo?
How much, if any control do we have over size and shape?01/06/2014 at 11:38 am #276489Steven Zahm
Keymaster@ Mike
Slim PLus does not use any of the redefined cached image. It create the correctly size image on demand. This is done because the template requires a specific size otherwise it’ll break.
To change the size you would have to edit the template’s
card.php
file and the associated CSS file to account for the new size.As far as shape. That’s CSS. You could add CSS to your theme’s custom CSS area to add a border radius to create a circle effect.
I hope that helps!
01/06/2014 at 2:18 pm #276497Mike Nolan
ParticipantIs 100px W x 122 px H, the ‘default’ size of the SlimPLus image then?
It appears resizing the images to the default size will be easier for us in production here.
01/06/2014 at 3:05 pm #276511Steven Zahm
Keymaster@ Mike
Close, The default image size is 100w x 120h px.
08/22/2014 at 3:28 pm #301601Hilary
GuestHi Steve,
My question continues on this front so I hope you can help.I have made a new card.php template in my theme for Slim Plus.
I have changed$entry->getImage( array( 'image' => $atts['image'], 'height' => 120, 'width' => 100, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );
to
$entry->getImage( array( 'image' => $atts['image'], //'height' => 120, //'width' => 100, 'height' => $atts['image_height'], 'width' => $atts['image_width'], 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );
I’ve also updated the CSS so that
#cn-slim-plus .cn-left
and#cn-slim-plus .cn-right
no longer have set widths.This helps a little but I can still see that some code is choosing a cropped/appended version of my image (
original_image.jpg&h=150&w=225&zc=1
).How can I change this cropped thumbnail to using the full image instead?
Thanks for any help you can give me!!
-Hilary08/22/2014 at 3:30 pm #301602Hilary
Guest@Hilary
Messed up my code up there. The change is in
card.php
on lines 26-37.08/22/2014 at 3:44 pm #301611Steven Zahm
Keymaster@ Hilary
By commenting out and adding the variables for the image size (unless you added the support for those variables in the
slim-plus.php
file) will cause the template to use the dimensions entered for the medium image size on the Connections : Settings admin page under the Images tab. If you want 225x150px image, I suggest you use this code instead:$entry->getImage( array( 'image' => $atts['image'], 'height' => 150, 'width' => 225, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );
If you want to adjust which crop mode is used you can use this:
$entry->getImage( array( 'image' => $atts['image'], 'height' => 150, 'width' => 225, 'zc' => 3, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );
Notice the addition of the
zc
option. You can set this to 0, 1, 2 or 3. It sounds like you want crop mode 3.I hope that helps!
08/22/2014 at 4:02 pm #301619Hilary
Guest@ steve
You are awesome!!08/22/2014 at 4:19 pm #301624Steven Zahm
Keymaster@ Hilary
Awe shucks, thanks!
If you have a moment, I would truly appreciate a review as they really make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.