Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Ciaran
Ok, the next release, here are a few examples on how you can get the image meta so you can build your own image tags:
/* * Setup the $atts for the type of image you want. */ // To get the logo as originally uploaded. $atts = array( 'type' => 'logo', 'size' => 'original' ); // To get the logo scaled to the size set in the settings. $atts = array( 'type' => 'logo', 'size' => 'scaled' ); // To get the photo as originally uploaded. $atts = array( 'type' => 'photo', 'size' => 'original' ); // To get the various image sizes as set in the settings. $atts = array( 'type' => 'photo', 'size' => 'thumbnail' ); $atts = array( 'type' => 'photo', 'size' => 'medium' ); $atts = array( 'type' => 'photo', 'size' => 'large' ); // To get any random custom size (in pixels). $atts = array( 'type' => 'photo', 'size' => 'custom', 'width' => 300, 'height' => 150 ); // Pass the $atts to the new getImageMeta() function. $image = $entry->getImageMeta( $atts ); // Echo out the image tag. echo "<img {$image['size']} src='{$image['url']}' />";Steven Zahm
KeymasterUse this:
Original:
Work Phone
Domain:connections
Replacement:Phone
Context:Steven Zahm
Keymaster@ karikirch
It can not be a conflict with the theme as the Say What plugin filters text at the WP core level. As long as the plugin is coded to be translation ready it should work.
Are you using any page caching plugins such as W3 Total Cache? If you are, try clearing the page cache.
Steven Zahm
Keymaster@ Casey
Yes, this is very easy to do. See this QuickTip
Steven Zahm
Keymaster@ karikirch
And you are using the exact strings I outline in my previous reply? Capitalization and spacing are very very important, they must match exactly.
Steven Zahm
Keymaster@ Raymond
What do you see? Can you share a link?
Steven Zahm
Keymaster@ John
You can try adding this CSS to your theme’s custom CSS area:
#cn-list span.cn-image { width: auto !important; height: auto !important; } #cn-list span.cn-image img.photo { width: auto !important; height: auto !important; max-width: 100%; }It will help with making sure the image do not overlay text.
As far as loading smaller images, that is actually something I’ve been working quite extensively that past three weeks.
I wrote a reply to another user, asking a different question, but my reply will help in letting you know where Connections is heading with images.
http://connections-pro.com/support/topic/outputting-rawish-images/#post-300402Hope that helps!
Oh, after the next release of Connections, you might want to remove that CSS I gave you because it could conflict (likely not).
Hope that helps!
Steven Zahm
Keymaster@ Ciaran
This is actually a very difficult question to answer because any answer I give you will break your template with the next version release of Connections because all of the image code is changing substantially and using the getImage() function will ensure backward compatibility while updating any “legacy” images to use he new processes.
Right now, you can do this for the image source:
$image = getimagesize( CN_IMAGE_PATH . $entry->getImageNameOriginal() ); $src = CN_IMAGE_BASE_URL . $entry->getImageNameOriginal(); echo "<img width='{image[0]}' height='{image[1]}' src='$src' />";But this will completely break next release because image file locations are being changed. The constants
CN_IMAGE_PATHandCN_IMAGE_BASE_URLstill point to the old locations and are only being kept around in order to facilitate the backward compatibility logic which moves the the images from the legacy location to the new location [file/folder structure] auto-magically.I can give you the new way quite yet because I have at least three core functions to write, which actually will make doing this dead simple.
As for the
spantags in the current output, that has to hang around but I’ll have a filter or two that can be hooked into so the output can be changed to anything one could want. That inline style is gone though, moved to the CSS file where it should be.The purpose of this rewrite is to clean up the ugly image handling/logic code, get rid of dependence on TimThumb and class.upload.php using core WP wherever possible and implement true responsive image support.
I’m about 95% complete with this rewrite. The code is in much, much better shape that it is in now!
Steven Zahm
Keymaster@ karikirch
If I understand correct, no, your users will not have to register again to use the forum. Hope that helps!
Steven Zahm
Keymaster@ Sarah
Glad I could help!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections -
AuthorPosts
