Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Steve
You should be fine to update. The only thing you might have to do is go to the Connections : Settings admin page, click the Advanced tab and click the Save Changes button. That’s all, no changes will actually need to be made.
If you do run into an issue, before resorting to backups and restoring, please contact me first, I’ll take a look. With that said I do not think you’ll run into any issues.
Hope that helps!
Steven Zahm
Keymaster@ Arizona Lowe
Sorry, no, I do not remember. Please keep in mind I help many users over the course of the day. I do recognize the name you post under because you’ve left several posts support forum posts:
http://connections-pro.com/support/topic/out-of-memory-database-error/
http://connections-pro.com/support/topic/category-dropdown-gone/
http://connections-pro.com/support/topic/fatal-error-returned-after-update-to-latest-version/Makes it very difficult to keep track of, especially since you post not logged in at times … when you post not logged in, those posts are not linked to you so the only way I can find them is thru searches.
Since you posted about the image issue under this topic:
http://connections-pro.com/support/topic/category-dropdown-gone/Can you please continue to post under that topic about this issue? It will certainly help me help you.
On to the issue at hand…
Another user gave me access to their multi site install and they was indeed one other multi-site related bug related to image uploads. The version I have this fix in is 8.1.2 which I will be releasing either today or tomorrow.
If you’d like me test this fix on your site, I’ll require an FTP login and a super admin login, temporarily. Post the login details in the other topic as a private reply and then follow-up with a non-private reply so I know you’ve posted login details.
Steven Zahm
Keymaster@ Christopher
No problem!
If you have moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/plugins/connections/Steven Zahm
Keymaster@ Christopher
Ok, all fixed up!
For reference for anyone else who has implemented this or wants to. Here’s the updated code snippet to get it to work again.
function cn_initial_search_filter( $posts, $WP_Query ) { global $wp_query; if ( ! class_exists('cnTemplatePart') ) return $posts; $shortcode = 'connections'; $pattern = get_shortcode_regex(); // Grab the array containing all query vars registered by Connections. $registeredQueryVars = cnRewrite::queryVars( array() ); foreach ( $posts as $post ) { // If we're in the main query, proceed! if ( isset( $WP_Query->queried_object_id ) && $WP_Query->queried_object_id == $post->ID ) { /* * $matches[0] == An array of all shortcode that were found with its options. * $matches[1] == Unknown. * $matches[2] == An array of all shortcode tags that were found. * $matches[3] == An array of the shortcode options that were found. * $matches[4] == Unknown. * $matches[5] == Unknown. * $matches[6] == Unknown. */ if ( preg_match_all( '/'. $pattern .'/s', $post->post_content, $matches ) && array_key_exists( 2, $matches ) && in_array( $shortcode, $matches[2] ) ) { // Parse the shortcode atts. $atts = shortcode_parse_atts( $matches[3][ array_search( $shortcode, $matches[2] ) ] ); // Remove the cn-image query vars. $wp_query->query_vars = array_diff_key( (array) $wp_query->query_vars, array_flip( array( 'src', 'w', 'h', 'q', 'a', 'zc', 'f', 's', 'o', 'cc', 'ct' ) ) ); // Show the just the search form w/o showing the intial results? // If a Connections query var is set, show the results instead. if ( isset( $atts['initial_results'] ) && strtolower( $atts['initial_results'] ) == 'false' && ! (bool) array_intersect( $registeredQueryVars, array_keys( (array) $wp_query->query_vars ) ) ) { // Add return = true to $atts so template part are returned instead of echoed. $atts['return'] = true; // Enqueue the CSS and JS. We need to use the action because we're hooked // way to early in WP to use wp_enqueue_style() and wp_enqueue_script(). add_action( 'wp_enqueue_scripts', array( 'cnScript', 'enqueueStyles' ) ); // Add action to enqueue Chosen. add_action( 'wp_enqueue_scripts', 'cn_enqueue_chosen' ); add_action( 'wp_print_footer_scripts', 'cn_init_chosen', 999 ); // Passing the shortcode $atts incase there are any template part specific shortcode options set. $category = cnTemplatePart::category( $atts ); $search = cnTemplatePart::search( $atts ); $formOpen = cnTemplatePart::formOpen( $atts ); $formClose = cnTemplatePart::formClose( $atts ); // Create the final output. $replace = $formOpen . $category . $search . $formClose; // All returns and tabs should be removed so wpautop() doesn't insert <p> and <br> tags in the form output. //$replace = str_replace( array( "rn", "r", "n", "t" ), array( ' ', ' ', ' ', ' ' ), $replace ); // This needs to be wrapped in a div with an id of #cn-list so the CSS styles will be applied. $replace = '<div id="cn-list">' . $replace . '</div>'; } else { // Rewrite the $atts array to prep it to be imploded. array_walk( $atts, create_function( '&$i,$k','$i="$k=\"$i\"";' ) ); $replace = '[' . $shortcode . ' ' . implode( ' ', $atts ) . ']'; } // Replace the shortcode in the post with something a new one based on you changes to $atts. $post->post_content = str_replace( $matches[0][ array_search( $shortcode, $matches[2] ) ], $replace, $post->post_content ); } } } return $posts; } function cn_enqueue_chosen() { // If SCRIPT_DEBUG is set and TRUE load the non-minified JS files, otherwise, load the minified files. $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; wp_enqueue_script( 'jquery-chosen', CN_URL . "vendor/chosen/chosen.jquery$min.js", array( 'jquery' ), '1.1.0', true ); } function cn_init_chosen() { ?> <script type="text/javascript">/* <![CDATA[ */ jQuery('select[name^=cn-cat]').chosen(); /* ]]> */</script> <?php } add_filter( 'the_posts', 'cn_initial_search_filter', 1000, 2 );Attachments:
You must be logged in to view attached files.Steven Zahm
Keymaster@ Christopher
I just tried to login. I get an error message that the User has not been activated. Can you activate the user account? This isn’t default WordPress behavior so I’m guessing you have a plugin installed that manages this, yes?
Steven Zahm
Keymaster@ dominic
A percentage really would not work well at all. I can not think of any other way to do this because to center a container div, that contain must have a defined width ion order for the left/right margin auto to work.
Steven Zahm
Keymaster@ Shanna
It sounds like you have registered WordPress users submitting entries, yes? If that is the case, go to the Connections : Roles admin page and make sure the role capabilities for those users are set to
Add Entry ModeratedandEdit Entry Moderated.That’ll do it.
Hope this helps!
Steven Zahm
Keymaster@ Roland
The design philosophy behind Connections … I try to closely mimic that of the WordPress developers. Provide decisions, not options. Where I deviate … for advanced users willing to tweak or take the time to learn to tweak I provide an very wide range of configuration and option. So, there’s really not much to configure. The only required setting is setting the directory home page which Connections will nag about until the settings has been set.
For extensions, even those have absolutely minimal required setup. Those details are provided on the Installation Instructions sub-page of the item. For example, on the main nav, hover over Extensions, then hover over Link. You will see an Installation Instructions sub page. You can also get to this page by clicking the Documentation link under the Extension Info in the right sidebar as well under the Documentation section at the bottom of the page on the Link.
In addition to the minimal setup, if required at all, there is a FAQ page for each template and extension. You can find that page the same way as locating the installation instructions.
The instructions and FAQs are separated like this on purpose because lumping everything together would far more difficult and confusing.
On to answer your secofc questions…
re: How do I use the SiteShot, – I just don’t get how it works?
If you have followed the installation instructions, addingimage=siteshotto the[connections]shortcode like so[connections image="siteshot"]a screenshot of the entries website, if one has been entered, will be used. Nothing else to do.re: How do I give customers the login details they need to modify their information?
You need a plugin to handle user registrations or use the default WordPress registration page. On you site it would be http://www.glasshousecountry.com/wp-login.php?registration which you currently have disabled. Make sure Link is installed and activated. When the user registers and logs in, they will be linked to their entry based on matching the meila address in the user account and Connections entry. As for the rest of the installation and configuration, refer to that page as it has much more detail.re: I read about require login, but I do not understand all the options that available.
Because you said this; “I want everyone to be able to browse the directory without login.“. You do not need to configure the two options related to this which is if it is required or not and the message to display if the user is not logged in.re: I do not understand the difference between image and logo
A logo is not a image. Semantics really, that’s all. People generally use the logo for a business logo and the image for an individuals photo or some other image relating to that entry. Ultimately, that is up to you.re: why does the logo not appear in the Dashboard
It does, it is viewable when you edit the entry. If there is an image uploaded, that will be display, as a visual cue only, on the Connections : Manage admin page. The logo is not displayed there, that does not mean one is not associated with the entry.re: The other thing I do not understand is the payment and billing options for customers which I read about
There is none with Connections, you might be confusing it with something else. Users that want this with Connections generally use a membership plugin like Restrict Content Pro to handle user registration and verification while limiting access to the add you entry Connections pages with the membership plugin. This type of setup is generally very complex. Sounds like you might need someone to setup all this for you. This is not a service I provide.I hope this really does help and provide a little more clarity. Excuse any typos above, which I’m sure there are many :)
Steven Zahm
Keymaster@ Vern
Here’s a link to the FAQ that explains importing the categories that are to be associated to an entry on import.
No, having 400 categories is not a problem. My test db has nearly 1700 categories and over 25000 entries.
Hope that helps!
Steven Zahm
Keymaster@ Roland
Sorry, I do not have a real answer than maybe or maybe not. I’ve never tested what the effects would be. Not sure how some are even able to delete it because is prevented in the code.
-
AuthorPosts
