BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 1,501 through 1,510 (of 15,332 total)
  • Author
    Posts
  • in reply to: Custom meta fields not imported #467105
    Steven Zahm
    Keymaster

    @ Age

    You should see a new update for CSV Import, please update and change the code snippet to this code to make it compatible with 2.0:

    add_filter( 'cncsv_map_import_fields', 'cncsv_import_meta_fields_options' );
    function cncsv_import_meta_fields_options( $fields ) {
    
        $fields['member_nobnummer']          = 'Membership | NOB-nummer';
        $fields['member_noodcontactpersoon'] = 'Membership | Naam contactpersoon bij nood';
        $fields['member_hoogsteduikbrevet']  = 'Membership | Hoogste duikbrevet';
        $fields['member_soortlidmaatschap']  = 'Membership | Soort lidmaatschap';
        $fields['member_instructeur']        = 'Membership | Instructeur';
        $fields['member_instructeursnummer'] = 'Membership | Instructeursnummer';
    
        return $fields;
    }
    
    add_action( 'cncsv_import_fields', 'cncsv_import_meta_fields_import', 10, 3 );
    function cncsv_import_meta_fields_import( $id, $row, $entry ) {
    
        $nobnummer          = $entry->arrayPull( $row, 'member_nobnummer', '' );
        $noodcontactpersoon = $entry->arrayPull( $row, 'member_noodcontactpersoon', '' );
        $hoogsteduikbrevet  = $entry->arrayPull( $row, 'member_hoogsteduikbrevet', '' );
        $soortlidmaatschap  = $entry->arrayPull( $row, 'member_soortlidmaatschap', '' );
        $instructeur        = $entry->arrayPull( $row, 'member_instructeur', '' );
        $instructeursnummer = $entry->arrayPull( $row, 'member_instructeursnummer', '' );
    
        $meta = array(
            array(
                'key'   => 'NOB-Relatienummer',
                'value' => $nobnummer
            ),
            array(
                'key'   => 'Naam contactpersoon bij nood',
                'value' => $noodcontactpersoon
            ),
            array(
                'key'   => 'Hoogste duikbrevet',
                'value' => $hoogsteduikbrevet
            ),
            array(
                'key'   => 'Soort lidmaatschap',
                'value' => $soortlidmaatschap
            ),
            array(
                'key'   => 'Instructeur',
                'value' => $instructeur
            ),
            array(
                'key'   => 'Instructeursnummer',
                'value' => $instructeursnummer
            )
        );
    
        cnEntry_Action::meta(
            'update',
            $id,
            $meta
        );
    }
    

    Hope this helps, let me know!

    in reply to: Allow "Editor" to Export #467021
    Steven Zahm
    Keymaster

    @ Glenn

    You can use a a role editor plugin and give the Editor role the Export capability. This is probably the easiest solution. You could also hook into the cn_csv_export_capability filter and apply your own logic on whether a user is permitted to export or not.

    Hope this helps!

    in reply to: Parameters stripped off from Customizer URL #467020
    Steven Zahm
    Keymaster

    @ Age

    I went to make the change but unfortunately the plugin editor has been disabled. Can your temporarily enable it so I can make the change?

    in reply to: No Option To Add Entry #467019
    Steven Zahm
    Keymaster

    @ Sergio

    RE: Is that the link feature, which connects directory entries to registered wordpress users?

    Yes, the Link extension will link a directory entry to a WP user.

    RE: does the link feature (which among many functions) that connects emails from logged in users to directory entries also work if using the “switch to user” is accessing a user

    Yes, Link does support the User Switching plugin.

    Hope that answers your question.

    in reply to: Yoast and Image Previews #467018
    Steven Zahm
    Keymaster

    @ Casper

    The page seems use the Yoast SEO Facebook/Twitter image feature. That would somehow have to be overridden. Perhaps the easy solution for this one page is to remove the specified image in Yoast SEO.

    in reply to: Having categories show in panel, first screen #467017
    Steven Zahm
    Keymaster

    @ Michael

    You would have to wrap the image within an a tag. To get the entry permalink for the href attribute you can use the $entry->getPermalink() method.

    Hope that helps!

    in reply to: Internal Server Error 500 #467015
    Steven Zahm
    Keymaster

    @ Carrie

    Great to hear!!!

    in reply to: Anniversary-and-Birthday-Email Error #467014
    Steven Zahm
    Keymaster

    @ giri

    Can you please share a screenshot of the settings and an entry or two of email that are to be sent?

    in reply to: Logo and Image not visible #467013
    Steven Zahm
    Keymaster

    @ Marcel

    Ok, after taking a second look it is indeed the theme. For some reason it is intentionally hiding all images which do not have a src attribute. Connections uses the HTML5 srcset attribute instead, so all its images are hidden.

    Add the following to the theme’s custom CSS area to fix this:

    img.cn-image {
        visibility: visible;
    }
    

    Hope that helps, let me know.

    in reply to: Internal Server Error 500 #466980
    Steven Zahm
    Keymaster

    @ Carrie

    Following up up to see if you were able to make any progress?

Viewing 10 posts - 1,501 through 1,510 (of 15,332 total)