BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 5,281 through 5,290 (of 15,332 total)
  • Author
    Posts
  • Steven Zahm
    Keymaster

    @ dominic

    The issue is that the label attribute doesn’t support HTML tags even though it worked on prior versions. It is just now properly escaped whereas it was not before. If you want to make the label bold with space after it, you should use CSS. You can use the .cn_category_label CSS selector.

    The same for the separator.

    If you want a list, try this instead:

    $entry->getCategoryBlock(
        array(
             'label' => 'Skills:',
             'type'  => 'list',
        )
    );
    

    That should get you back on track. Hope that helps, let me know.

    in reply to: Connections Not Showing #384606
    Steven Zahm
    Keymaster

    @ Lara

    Did you add the shortcode to the page? See step 4 of the quick install guide.

    Hope that helps, let me know.

    Steven Zahm
    Keymaster

    @ Sindhu

    Yes, please see the Link extension.

    Hope that helps!

    in reply to: Display Notes in place of Bio #384581
    Steven Zahm
    Keymaster

    @ Eugene

    This is possible but you will have to edit the templates PHP file in order to do this.

    Open the card.php file found here:
    ../wp-content/plugins/connections-gridder/

    Look for this chunk of code:

    if ( $atts['excerpt_length'] ) {
    
        echo cnString::excerpt(
            apply_filters( 'cn_output_bio', $entry->getBio() ),
            array(
                'length' => $atts['excerpt_length'],
                'more'   => $atts['excerpt_more']
                )
            );
    
    } else {
    
        echo apply_filters( 'cn_output_bio', $entry->getBio() );
    }
    

    Change it to this:

    if ( $atts['excerpt_length'] ) {
    
        echo cnString::excerpt(
            apply_filters( 'cn_output_notes', $entry->getNotes() ),
            array(
                'length' => $atts['excerpt_length'],
                'more'   => $atts['excerpt_more']
                )
            );
    
    } else {
    
        echo apply_filters( 'cn_output_notes', $entry->getNotes() );
    }
    

    Save the changes. I highly recommend following the advice in the custom template override files tutorial on where to put this altered file so your changes are not lost during an update.

    Hope that helps!

    in reply to: Authored Extension won't show. #384580
    Steven Zahm
    Keymaster

    @ Harold

    I can add that to my feature request list. I guess using the featured image thumbnail set by the theme would be best, right?

    in reply to: Authored Extension won't show. #384418
    Steven Zahm
    Keymaster

    @ Harold

    It seems the Connections Link metadata for those two users were somehow “corrupted” (for a lack of a better term). I’ve manually corrected this and now things seems to be working fine.

    Hope that helps! Apologies for the trouble!

    in reply to: Add Entry Default Settings #384412
    Steven Zahm
    Keymaster

    @ Brian

    great to hear!

    in reply to: Show Detail Link on Famil Relation Links #384335
    Steven Zahm
    Keymaster

    @ William

    Within the copied code from the original getFamilyMemberBlock() function you’ll find this line; $relation = new cnOutput();. Now, within your custom function you be able to use like this:

    if ( $atts['show_phonumbers'] ) $html = $html . $relation->getPhoneNumberBlock( array( 'format' => $atts['phone_format'] , 'type' => $atts['phone_types'] ) );

    You would add this to your custom family function, not in the template. Also, take note that it is $relation->getPhoneNumberBlock() and not $entry->getPhoneNumberBlock().

    Hope that helps!

    ps.

    re: I added my function “getFamilyMemberDetailBlock” to class.entry-output.php, as instructed above.

    No, you should not edit the class.entry-output.php file. Any changes you make there will be lost during an update. Put your custom function elsewhere. For example in a code snippet.

    in reply to: Ability to add PDF to member profile? #384331
    Steven Zahm
    Keymaster

    @ Pip

    Upload the PDF/s to your Media Library. You can then add links to the PDF in bio or notes fields.

    Hope that helps, let me know.

    in reply to: Date Formatting #384330
    Steven Zahm
    Keymaster

    @ William

    re: Is there a way to remove or disable them?

    Sure, use CSS to hide it. I believe it is the border attribute.

    re: Why are they displayed this way?

    If you are seeing them, it is likely the theme or another plugin is adding the border because the default styling in Connections is for no border.

    Hope that helps!

Viewing 10 posts - 5,281 through 5,290 (of 15,332 total)