Forum Replies Created
-
AuthorPosts
-
Steven Zahm
KeymasterWell, I did track this down to Wishlist as I suspected. In their main
wpm.phpfile they have this code:// Do not allow access to Dashboard for non-admins if ($wpm_current_user->ID && basename(dirname($_SERVER['PHP_SELF'])) . '/' . basename($_SERVER['PHP_SELF']) == 'wp-admin/index.php' && !(current_user_can('edit_post') || current_user_can('edit_posts')) && !current_user_can('level_8')) { header('Location:profile.php'); exit; }This logic will let you get to the Connections Link admin profile page, but that is about it. This code runs early in the WP process. The
inithook to be exact. Connections processes its actions add/edit and such on theadmin_initaction which comes well after theinitaction.On your site I made a tweak so the add/edit action happens on the
inithook to but at priority9this runs before WishList. This allows allows the add/edit actions to run it it seems to work fine but honestly I’m not sure if making this change will break something else in Connections.Ideally WishList would add a filter so exceptions could be added. But the code as it is is pretty the great wall, nothing is getting around it. Maybe you could communicate that to them???
What I can do… I can create a little code snippet for you that makes the Connections code run sooner and install it tomorrow. Right now, the code was changed in the files which is not a good way to do it because the next Connections update would overwrite the change. The code snippet would be update safe. Does that sound good?
Steven Zahm
Keymaster@ Cole
They should still be ordered according to the meta/key values assigned but filtered by city.
Steven Zahm
Keymaster@ Cole
re: To do that I think we must locate the dropdown code and hard code that. Can you help locate where that is?
The code the renders the drop down can be found here in this file in this line.
As a suggestion. Rather than hard coding something here. Disable the select all option in the template and then put a link at the tip of the attorneys page for a back button to the “Our Attorneys” page.
To disable the select all option, add this
str_select_all=''to the shortcode. That should remove it. To add the back link, if the theme has a button shortcode use that and put it above the[connections]shortcode on the attorneys page.Hope that makes sense!
re: Secondly, our client is asking if we can filter the profiles by location, while maintaining their hierarchy. We’d either need top level categories by city or some way to filter by the existing location field while preserving hierarchy.
I think should be possible. Add an address to each entry. I’m guessing the locations are Austin and Houston. Just add the city to the address field or whole office address, but the key will be the city.
Now you can use URL/s like:
These are working links :) guessing a few entries do have addresses.
They should still be ordered according to the meta/key values assigned but filtered by city.
You could add these as links… I’ve seen other sites do the same… or you could add it as another drop down to the template. You could even get really creative and pull the locations (cities) straight from the db and render the select or links dynamically so it is not hard coded.
Hope that helps, let me know.
Steven Zahm
Keymaster@ Joshua
re: Just confirming that a user can edit their own information and I am using the Link extension.
Yes, You can use Form in two way and at the same time. One is to allow frontend entry/editing of a user’s entry. It can also be use to allow anyone to submit entries. Generally though, if one decides to use Link, they do not want everyone/anyone to be able to submit.
Hope that clarifies it.
Steven Zahm
Keymaster@ Tzvi
re: Is there the option of having a front end user profile page?
Yes, you need the Form and Link extensions.
re: The idea would be to link users to each directory listing that they create and then have a link on each listing to their profile page and have a list of all their listings on the user profile page.
Sorry, this is not possible. The linking is one user to one Connections entry. There is no support for one to many.
Hope that answers your questions thoroughly.
Steven Zahm
Keymaster@ Suzanne
re: I do not see a way to change the string for “biographical information”. I successfully changed a few other strings. Can you advise?
Where exactly are you trying to change this? You should be able to the
str_bio_headoption.re: Regarding working with the theme’s custom CSS area, which CSS file is it?
Well, there’s no way I can tell you that. Every theme is different. What I can tell you, if your theme has one, most seem to, it’ll be in the theme options. If it does not. Then use the JP Custom CSS plugin.
Steven Zahm
Keymaster@ Sylvia
I’ve tried loggin in a few different ways, each, time the login fails. Can you double check the login details?
Steven Zahm
Keymaster@ Patrick
Sorry, no, the change to make the filter work like that would be significant and could likely break a lot of things if changed.
Steven Zahm
Keymaster@ Greg
Hmmm. I can not replicate the error… though I did find a bug. In version 8.5.8 I was not enqueuing the javascript on that settings import/export but that did not cause an error and the settings still exported/imported fine when I just now tested it again.
One thought. Did you set the default country and state on the General tab on the Connections : Settings admin page? If, not, try setting it and then export and import again. Just a guess really… because the error reported is happening when setting the the country.
Steven Zahm
Keymaster@ bebe
You are not replacing the code for the image are you? The code I gave you is to be added to the template, not to replace code.
Also, make sure you are working on the correct template file.
-
AuthorPosts
