Forum Replies Created
-
AuthorPosts
-
April 17, 2015 at 9:18 am in reply to: Trying to stop JS to add in-line CSS for the .orig class #4486
Ernest Marcinko
KeymasterHi!
Sure. I suggest you first switch from the minified javascript source to the non-minified. It’s much easier to make modifications to. You can do that on the compatibility settings submenu.
Then, the file you are looking for is the ajax-search-pro/js/nomin/jquery.ajaxsearchpro.js possibly lines 1477-1481:
[code]$this.n.text.css({
width: $this.n.proinput.width() – 2 + $this.n.proloading.outerWidth(true),
position: ‘absolute’,
zIndex: 2
});[/code]So basically, this is executed on specific window resize events. If you remove the entire code, or maybe just the width part, it might solve the problem:
[code]$this.n.text.css({
position: ‘absolute’,
zIndex: 2
});[/code]The inline width should not be there visible anymore.
Ernest Marcinko
KeymasterHi!
Thanks for the proper details! Could you please tell me where can I log in? The http://www.quiquealien.com/blog/wp-login.php and the http://www.quiquealien.com/blog/wp-admin/ urls are not working for me, I’m getting a redirect loop error. http://i.imgur.com/kBNxY40.png
Ernest Marcinko
KeymasterHi!
On the Frontend Search settings if you exclude the categories, they will be only excluded from the settings – not from the actual search.
See the documentation: http://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/frontend_search_settings.htmlThis section only affects the frontend settings filter – to actually exlude categories and include post types go to the Advanced Options panel and to the General options panel.
If you want to override the default wordpress result list, then you need to enable it. On the General Options -> Behavior panel, enable the “Override the default WordPress search results page?” option.
To change the vertical results size, you need to change the Results box viewport (in item numbers) option on General Options -> Behavior panel.
Ernest Marcinko
KeymasterHi!
Here you can read how to safe-update to avoid any issues: https://wp-dreams.com/knowledge-base/updating-from-older-versions/
Your settings will remain in tact after updating.The error message you are getting is probably because you are trying to upload the wrong zip file downloaded from codecanyon. They usually contain the documentation as well. If you unpack it there should be another zip file called ajax-search-pro.zip
That’s the one you need to upload.
Ernest Marcinko
KeymasterHi!
Looks like something is triggering a document click event on slide change, it closes the results automatically.
Try to turn off the Close result list on document click? option on the Layout Options -> Results behavior panel, it should help.
Ernest Marcinko
KeymasterHi!
You can change the number of results on the General Options – Behavior page with the Max. results option.
Yes, you can influence the relsult ordering as well with the priority options. More information in the documentation: http://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/priority_settings.html
Ernest Marcinko
KeymasterI think what you are looking for is the Search in terms? (categories, tags) option on the General Options – Sources Panel. It will look for terms related to the posts.
Please note that this might slow down the search function greatly, as the taxonomy-terms table is usually exponentially larger than the posts table.Ernest Marcinko
KeymasterHi!
Yes, the page is working now. I can’t see the search anywhere however. I logged into the backend and tested there, but I got results without problems.
Ernest Marcinko
KeymasterHi!
I’m glad you found it. There is a reason why that’s code there. Some customers had tousands of terms per taxonomy and the HTML output got so big, that their browser crashed on the back-end.
This most likely will be increased a bit, as 50 seems a bit low. Yet I have to set a limit to avoid browser crashes.April 8, 2015 at 10:02 am in reply to: Trying to stop JS to add in-line CSS for the .orig class #4450Ernest Marcinko
KeymasterHi!
I highly discourage you to do direct modifications to the search query or javascript codes.
There are filter and actions hooks available + a template files to do such modifications safely.
1. The inline CSS is a result of CSS and JS animations, they are mandatory. If I were you I would take a different approach and instead of touching the code, create CSS with higher specificity. For example:
[code]input.orig {
width: 200px !important;
}[/code]
The !important modifier will override the inline CSS, that’s the only option you can use here. I know it’s nasty to use it, but in this case it’s more redundant – because if your friend decides to update the search plugin, all your modifications are gone. However the custom CSS always stays.2. Meta fields are stored in the post meta table, but there is a much better way of getting that information than modifying the code. If you haven’t heard of WordPress Plugin API yet, I HIGHLY recommend learning about it. It’s the standard and best way to communicate with a plugin, without touching it’s code.
In WordPress plugin developement there is something called a “filter”. A filter is an entrance point for a function. Filters are placed to various point of the plugin code by developers (like me) to make data manipulation easier for other developers (like you).
You can create a function and attach it to a “filter” point. Your function will accept the parameters defined by the filter. For example you can modify any post content by creating a function and attaching it to the filter called “the_content”.My plugin also has “filter” points available. You can see the list in the filters.txt file in the main plugin directory. For example usage take a look at this: https://wp-dreams.com/knowledge-base/numbering-the-results/
Based on that example you can construct the desired code, something like:
[code]add_filter( ‘asp_results’, ‘asp_get_a_custom_field’, 1, 1 );
function asp_get_a_custom_field( $results ) {
foreach ($results as $k=>$v) {
// Let’s get the meta and store it in the $r->my_meta variable
$results[$k]->my_meta = get_post_meta( $results[$k]->id, ‘clx_event_city’, true )
}return $results;
}[/code]After that, the my_meta will store the clx_event_city meta value.
Good luck with coding!
April 7, 2015 at 8:21 pm in reply to: Cant see all custom fields in the Search in custom fields box #4444Ernest Marcinko
KeymasterHi!
You have already asked this once, here is the link to your topic with the answer: https://wp-dreams.com/forums/topic/cant-see-all-custom-fields-in-the-search-in-custom-fields-box/
Ernest Marcinko
KeymasterI suppose you are using plugin version 3.5. These are only available in plugin version 4.0. If you update your plugin to 4.0, these options will be available. You can donwload it from codecanyon.
Please follow the safe update steps from the documentation or the knowledge base, to make sure everything goes smoothly.
Ernest Marcinko
KeymasterHi!
There are two ways of doing this:
1. Hover you mouse over the search instance and 2 icons will appear (first is for renaming, second for ducplicating), click on the second one: http://i.imgur.com/mAajIcw.png
2. Or you can use the Export/Import submenu to export the search instance, then import it.
Ernest Marcinko
KeymasterHi!
I can’t seem to access your server, it’s giving me a white page. Based on your purchase date I suppose you updated from an older version. In this case please follow the safe update steps, which you can find in the 1st chapter of the documentation or here in the knowledge base. That will most likely solve this issue.
Ernest Marcinko
KeymasterHi!
If you updated from older version, you should have checked the documentation or knowledge base, there is a tutorial on safe updating. I solved that issue, by saving the caching options.
Some of the theme styles were overwriting the search stylesheets aggressively, so I had to put a few lines of custom CSS into the search options. It should now appear correctly 😉
-
AuthorPosts