Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Sabrina
Here’s the link to the doc page which covers how to change these couple strings:
http://connections-pro.com/documentation/cmap/#Changing_the_Label_Text
Hope that helps!
Steven Zahm
Keymaster@ Patryk
re: s2member
The first thing to try is this:
http://connections-pro.com/faqs/s2member/
If that does not work… I am releasing an update to Link today, in a couple hours. It contains a workaround for membership plugins which break the core WordPress
wp_loginaction by calling it manually and not passing the user object. The later items is what stops Link from working correctly. It also corrects a bug where it would display the add my directory entry link to user roles which did not have that correct capabilities assigned. If the s2member fix did not fix the issue perhaps the workaround I’m introducing in the next release will.Steven Zahm
Keymaster@ Michelle
Any of the premium templates can be used as search will search those fields.
Steven Zahm
Keymaster@ tracey
See this FAQ:
http://connections-pro.com/documentation/excerpt-plus/#How_do_I_change_the_color_from_blue
Hope that helps, let me know.
Steven Zahm
Keymaster@ Jo Marks
re: Edit My Directory Listing from under the Howdy it takes me to the correct listing but not in Form in Connections itself.
That would be correct. The adminbar link will always to the user to the admin side. In this case it would be the user’s Link admin profile page. That is what you are seeing, correct? The page URL would end like this:
../wp-admin/users.php?page=connections_linkIf you are, then Link is working correctly, so that is very good. The issue would be that the Sidebar Login widget is no longer displaying the edit link, is that correct?
I took a look at the code for Sidebar Login and it does support shortcodes, however, the shortcode for the edit link from the other post will not work correctly for the way Sidebar Login needs. Try this instead:
add_shortcode( 'connections_edit_link', 'cn_edit_my_entry_shortcode' ); function cn_edit_my_entry_shortcode() { // Grab an instance of the Connections object. $instance = Connections_Directory(); // Get the current user ID. $userID = get_current_user_id(); // Check to see if the entry has been linked to a user ID. $entryID = get_user_meta( $userID, 'connections_entry_id', TRUE ); $results = $instance->retrieve->entries( array( 'id' => $entryID ) ); if ( is_user_logged_in() && ( $userID == $results[0]->user && $entryID == $results[0]->id ) && ( current_user_can( 'connections_edit_entry' ) || current_user_can( 'connections_edit_entry_moderated' ) ) ) { return cnURL::permalink( array( 'type' => 'edit', 'slug' => $results[0]->slug, 'data' => 'url', 'return' => TRUE ) ); } }Then in the Sidebar Login widget use this for the logged in link:
Edit My Directory Entry | [connections_edit_link]Now does that work?
Steven Zahm
Keymaster@ bo blaze
re: When you go to the initial page. I’d like to only display the “featured category” but have people be able to use the category search by state or all.
You can use the category shortcode option to set the “featured” category as the sudo default.
Selecting categories from the drop down will still work correctly, however, searches would be limited to the “feature” category. To get around that, see this.
re: when you click on a state, say NJ, the output would be people with the categories NJ AND Featured first and then just NJ.
I’m assuming that the featured will be only those that are in NJ, correct? This one is a bit more tricky and I do not have a known working way to do this, but I do have an idea…
You can use this method to create a custom order Except you would want to use this shortcode:
[connections order_by="meta_key:order|NUMERIC_ASC,sort_column"]For “featured” entries you should set them to
1and the not “featured” to0.My guess this will work, giving you the results you want, but I’ve never tried it. You’ll have to let me know how it goes.
Steven Zahm
Keymaster@ cscott
You can use the Widget Pack. It has a category widget which you can place in the theme’s sidebar. You can also use the category widget as a shortcode to place the list above the directory. The problem would be since is is a list, so you would need to restyle it so it would display in columns or a grid.
Steven Zahm
Keymaster@ Patryk
re: Problem is if someone with matching email address logs in to wordpress and tries to view list of connections instead “Edit” button he will only see “Add My Directory Entry” button. I would expect that if I import users through CSV and logged in wordpress user email matches that in connections then they should be able to edit their profile the same as they would create a profile themself.
No, importing does not link users to a Connections entry based on email that is what the Link extension does when the user logs in.
I see you have purchased the Pro Pack, do you have Link installed and activated? I suspect that it is because you would not see the “Add My Directory Entry” link.
Do you have any membership like plugin installed and activated in WordPress? If you do, which one?
Steven Zahm
Keymaster@ Elham
I took a look at your site…
The category select is full width do to a CSS declaration in the WP Job Manager plugin. It has this:
.chosen-container { width: 100%!important; }Unfortunately with the way it is defined it will affect all plugins which use the Chosen library to enhance select drop downs. The author should make a more defined selection so it only affects their plugin.
Even more unfortunate, since the !important flag was used there is no way to fix it from my side. You’ll have to contact the WP Job Manager dev to get this fixed. Apologies! I wish I could do more.
Steven Zahm
Keymaster@ Steven
I spent a couple hours tracking this down… here’s what I found. It is a little technical…
When I save the data using the core WordPress wpdb object, which one should do when writing to the database, I was specifying the lat/lng as a float number and when WordPress sanitizes the float number, making it safe to write to the database, the default precision for a float of 14 is used which basically “caps” the decimal place to 6 digits. It is actually a bit more complicated than that and I would have to delve deeper myself to better understand myself. But the jist is floating point numbers are approximate representations of real numbers and they are not exact. Suffice to say, I did not know this.
That said, there’s actually no way to change that precision when telling WordPress to sanitize a float. So the only solution is to tell WordPress it is a string and let the database deal with the conversion. Since the table that stores the the lat/lng are setup as decimal (a real number :) ) with a precision of 15 and a scale of 12, the lat/lng will not get rounded until the 12th decimal place.
Anyway, I made the change which will be included in the next update. Aplogies for the trouble.
-
AuthorPosts
