Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Alan
I just looked at the site… I see the country label. Looks like you have it working.
Steven Zahm
Keymaster@ Linda
This is controlled by WordPress. After a really quick web search I found this:
https://wordpress.org/plugins/login-and-logout-redirect/
It has not been updated in a year but after a quick glance at the code it looks like it should work just fine.
This can be done even “lighter” than a plugin using a little code snippet. See this tutorial:
https://firstsiteguide.com/redirect-wordpress-user-logout/
It also just happens to link to the same plugin I found.
Steven Zahm
Keymaster@ Alan
Add this to the *theme’s custom CSS area:
#cn-list span.adr span.country-name:before { content: 'Country: '; font-weight: 700; }Hope that helps!
Steven Zahm
Keymaster@ Robert
RE: IS there a hook for the function in connections_form.php?
Sorry, no hook. If there was, I would have let you know vs having to edit the PHP file ;)
Steven Zahm
Keymaster@ Emily
If you have a plugin doing page caching, clear its page cache. Some themes have this as an option too. Generally saving the page again with no changes will flush its cache. If you are using a server cache, flush its cache.
Finally, check you shortcode… do you have options set that be exempting these entries from being displayed?
Hope this helps, let me know.
Steven Zahm
Keymaster@ Bella
Sorry, other than the “core” required fields first/last name if an individual or org name if a business it is not possible to set user defined required fields. That said, I have been adding fieldset configuration options to Connections. They are found on the Connections : Settings admin page under the Fieldset Configuration tab. I have added this as a feature request to the issue tracker.
Steven Zahm
Keymaster@ Robert
RE: On Forms, Add New Contact, is there a way to auto-populate the category?
Only if you edit the PHP file for it. Locate these lines (1846–1860) in the
connections_form.phpfile.$out = cnTemplatePart::category( array( 'name' => 'entry_category', 'style' => array( 'width' => '100%' ), 'type' => 'multiselect', 'return' => TRUE, 'select_all' => '', 'exclude' => $metabox['atts']['exclude'], 'include' => $metabox['atts']['include'], 'group' => $metabox['atts']['group'], 'child_of' => $metabox['atts']['child_of'], 'hide_empty' => $metabox['atts']['hide_empty'], 'show_count' => $metabox['atts']['show_count'], ) );Change them to:
$out = cnTemplatePart::category( array( 'name' => 'entry_category', 'style' => array( 'width' => '100%' ), 'type' => 'multiselect', 'return' => TRUE, 'select_all' => '', 'exclude' => $metabox['atts']['exclude'], 'include' => $metabox['atts']['include'], 'group' => $metabox['atts']['group'], 'child_of' => $metabox['atts']['child_of'], 'hide_empty' => $metabox['atts']['hide_empty'], 'show_count' => $metabox['atts']['show_count'], ), 'X,Y,Z' );Where
X,Y,Zis change it to the category IDs (their number) that you want preselected.RE: is there a hook to change the name/title of Category to some unique to our operation?
You can hook into the
cn_pre_insert_termfilter. It provides the term name that will be added. YOu will need to return your altered string after your operation.Hope this helps!
Steven Zahm
Keymaster@ Jenna
Sorry, no, I do not. User login is authenticated by WordPress. Connections does not interact with that process.
Steven Zahm
Keymaster@ Toni
Sorry, no, not at this time. At some point in the future Connections will have full support for the WP REST API, so, it would be feasible to fetch data via a REST call and display it on another site. I am quite a ways from this being complete but progress is being made so perhaps one day Connections would be a solution for this type of use case.
Steven Zahm
Keymaster@ Robert
That sound like you could you could use the custom fields with no issue. Depending on what you are tracking the data could be better served by storing it in a separate table. You would have to tackle that bit on your own … you would still be able to integrate with with Connections but that definitely would be more coding than using custom fields.
-
AuthorPosts
