Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Olivier
re: Why a change in the custom css file doesn’t show up immediately? I use no cache plugin.
You need to force flush the browser cache so the browser will download the newest copy. Depending on your browser of choice the key command would be eitherSHIFT + F5orCTRL + F5.Hope that helps!
If I have not asked and you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections
Steven Zahm
Keymaster@ Steve
Sure I would love a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections
Steven Zahm
Keymaster@ Edith
No problem!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections
Steven Zahm
Keymaster@ Edith
I logged in and moved the location of the
wp_footer()template tag to before this line<?php if ( is_user_logged_in() ) {in the thefooter.phpfile. Now it works fine … so will other plugins that require this. There must be an error in the PHP code the follows this<?php if ( is_user_logged_in() ) {which cause thewp_footer()template tag to be not run.Steven Zahm
Keymaster@ Eric
Yes, Connections with Link requires WP user accounts to function and to provide user authentication. Sorry, but I do not have any plan on implementing a separate authentication method.
With that said, there is no way to provide each family their own unique login credentials. The only other option would be to password protect the page where the
[connections]shortcode is added. Doing this would give everyone a common password to view the page and would not provide way for families to edit their own entries.Sorry, probably not the answer you wanted to hear.
Steven Zahm
Keymaster@ Perry
1) Yes, a user can select any number of categories when adding their entry using Form.
2) One is from Link and the Other is from Form.
- Submit New Entry: Is added by Form and will allow anyone to freely submit a listing that is not specifically linked to a user when the entry is being added. This is to allow the creation of publically created directory.
- Add My Directory Entry: Is from Link and will only be shown when a user is logged in. When a user adds their entry using that link, that entry will be linked to that user. After they add their directory the link will become; “Edit My Directory Entry“.
Depending on your needs you’ll only activate one or the other to use.
3) The “View My Directory Entry” link will only be displayed when an entry has been linked to a user. This does require Link to be active.
from private reply) The For extension already has a “Title” field. It is right under the first/last name. Yes, custom fields can be added but there is no point and click way to do it at this time, it must be done programmatically.
Hope that answers your questions thoroughly!
Steven Zahm
Keymaster@ Olivier
Add this to your custom CSS:
#cn-cmap .cn-entry-single .cn-left { float: left; } #cn-cmap .cn-entry-single .cn-right { text-align: right; }Also, you put your custom CSS in the wrong folder … it’ll load just fine, but if you update cMap, you’ll lose your custom CSS file. Use one of the paths recommended in this QuickTip.
Steven Zahm
Keymaster@ Steve
First, add the following to your theme’s custom CSS area. It’ll make the drop down more visible:
#cn-slim-plus select#cn-cn-region { min-width: 250px; }The “Select a State” might not be displaying for you because of tweaks I’ve made to my dev version to make it work.
After another test, if you use the following code … it”l at least show “Select an option“. And when I release version 8.1.6, it should automatically say “*Select a State”:
function cn_state_select() { global $wpdb; $sql = 'SELECT state FROM ' . CN_ENTRY_ADDRESS_TABLE . ' GROUP BY state'; $result = $wpdb->get_col( $sql ); $keys = array_map( 'urlencode', $result ); $values = array_map( 'esc_attr', $result ); $states = array_combine( $keys, $values ); cnHTML::select( array( 'id' => 'cn-region', 'name' => 'cn-region', 'options' => $states, 'enhanced' => TRUE, 'default' => 'Select a State' ) ); } add_action( 'cn_action_list_before-slim-plus', 'cn_state_select', 98 ); function cn_add_submit_button( $atts, $results ) { cnTemplatePart::submit( array( 'return' => FALSE ) ); } add_action( 'cn_action_list_before-slim-plus', 'cn_add_submit_button', 99, 2 ); function cn_disable_category_select( $atts ) { $atts['enable_category_select'] = FALSE; return $atts; } add_filter( 'cn_list_atts-slim-plus', 'cn_disable_category_select', 9 );The
99, filter your results by it. Four entries have the state set as99. The drop down will show exactly what what was entered in the db. It will not validate the results. Future versions will standardize this a bit by making the state and country fields autocomplete drop downs (that’s why there’re option in the settings to set the default country and region/state). These drop downs will not force a value to be used (letting any value to be entered) but since the selection will be shown it’ll be a strong encouragement to use the value in the drop down rather than a random value. I have to do it this way for backward compatibility because all sorts of stuff/variations have been entered into these fields and I have to make sure not to break that.Steven Zahm
Keymaster@ Steve
Oh, I see. It works for me because I’m working with my dev version of Connections which fixed two minor bugs with the the code that renders the drop down. Try this instead:
function cn_state_select() { global $wpdb; $sql = 'SELECT state FROM ' . CN_ENTRY_ADDRESS_TABLE . ' GROUP BY state'; $result = $wpdb->get_col( $sql ); $keys = array_map( 'urlencode', $result ); $values = array_map( 'esc_attr', $result ); $states = array_combine( $keys, $values ); cnHTML::select( array( 'id' => 'cn-region', 'name' => 'cn-region', 'options' => $states, 'enhanced' => TRUE, 'default' => array( 'Select a State' ) ) ); } add_action( 'cn_action_list_before-slim-plus', 'cn_state_select', 98 ); function cn_add_submit_button( $atts, $results ) { cnTemplatePart::submit( array( 'return' => FALSE ) ); } add_action( 'cn_action_list_before-slim-plus', 'cn_add_submit_button', 99, 2 ); function cn_disable_category_select( $atts ) { $atts['enable_category_select'] = FALSE; return $atts; } add_filter( 'cn_list_atts-slim-plus', 'cn_disable_category_select', 9 );That minor tweak that should work in both versions. Let me know.
Steven Zahm
KeymasterThis is caused by some plugins that like to “wipe” or “reset” custom roles that plugins Like Connections, Easy Digital Downloads and Events Manager add. One such plugin is s2Member. Every update rests all custom roles.
More details here is my support forum:
http://connections-pro.com/support/topic/role-settings-disappear/#post-304801Soution to the s2Member reset is in the wp-.org supoport forum:
https://wordpress.org/support/topic/resetting-roles-every-timeSince custom roles in WordPress are persistent so Connections sets a “flag” in the options that if it exists will not attempt to recreate them which would reset them. Once this flag is set, there is no point and click way to force reset the Connections custom roles. Not even deactivating and deleting will reset this “flag”. With that said, there is a solution.
Install the Code Snippets plugin:
https://wordpress.org/plugins/code-snippets/Create new snippet.
Add the following code to the new snippet:
add_action( 'init', 'cn_reset_role_capabilities' ); function cn_reset_role_capabilities() { if ( ! is_admin() ) return; // Class used for managing role capabilites. if ( ! class_exists( 'cnRole' ) ) require_once CN_PATH . 'includes/admin/class.capabilities.php'; cnRole::reset(); }Save and activate the snippet.
You should now be able to view all of Connections admin page.
! Important ! Deactivate the snippet.
Hope that helps!
-
AuthorPosts
