Forum Replies Created
-
AuthorPosts
-
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!
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_capabilityfilter and apply your own logic on whether a user is permitted to export or not.Hope this helps!
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?
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.
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.
Steven Zahm
Keymaster@ Michael
You would have to wrap the image within an
atag. To get the entry permalink for thehrefattribute you can use the$entry->getPermalink()method.Hope that helps!
Steven Zahm
Keymaster@ Carrie
Great to hear!!!
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?
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
srcattribute. Connections uses the HTML5srcsetattribute 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.
Steven Zahm
Keymaster@ Carrie
Following up up to see if you were able to make any progress?
-
AuthorPosts
