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.8, placeholder, search, show_alphaindex
- This topic has 5 replies, 3 voices, and was last updated 8 years, 10 months ago by
Steven Zahm.
-
AuthorPosts
-
07/17/2013 at 10:53 am #264988
Dave Tillotson
ParticipantHi there,
Using slim plus at http://www.sfny.co.uk/business-directory/ and category dropdown returns ‘no results’ each time in all versions of IE. Works fine in Chrome and Firefox though.
Also, the alphabetised filter doesn’t appear to work in any browser.
Any help greatly appreciated.
07/17/2013 at 11:47 am #264992Steven Zahm
Keymaster@ Dave
On the occasions I run across this it is because the theme or another plugin, usually the theme, is trying to be helpful and adds a HTML 5 “shim” javascript that adds support for the placeholder text in the search box. Unfortunately this is buggy, in my opinion. Go ahead and select a category and then look in the address bar of the browser, notice the there is cn-s=Search. The shim script is causing the placeholder text “Search” to be sent as if you were filtering by category and search for the word “Search” and it shouldn’t be. Obviously, this is not what you want to do.
Unfortunately, other than changing themes, which I would never ask someone to do, the only solution is to make a small edit to Connections so it does no longer use the placeholder text.
Edit the class.template-parts.php file found here:
../wp-content/plugins/connections/includes/template/Search for this line, should be on line 469:
$out .= '<input type="text" id="cn-search-input" name="cn-s" value="' . esc_attr( $searchValue ) . '" placeholder="' . __('Search', 'connections') . '"/>';
Replace it with this:
$out .= '<input type="text" id="cn-search-input" name="cn-s" value="' . esc_attr( $searchValue ) . '"/>';
Save and upload overwriting the original. Of course you should make a backup first.
Now, because the placeholder text is no longer in place, the shim script from the theme will no longer affect the category filter.
Hope that helps.
07/17/2013 at 12:30 pm #265000Dave Tillotson
ParticipantThat worked a treat. Thanks Steven. The superfast response also much appreciated.
Dave
07/17/2013 at 1:04 pm #265013Steven Zahm
KeymasterThanks!
If you haven’t and you have a few minutes, I would surely appreciate a quick review. Thanks!
07/24/2013 at 9:12 am #265642Dave Tillotson
GuestHi Steven,
OK so cat drop down now working fine (thanks for the fix) but character filter not so. The directory listings simply alter position on the page to (roughly) correspond with the letter selected.
They don’t actually filter for each letter, as one might expect. Is this also an issue with the theme I’m using and, if so, is there a fix?
Help greatly appreciated.
Dave
07/24/2013 at 10:51 am #265644Steven Zahm
Keymaster@ Dave
The show_alphaindex is not a character filter, it simply outputs inpage links so if the character group is on the current page of results it’ll jump down to the beginning of that group. The functionality will be changing sometime this summer/fall where it will filter by character. The work to do this is about 90% completed as I’ve already implemented it in the admin. Hope that helps.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.