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.
Tagged: 0.7.7, exclude category, link, remove_meta_box
- This topic has 14 replies, 3 voices, and was last updated 9 years, 11 months ago by
Steven Zahm.
-
AuthorPosts
-
02/10/2013 at 9:51 am #251122
Kylie
GuestLOVE, LOVE, LOVE Link, BTW. It has made my site so much easier for users to edit their own details and my clients love it.
Quick question, as I am no longer bothering with “form”, is it possible to limit the users ability to choose categories for their listing based on their WP User access? ie, Subscribers should not be able to choose the “Board Members” categories in the listings. Is this possible?
02/10/2013 at 3:22 pm #251149Steven Zahm
Keymaster@ Kylie
Many thanks! I think you’ll also like some of the features I have planned for Link.
I’ll be working on a way to exclude categories, but I hadn’t considered doing it based on role. It’s a good idea which I’ve added to my feature request list. So, I guess with that said, no, there is not currently a way to do this, sorry.
06/05/2013 at 8:43 am #261768Michael Conaty
ParticipantOn a somewhat related question, is there a way to completely hide sections from subscribers on the Edit My Directory Listing page?
I’m using Connections for an association directory, where the categories are based on the membership level (Accredited Member, Non-Accredited Member, Affiliate Member, etc.) but we don’t want each member to be able to change their category. I’d like to hide the Categories section so they don’t even have the option to change it. Possible?
06/05/2013 at 11:09 am #261784Steven Zahm
Keymaster@ Michael
The only way this is possible is by editing the manage.php PHP file.
I think this would work, meaning untested:
Insert on line 4
remove_meta_box( $connections->pageHook->link, 'connections_link', 'side' );
06/05/2013 at 11:24 am #261785Steven Zahm
Keymaster@ Michael
Just tested, use this code instead:
remove_meta_box( 'categorydiv', $connections->pageHook->link, 'side' );
06/05/2013 at 12:06 pm #261790Michael Conaty
Participant@ Steven
Thanks for the quick reply!
Added that line, but it had no effect at all on the Edit My Dir Listing page.
On a hunch, I added a plugin called User Role Editor that gave me the option to select a capability called connections_edit_categories, which removed that metabox from the Edit My Dir Listing page. Looks like it pulls hooks from plugins, and allows you to manage them in one place.
Now, if I can figure out how to pull out the IM and Notes sections, I’ll be all set.
-
This reply was modified 10 years ago by
Michael Conaty.
06/05/2013 at 7:47 pm #261818Steven Zahm
Keymaster@ Michael
You’re sure it was the User Role Editor? That should not have an effect on the form meta boxes…
The code to remove IM and notes would be:
remove_meta_box( 'metabox-messenger', $connections->pageHook->link, 'normal' ); remove_meta_box( 'metabox-note', $connections->pageHook->link, 'normal' );
06/09/2013 at 4:28 pm #262180Michael Conaty
Participant@ Steve
I’m sure. It’s User Role Editor version 3.14.1. It has an option in the Custom capabilities section of the settings for connections_edit_categories that hid the Category meta box on the Edit My Directory Listing page.
Thanks for the other remove code snippets!
06/12/2013 at 9:07 am #262389Michael Conaty
Participant@ Steve
I had to uninstall User Role Editor because of the conflict, and using the above code, everything is purring along.
I’ve tried removing 2 other meta boxes using the above as a template, but it’s not working for me. I’m trying to remove the Logo and Dates meta boxes using:
remove_meta_box( 'metabox-logo', $connections->pageHook->link, 'side' ); remove_meta_box( 'metabox-date', $connections->pageHook->link, 'side' );
Any ideas for me?
P.S. The client is over-the-moon happy with Connections!
06/12/2013 at 12:53 pm #262428Steven Zahm
Keymaster@ Michael
Close. It should be:
remove_meta_box( 'metabox-logo', $connections->pageHook->link, 'normal' ); remove_meta_box( 'metabox-date', $connections->pageHook->link, 'normal' );
-
This reply was modified 10 years ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.