Forum Replies Created
-
AuthorPosts
-
09/25/2014 at 5:28 pm in reply to: Images missing after update from Version 0.7.9.7 to latest version #305205
Steven 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.
Steven Zahm
Keymaster@ Michael
Dang! Yes that ad hoc caching I’m doing would cause a problem with getting the updated categories. It is really just a temp solution until I have the cnCache class completely fleshed out.
Until I sort this out, maybe you could just query the categories in your filter instead…
$sql = $wpdb->prepare( "SELECT t.*, tt.* FROM " . CN_TERMS_TABLE . " AS t INNER JOIN " . CN_TERM_TAXONOMY_TABLE . " AS tt ON t.term_id = tt.term_id INNER JOIN " . CN_TERM_RELATIONSHIP_TABLE . " AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id WHERE tt.taxonomy = 'category' AND tr.entry_id = %d ", $entry->getId() ); $categories = $wpdb->get_results( $sql );Steven Zahm
KeymasterIf I understand yes, you can have shared data and then just use the category shortcode option to limit the results to a specific category.
Is the site a single site now? I think if you add
define( 'CN_MULTISITE_ENABLED', FALSE );(in the wp-config.php file) at the same time you convert to multi site … everything should just work. Honestly though, I’ve never tried it.If you already have multi site setup, you still need to add
define( 'CN_MULTISITE_ENABLED', FALSE );to thewp-config.phpfile.Will you lose or have to re-add your data, no … but, you may have to move the
connections-imagesfolder to the correct location and use phpMyAdmin to renamed tables so they are associated with the super network tables and not any of the network sites tables.Hope that helps!
Steven Zahm
Keymaster@ Jason
Hmmm, that was the link I guessed at yesterday, from your profile. However, when I try to login, I get the invalid username/password error.
Steven Zahm
KeymasterWell, a quick Google search lead me to this plugin, Ultimate Nofollow. It works with Connections … the only bug that I noticed is when editing a link, the tick box for nofollow is not checked even though it is actually set. A quick scroll thru the code doesn’t leave me confident that it’ fix the underlying issue though because it does not add a filter to ensure the rel attribute is valid.
You might be able to adapt the tip on this page to re-allow the rel tag. I would just add the filter with a priority of 99999 rather than 10 to ensure it ran dead last.
Hope that helps!
Steven Zahm
Keymaster@ Surya
Alternative, well, you could have a single page and let the user use the category select to choose the categories rather than having your own manually created category landing pages.
The reference site … if you notice, it is possibly a custom solution built on top of another CMS, not WordPress and Connections so it is not an apples to apples comparison. Also, you may notice how the category drop does not allow a selection of a category at all which is effectively the same as disabling it per my suggestion in the previous reply.
Steven Zahm
Keymaster@ Joel
Hmmm.. I just added updated an entry with a link like this:
<a title="My Link" href="http://connections-pro.com" rel="nofollow">link</a>
And it worked fine.Now, it’s possible another plugin or the theme is hooking into the core WP sanitization functions which Connections uses to prevent bad things is stripping the links. The WP sanitization has a whitelist of permitted tags and their attributes, this whitelist can be altered by plugins and themes.
If this is the cause, the only way to find out is to deactivate all other plugins temporarily except Connections and cMap then edit an entry to see if the link is still stripped. If it isn’t then you know the cause is another plugin. What you’ll have to do is activate the plugin one at a time until the issue comes back. When it does, the last plugin activate is the cause.
If you deactivate all the other plugins and it still happens, then it’s likely the theme is the cause. Rather than changing themes to try, if you grant me a temp admin account, I’ll login and remove the sanitization from the bio field, temporarily, which will basically use whatever is entered in the field as is without any safety net. This will allow any text/HTML to be displayed. If it works after that, then it will have to be the theme that’s the cause. After that’s established, the sanitization will have to be added again, but at least you will know why it is happening and the cause.
Steven Zahm
KeymasterAre the venues Hot Reads and Galleries different categories within Connections or are they two different network site? I can not really tell, but I’m guessing two different network sites. If that is the case, it depends on how Connections is setup. By default on a multi site install of WP, Connections will run in multi site mode, meaning each instance where Connections is activated on a network site is isolated from each other (does not share data). However, Connections can be configured to run in single site mode on a multisite install of WP. This mean in each instance where Connections is activated on a network site it will share the same data across all network sites. Is the latter what you want?
Steven Zahm
Keymaster@ Joel
Sorry, I understand what you’re doing, just not where … can you please attach screenshots?
Steven Zahm
Keymaster@ raymond1419
I believe WP leaves the original image intact but it does create several different sized images, how many and what sizes really depends on the theme and the plugins you have installed. When WP or plugins need a specific image size it uses that cached image.
Connections is wired a bit differently. Rather than trying to create n-number of images right off the bat, it creates them on demand and then caches them for future use. When Connections create these alternative sizes it uses the original image. Really the process is the same, just happens at different point in time.
Hope that helps!
-
AuthorPosts
