BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 6,561 through 6,570 (of 15,332 total)
  • Author
    Posts
  • in reply to: Modifying Default Template Display #361438
    Steven Zahm
    Keymaster

    @ Christine

    Go to the Connections : Templates admin pager, click the Customize button for the Default Entry Card. The page will reload with a preview on the right and the Customizer only the left. In that list of items being displayed, uncheck the categories option and then click the Save and Public button. Also, since the changes are configured separately for both the list view and profile view you will need to click the name of the first entry in the list in the preview. The preview will reload displaying only that entry’s profile page. In the list of items that are being displayed in the Customizer, uncheck the categories option and click the Save and Publish button. You can now exit the Customizer.

    That should do it, hope that helps!

    in reply to: Single Entry page no longer displaying correctly #361437
    Steven Zahm
    Keymaster

    @ Chad

    Yeah, sorry, the code I gave will need tweaked just a really tiny bit.

    add_action( 'plugins_loaded', 'cn_remove_single_entry_shortcode_filter' );
    
    function cn_remove_single_entry_shortcode_filter() {
        remove_filter( 'the_content', array( 'cnShortcode', 'single' ), 6 );
    }
    

    I had to increase the priority from 7 to 6 for the filter for compatibility reasons. Unfortunately WP requires the priority when removing filters so me changing the priority “broke” the code I gave because the priorities no longer matched.

    Apologies for the trouble, hope this helps!

    ps. I don’t often change filters or priorities… only when I need to for compatibility or conflicts with other plugins/themes so you should not encounter this too often… or maybe never again, I hope.

    in reply to: adding a footnote to emails #361365
    Steven Zahm
    Keymaster

    @ Richard

    Alrighty, here the code:

    add_filter( 'cn_email_message', 'cn_append_email_message' );
    
    function cn_append_email_message( $message ) {
    
        $append = "\r\r" . 'This email has been sent via the ' . get_bloginfo( 'name' ) . ' website.';
    
        return $message . $append;
    }
    

    I did not test it, but it should work. Let me know how it goes.

    in reply to: cMap: Expand and collapse blocks #361364
    Steven Zahm
    Keymaster

    @ George

    You can not use the “block” functions … you have to use the “data” functions:

    $entry->getAddresses()
    $entry->getPhoneNumbers()
    $entry->getEmailAddresses()
    $entry->getIm()
    $entry->getSocialMedia()
    $entry->getLinks()
    $entry->getDates()
    

    The block echo out the HTML and the data returns array containing the data.

    Hope that helps!

    in reply to: cMap: Expand and collapse blocks #361352
    Steven Zahm
    Keymaster

    @ George

    Glancing at the code it looks like you only added the additional if statement to the IM and email block and not to the others which would explain why it worked for those and not the others. Does that make sense?

    in reply to: Search box in homepage #361351
    Steven Zahm
    Keymaster

    @ Sudheer

    re: I want to add a search form where i can search name or choose a category field.

    The easiest way to add search to the site’s home page would be the Search widget included in the Widget Pack. The Widget Pack also comes with a category list widget, though you should not use that in combination with the category filter that comes with Gridder. You should use one or the other.

    Hope that answers your question thoroughly.

    in reply to: Users unable to edit in the front end #361349
    Steven Zahm
    Keymaster

    @ Patricia

    re: The only outstanding thing I need to do with this is figure out how to remove associations. We cannot delete users and their profiles and have them start over again, and I know that there are a few people who have valid profiles but they are no longer linked.

    This is also saved in the usermeta table. Look for the connections_entry_id for the user id that you want to remove the link from and delete that record.

    That will break the link and when they next login, Link will relink the user account to the Connections entry based on an email match.

    re: That would be an often used feature if not, to be able to “reset” and disassociate a user with a profile so it can link back up again.

    This should not be needed, any time an entry is deleted or a user is deleted, link runs and action to delete the usermeta. Now where that can break. Link has to hook into a few standard WP hooks which other plugins can hook and often do hook into. If those other plugins a “greedy” and do not take into consideration that other plugins also hook into the same hook that can cause problems. It would be the first time I’ve run into this. It is malice by the other plugin devs it is they may not fully understand how WP hooks work. I’ve been there myself.

    I’m not opposed to adding such a feature but I do fear that adding it could open the door to the possibility of users not fully understanding the effects of using them and cause himself some confusion and frustration. My initial thought of where to add the user interface would be a drop down on the User profile page for the admin to choose the entry to link to. And if an entry is link, instead show a button to unlink. Same for the Connections entry, on the add/edit screen show a list of users available to link to allow the admin to link and if a entry is link show a button to unlink. Do you think something like that would work and not be confusing?

    in reply to: Grid images #361330
    Steven Zahm
    Keymaster

    @ Alfonso

    re: I tried the 4 different crop modes for Thumbnail Image, Medium Image, Large Image and Logo but the images remain the same.

    Changing the crop mode on the Image settings will not affect the image used on the Gridder page. Only the Large Image size and its crop mode will be applied to the image on the profile page of the entry.

    The crop applied to the grid images, like I mentioned is -> the image will be scaled down using the smaller dimension and then the larger dimension will be cropped based center of the image.

    re: I also tried to upload smaller size images and the problem is not solved.

    Uploading smaller will not change anything because the image would have to be scaled up instead so you would end up being blurry.

    re: Do you know what could be the problem?

    Yes, I see you’re uploading logos… those will not generally look good because of how the image is scaled and cropped because logo are never “square” (for a lack of a better term). The crop mode on the grid images is designed to be a good fit for profile pictures of people which is why the images are scaled to fit and cropped based on the image center this is because that is where faces generally are in profile shots.

    What you need is the images to be simply scaled to fit the size adding a border as needed. The only way to do this would be to edit the card.php found here: ../wp-content/plugins/connections-gridder/

    Change this:

        <?php $entry->getImage(
            array(
                'image'    => $atts['image'],
                'height'   => $atts['image_height'],
                'width'    => $atts['image_width'],
                'fallback' => array(
                    'type'     => 'block',
                    'string'   => ''
                    ),
                'style'    => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(),
            )
        ); ?>
    

    to this:

    <?php $entry->getImage(
        array(
            'image'    => $atts['image'],
            'height'   => $atts['image_height'],
            'width'    => $atts['image_width'],
            'fallback' => array(
                'type'     => 'block',
                'string'   => ''
                ),
            'zc'       => 2,
            'style'    => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(),
        )
    ); ?>
    

    That crop mode will be better suited for logos.

    Hope that helps!

    in reply to: Order in the individual page #361306
    Steven Zahm
    Keymaster

    @ Alfonso

    re: Is it posible to display the contact form before the Biography text?

    It is possible but would require altering the PHP code of the template so the content block appear before the bio. The file you would have to edit it card-single.php found here ../wp-content/plugins/connections-gridder/

    re: Is it posible to display the Name and Email address fields in the same line?

    This too is possible but would require custom CSS what custom CSS is really depends on the theme that you are using because often theme’s have their own styling applied to form inputs.

    re: Is it posible to change the heading “Email Entry”?

    Yes, install the Say What? plugin.
    Add a new text change found under the Tools with the following settings.

    • Original string: Email Entry
    • Text domain: connections_contact
    • New string: Whatever you want

    Save it.

    Hope that answers your questions thoroughly.

    in reply to: Change custom field string #361305
    Steven Zahm
    Keymaster

    @ Theresa

    re: Where do I add the custom string to my CVS file?
    At the end?

    Sorry, no, it is not possible to import into the custom fields at this time without it being custom coded by a developer.

Viewing 10 posts - 6,561 through 6,570 (of 15,332 total)