BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 471 through 480 (of 15,332 total)
  • Author
    Posts
  • in reply to: Locations Map #484362
    Steven Zahm
    Keymaster

    @ Melanie

    You can contact Craig from this support thread:

    https://connections-pro.com/support/topic/links-cache-home-page-radius/

    He’s worked out a method to use Connections data in a third party mapping plugin.

    in reply to: Links, Cache, home page, 'Radius' … #484361
    Steven Zahm
    Keymaster

    @ Craig

    RE: [connections category="sample"]

    The category shortcode take a category ID, a number, not the name. That would explain why it does not work for you.

    Hope that helps!

    in reply to: Reporting capabilities?? #484354
    Steven Zahm
    Keymaster

    @ Lucy

    RE: Does Connections have any type of reporting capabilities, like what categories were searched most with and without matches within a given time frame??

    Sorry, no, but you could probably use Google Analytics.

    RE: is there any way to pull in a mapping feature by category, or can you only get to the google map, once you’ve selected the entry?

    Sorry, no, Connections does not yet have a cluster map feature.

    Steven Zahm
    Keymaster

    @ Rico

    What is the old and new domains?

    in reply to: Updating website and Connections #484352
    Steven Zahm
    Keymaster

    Yes, I would update WP first and then Connections.

    Steven Zahm
    Keymaster

    @ Stephen

    RE: I want the dropdown menu to show categories from the root category “35”

    Try:

    [connections show_org='FALSE' show_image='TRUE' category=35 enable_category_by_root_parent='TRUE' show_addresses='TRUE' show_phone_numbers='TRUE' show_email='TRUE' str_select="Select Region" str_select_all="Show All Regions" show_empty_categories='FALSE' str_contact="Contact" str_home_phone="tel" str_cell_phone="mobile" str_work_phone="tel" str_personal_email="@" str_work_email="@" contact_name_format="%first% %last%" addr_format="%line1% %line2% %line3% %city%, %zipcode% %country%" background_gradient='FALSE' background_color="#fefefe" str_note_head="About my practice"]
    

    Or, with your existing shortcode you could try adding exclude_category=X where X is the category ID of the category you want to exclude. I’m not exactly sure if that will give the results you are looking for.

    in reply to: Locations Map #484350
    Steven Zahm
    Keymaster

    @ Melanie

    RE: Is there a map feature within the theme that shows all locations?

    Sorry, no, this is not yet a feature in Connections.

    in reply to: Custom Fields in Cmap and rows #484349
    Steven Zahm
    Keymaster

    @ Roland

    RE: template cmap.
    We would like to have a width with 25% and 4 rows.

    Sorry, but cMap is not design with being used in a columnar format and is not supported. The sliding content trays for the bio and map fields do not work well in a columnar layout. The expanding size of the entry cards will cause the page to jostle around to fit the new heights. If you would like to give a try anyway, here’s a bit of custom CSS to get your started:

    #cn-cmap .cn-list-row,
    #cn-cmap .cn-list-row-alternate {
        display: inline-block;
        margin: 0 10px 20px 0;
        max-width: 24%
    }
    

    RE: we need 3 custom fields with the option to select some features.
    For example: Color is the field and we can select 4 different colors…
    How we can realize this?

    Custom fields are possible to add, but is developer level feature. Here’s a few links you can refer to to add custom fields:

    Hope this helps!

    in reply to: Links, Cache, home page, 'Radius' … #484348
    Steven Zahm
    Keymaster

    @ Craig

    RE: I wanted to change the word “Radius” to “Max distance” and tried Say What and other methods to no avail.

    Yeah, this addon, since it is still beta, is still not 100% translation ready. Editing the code was the only way to make the change.

    RE: You have a way to change the zip placeholder, but not that label. Do I have another option?

    Hmmm… not sure I follow. There are no labels. Can you attach a screenshot showing what you mean?

    RE: Do I have another option? Can you promise to never update your code? (kidding!).

    lol, Actually I plan on changing it, a lot, this year. I want to convert this to a new WordPress 5 Editor block. This way I can make setup point and click. :)

    RE: Is there a cache plugin you recommend or know is compatible? Or any to avoid?

    I personally use and like WP Rocket. For me, it just works. I use to use W3TC. It is a very powerful caching solution, but, I found myself constantly fiddling with its settings after every, single, update to get things working again. When I say updates… not specifically Connections, but WP,the them, any other plugin. In providing support, I come across many users using Super Cache. Another good plugin, but it always seemed to be a little quirky.

    Just my experience, so, your result may vary :)

    RE: When someone comes to the site I have the multi-category-search showing and [connections]. I would like there to be only one organization showing (I have a category of “Sample” with one entry) sort of as a default. I can put a screen shot of it under your shortcode as a workaround but that’s not ideal. Suggestion?

    You could try using this shortcode:

    [connections category=X]

    Where X is the category ID of “Sample”

    For your use, that may or may not work all that well. You might get better results by adding this Code Snippet. I’ve never tested it against the advanced search though.

    function cn_reset_category_search_filter( $posts, $WP_Query ) {
        global $wp_query;
    
        $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' ) ) );
    
                    // If the `category` shortcode option is set and the user is not performing a search of any type, limit the results the categories defined by the shorcode option.
                    // If a Connections query var is set, show all results according to the query.
                    if ( isset( $atts['category'] )
                        && (bool) array_intersect( $registeredQueryVars, array_keys( (array) $wp_query->query_vars ) )
                       )
                    {
    
                        unset( $atts['category'] );
    
                        // Rewrite the $atts array to prep it to be imploded.
                        array_walk( $atts, create_function( '&$i,$k','$i="$k=\"$i\"";' ) );
    
                        $replace = '[' . $shortcode . ' ' . implode( ' ', $atts ) . ']';
    
                    } 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;
    }
    
    add_filter( 'the_posts', 'cn_reset_category_search_filter', 1000, 2 );
    

    RE: Some of my entries have the same contact email and that is appropriate in my usage. Am I doomed with regards to the Link plugin?

    I guess that depends… it it was hoped that contact could edit all entries with their email address … sorry, but that will not work because it is a one-to-one relationship, not one-to-many.

    If you allow the contact to register and rely on the autolink feature, based on email. It will seem random as to which entry the user will get linked to.

    I think I would suggest only adding the entries that you want to linked to users first. Ensure they get their proper links and then import any of the schools where the contact email is displicate

    Hope that makes sense!

    RE: And connections-initial-search-results is not working for me. It is installed and the box is checked to suppress results.

    Try testing without the caching enabled on your site. Before sure to flush it first. Some caching plugin will still serve old cached pages even when deactivated (cough, cough WP Super Cache). If that work, just exclude the directory page.

    I know this is long… but I hope it helps!

    in reply to: Selecting Multiple categories in search. #484347
    Steven Zahm
    Keymaster

    @ Mark

    RE: Im not super experienced in shortcode. Woould you know where it is best top add enable_category_multi_select=true

    Are you using the shortcode to embed the directory or the new WordPress 5 Editor block?

    RE: Do send on the multiple category add on too, many thanks

    Ok, will do. If you do not receive the email, please let me know. And, as mentioned, this does have a complex shortcode for configuration. So, if you are not super experienced, it might be a little difficult to understand.

Viewing 10 posts - 471 through 480 (of 15,332 total)