Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 7 replies, 2 voices, and was last updated 6 years, 11 months ago by
ottomek.
-
AuthorPosts
-
06/09/2016 at 2:27 pm #378931
ottomek
ParticipantHi,
A) In this post,http://connections-pro.com/support/topic/changing-defaults-in-manage-and-add-entry/#post-373294
What would the snippet be to make the default entries Individuals? I see where to change text/name but what is the ID for Individual entries?B) We want to globally hide or remove several extra fieldsets we are not using for members (Logo, Messenger IDs, Social Media IDs, etc). Not from the Form extension but from within their user area completely when they login and update info.
I understand about Screen Options but too hard to explain this to all the members and prefer to only have displayed what will be used.
I see here in 2015 this is not an option:
http://connections-pro.com/support/topic/hiding-unwanted-filedsets-from-users-on-the-form/Is there a way now to remove/hide fieldsets completely?
Thanks,
John06/10/2016 at 10:26 am #379002Steven Zahm
Keymaster@ ottomek
re: What would the snippet be to make the default entries Individuals?
The default for a new entry is an Individual, there is no need to make any changes. Am I misunderstanding the question?
re: I see where to change text/name but what is the ID for Individual entries?
Sorry, but I do not understand. Could you give more details?
re: We want to globally hide or remove several extra fieldsets we are not using for members (Logo, Messenger IDs, Social Media IDs, etc). Not from the Form extension but from within their user area completely when they login and update info.
Well, they could be unregistered, but that would also remove it them from Form but it already has options to hide and rearrange the fieldsets. Here’s the code snippet to remove Logo, Messenger IDs, Social Media IDs:
add_action( 'admin_init', 'cn_remove_metaboxes' ); function cn_remove_metaboxes() { cnMetaboxAPI::remove( 'metabox-logo' ); cnMetaboxAPI::remove( 'metabox-messenger' ); cnMetaboxAPI::remove( 'metabox-social-media' ); cnMetaboxAPI::remove( 'metabox-logo' ); }
The one thing I am uncertain of is how this will affect Connections when adding/updating entries. The one thing that I am pretty certain is if an existing entry has data on one of these and it is then updated, that data will be “lost” because removing these will have the same effect (on submission) as removing the data when editing an entry. Depending on your needs, this may not even be an issue.
Hope that helps!
06/10/2016 at 5:08 pm #379114ottomek
ParticipantOk ignore my question about setting default to Individuals & ID for Individuals.
Removing the fieldsets with your snippet worked great.
Would there be a snippet I could add to remove “Organization” from the radio button in the admin area? Not the Organization field name but the Organization Directory type? We want only Individual types and are concerned that a user will go change this radio button to Organization but we are not using that.
Thanks,
John06/13/2016 at 12:03 pm #379314Steven Zahm
Keymaster@ ottomek
re: Would there be a snippet I could add to remove “Organization” from the radio button in the admin area? Not the Organization field name but the Organization Directory type?
Here’s the snippet:
function ottomek_link_entry_types( $atts ) { $atts['entry_type'] = array( __( 'Individual', 'connections' ) => 'individual' ); $atts['default']['type'] = 'individual'; $atts['default']['visibility'] = 'public'; return $atts; } add_filter( 'cn_admin_metabox_publish_atts', 'ottomek_link_entry_types', 11 );
Hope that helps!
06/13/2016 at 7:26 pm #379394ottomek
ParticipantThank you, that worked great.
It’s very helpful to be able to remove as many unused items as possible to help the member users not get confused or overwhelmed.
06/21/2016 at 3:59 pm #380186ottomek
ParticipantHi,
I have several more fieldsets that the client wants removed but I don’t think cn_remove_metaboxes snippet you gave me is going to work. What kind of snippet do I add to remove these completely from the Member Entry/Directory edit area?
A)”Title”, “Organization” & “Department” in the Name area? (Using Individual type only)
B) Remove the Latitude & Longitude fields from all Addresses.
C) Remove “Preferred” radio button from all Address, Email & Phone fields
Thanks.
06/22/2016 at 9:07 am #380317Steven Zahm
Keymaster@ ottomek
re: I have several more fieldsets that the client wants removed but I don’t think cn_remove_metaboxes snippet you gave me is going to work. What kind of snippet do I add to remove these completely from the Member Entry/Directory edit area?
Correct using the cn_remove_metaboxes snippet will not work in this case. What you have to do is hide those fields using CSS.
06/22/2016 at 1:47 pm #380357ottomek
ParticipantYes CSS and display: none worked good.
.cn-metabox#cn-metabox-section-title, .cn-metabox#cn-metabox-section-organization, .cn-metabox#cn-metabox-section-department {
display: none!important;
}.preferred {
display: none!important;
} -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.