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.9.3, code snippets, entry type, form, link, metabox, rte
- This topic has 16 replies, 3 voices, and was last updated 9 years, 6 months ago by
Steven Zahm.
-
AuthorPosts
-
02/16/2014 at 9:04 pm #280221
Wayne
ParticipantAlready used ‘Say What?’ plug-in to change ‘Biography’ to ‘Description’ and ‘Notes’ to ‘Keywords/Tags’.
BTW: The ability to disable HTML/formatting for a text box (ex: ‘Notes’ to be text only) would be a nice option.
What’s needed is the ability to customize (show/hide) parts of the ‘Your Directory Entry’ form like you can in the ‘Form’ extension (ex: hide/remove ‘Dates’ section). Also the ability to choose which form types are available (ex: only have ‘Organization’ and not use ‘Individual’ and/or ‘Family’ forms).
Is there was a way for the user to edit their entry using the ‘Form’ extension? If so then there would be no reason to have the user in the back-end (wp-admin) of my site at all (would be way better solution).
02/17/2014 at 9:24 am #280243Steven Zahm
Keymaster@ NetWarden
Sorry, no, not with the current version of Form. Frontend editing when Link is installed and active will be a feature in the next release.
You can turn off the RTE in Form by adding
rte=false
to the shortcode. However, this will effect both the bio and notes fields.The metaboxes on the ‘Edit Your Directory Entry’ admin page has some configuration options using the Screen Options tab in the upper right corner. However, this is a per user setting, not global.
To remove the Dates metabox import and activate the attached snippet.
Install the Code Snippets plugin.
Download and unzip the file attached to this reply.
Import the code snippet XML file, search.code-snippets.xml, into Code Snippets. See the FAQs on where to find the import feature.
Activate the newly imported snippet.I also attached a snippet which removes the individual and family entry types as options. Although, I think that might cause an error when saving because the default type is individual which can only be changed here.
-
This reply was modified 9 years, 7 months ago by
Steven Zahm.
Attachments:
You must be logged in to view attached files.02/17/2014 at 12:03 pm #280264Wayne
ParticipantSo you are saying that ‘Form’ will have this ability when teamed up with ‘Link’ in the next release? If so looking forward to the next release! (hopefully soon.)
Re: switching off RTE (all or nothing)
Hmm, I guess we can’t have our cake and and eat it too? Fixing this to work for Notes and Bio separately should be a feature to insert into the next release as well (ex: rte_notes=’false’ and rte_bio=’false’). Doing this little thing would make your pug-in way more versatile for myself and others.
Re: Customizing user’s ‘Your Directory Entry’ form itself.
I will give your mods a try, However it might be a good idea to add ‘Default Type’ selection somewhere in the Connections->Settings and maybe check boxes for which types to enable/disable for the next release. Again this feature would make your pug-in even more versatile for more of your customers.
I tried the ‘code-snippets’ instructions for ‘Remove Dates Metabox from Link’ and it did not remove the Dates Metabox. The ‘Remove Individual and Family entry types’ did work, without the hard-coding part it showed only ‘Organization’ in the publish box (not selected) and the ‘Individual’ form format was still displayed. With the hard coding part done it showed only ‘Organization’ in the publish box (selected) and the proper ‘Organization’ form format was displayed.
After (and if you apply all) the above tweaks and my ‘more than one Categories group’ idea (mentioned in a different post) I think that your Connections Plug-in would be just about perfect for myself and all your other clients!
02/17/2014 at 12:35 pm #280268Steven Zahm
Keymaster@ NetWarden
Hmmm, the remove dates didn’t work. Likely due to I’m on the dev version of Connections which has substantial changes. My guess would the issue is due to execution order.
Try editing the snippet. Change this line:
add_action( 'load-users_page_connections_link', 'netwarden_link' );
To:
add_action( 'load-users_page_connections_link', 'netwarden_link', 11 );
I don’t think I’ll be adding settings to configure the entry types. That is something only a relatively few want to do. I have the filters for the advanced users can hook into and change. I have already added a filter to alter the default type so that would not require a code change. Actually it is the same filter used to change the available entry types.
If you want to make that snippet I gave you forward compatible add the following to it:
$atts['default']['type'] = 'organization'; $atts['default']['visibility'] = 'public';
02/17/2014 at 1:14 pm #280270Wayne
ParticipantRe: remove dates didn’t work
Yes I did revert to using the non-dev version of Connections. I want to be running the stable release on my live site.
I did make the changes and still no luck.
Re: adding settings to configure the entry types
I understand your position on this, just surprised that users would not want this option without having to ‘hack’ the plug-in.
I assume the additional code-snippet goes at the beginning of the existing code-snippet?
Re: switching off RTE (all or nothing)
Making only the Notes a text only box – for now is there a filter/code-snippet for this issue?
Thanks for the quick reply, your efforts in helping me to customise your plug-in again is greatly appreciated.
02/17/2014 at 4:08 pm #280273Steven Zahm
Keymaster@ NetWarden
The additional lines for the snippet can go right before of after the line that starts with
$atts
.re: rte
This can be done by editing the
connections_form.php
file. Go to line 1467:
if ( $atts['rte'] )
and change it to thisif ( false )
. That’ll do it.02/18/2014 at 10:43 am #280322Wayne
ParticipantRe: remove dates didn’t work
Yes I did revert to using the non-dev version of Connections. I want to be running the stable release on my live site.
I did make the changes in code-snippet and still not working.
re: rte
That code edit did work. This is only a temporary fix, Right?
Again thanks for the quick reply, your time and efforts in helping me.
02/18/2014 at 10:49 am #280323Wayne
ParticipantRe: rte
Almost forgot, I need a temporary fix for ‘Notes’ in the back-end edit/add form as well.
02/19/2014 at 10:46 am #280421Steven Zahm
Keymaster@ NetWarden
Sorry, there isn’t a way to make the note field in the admin text only … you would have to rewrite this section of code. No filters or snippets can accomplish this.
Yes, the code edit to Form to remove the rte is temporary. I added a note to my issue tracker to add the shortcode options. That will likely be included in the next release since it is a simple beneficial change.
02/20/2014 at 10:30 am #280518Wayne
ParticipantRe: “Sorry, there isn’t a way to make the note field in the admin text only … you would have to rewrite this section of code. No filters or snippets can accomplish this”.
I guess that I will have to live with that for now as I have no idea how to do that. I am not a programmer nor do I pretend to be one. I do my best to fumble my way through without compromising or breaking stuff. If you have a replacement code for that segment that I can get from you, I am willing to do that.
Re: “Yes, the code edit to Form to remove the rte is temporary”.
That is great news. The rte_notes and rte_bio option will apply throughout Connections plug-in (including the back end)?
Sorry for making all this work for you, I have purchased web software and/or plug-ins in the past for a lot more money and did not get half of what you are providing in support. Keep up the good work! :)
-
This reply was modified 9 years, 7 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.