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.
- This topic has 21 replies, 4 voices, and was last updated 8 years, 8 months ago by
Steven Zahm.
-
AuthorPosts
-
04/16/2014 at 4:08 pm #288778
Jacey Gulden
ParticipantI’m fairly certain that I’m going to purchase this template, but before I do, I just wanted to know if there is a way to only display directory entries as the result of a search.
My client has requested that I create a directory page with a search bar that only displays entries when they are specifically search for. Is this something I will be able to set up with this template? Just want to make sure before I buy and/or tell the client this is possible! Thank you!
04/17/2014 at 1:02 pm #288890Steven Zahm
Keymaster@ Jacey
Not out of the box … but I can give you a filter [Code Snippet] that will work with cMap that will make it not show results until a category or key word search is being done.
Hope that helps!
05/13/2014 at 10:41 am #290947Jacey Gulden
ParticipantSteven,
I know it has been a few weeks since I asked this question originally, but I’ve purchased the cMap template and am wondering what exactly is this filter [Code Snippet] that you say you can give me that will help not show results until a category or key word is searched?
Thanks!
05/13/2014 at 11:32 am #290967Steven Zahm
Keymaster@ Jacey
I attached the code snippet for you. For it to function, you must be on Connections >= 0.8.
Here’s how to use it…
Install the Code Snippets plugin.
Download and unzip the file attached to this reply.
Import the code snippet XML file, search.code-snippets.xml, into Code Snippets. See the FAQs on where to find the import feature.
Activate the newly imported snippet.
Lastly, addinitial_results=false
to the[connections]
shortcode.That should do it.
Attachments:
You must be logged in to view attached files.05/13/2014 at 11:45 am #290970Jacey Gulden
ParticipantI did just as you said! However, I get the following errors appearing at the top of my page…And the directory is still appearing. Thoughts?
Parse error: syntax error, unexpected ‘$i’ (T_VARIABLE) in /data/9/3/119/133/3445459/user/3840432/htdocs/wp-content/plugins/code-snippets/code-snippets.php(1103) : eval()’d code(69) : runtime-created function on line 1
Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in /data/9/3/119/133/3445459/user/3840432/htdocs/wp-content/plugins/code-snippets/code-snippets.php(1103) : eval()’d code on line 69
05/13/2014 at 12:13 pm #290973Steven Zahm
Keymaster@ Jacey
I wonder if it is importing incorrectly because of the quote escaping that is required on that line. Can you edit the snippet, go to line 69 and make sure it is this:
array_walk( $atts, create_function( '&$i,$k','$i="$k=\"$i\"";' ) );
Additionally, can you edit the page that you have the Connections shortcode on and switch the editor to the Text tab to make sure there is no HTML tags or other text that should not be within the shortcode?
05/13/2014 at 1:31 pm #290998Jacey Gulden
ParticipantThat seems to have done the trick! Thank you so much for your help! Works perfectly!
05/13/2014 at 1:45 pm #291001Steven Zahm
Keymaster@ Jacey
Great to hear.
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections08/13/2014 at 2:01 pm #300808NNVDRN
ParticipantSteven
Thank you for making the code snippet instructions. Works great on my site. Your simply amazing to develop a truly wonderful plugin. Keep up the great work you do. Kudos my friend08/14/2014 at 11:54 am #300882Steven Zahm
Keymaster@ nnvdaccess
Thanks!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.