Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi!
Thank you for your kind words!
There is no built in way yet, but you can try to export the wp_ajaxsearchpro database table (or it’s contents) via phpmyadmin or your preferred database editor tool. This will only export the search instance settings – other submenu settings like caching, fulltext, statistics will remain untouched.
Ernest Marcinko
KeymasterHi!
I have changed the ajax handler on the compatibility options menu and it started working. I have no idea what the problem was, but it seems fine to me now – at least I hope so.
Ernest Marcinko
KeymasterIt’s because the results are set to “hovering” and not “blocking”.
Go to the search Layout options panel -> Results layout position -> Blocking (pushes content)
It is also described on the documentation link I sent you earlier.
Ernest Marcinko
KeymasterI’m not familiar with visual composer unfortunately. But I believe you can separate the page to rows with without using any html code.
You should look up the visual composer documentation or tutorials on how to put shortcodes into separated rows.
There is also an insight in the ajax search pro documentation on how to use and insert the search and results shortcode if you want to use them on a different position: http://wp-dreams.com/demo/wp-ajax-search-pro3/docs/#positioning_the_results_elswhere
Ernest Marcinko
Keymaster[html]
<div class=’dsoai’ style=’asd asd’>
[asdaisjd]
</div>
[/html]
asdasd-
This reply was modified 11 years, 9 months ago by
Ernest Marcinko.
Ernest Marcinko
KeymasterHi!
We are using a theme, where you can separate the page into two halfs, and one half holds the search shortcode and the other one the results shortcode. You can mimic this with the following html code:
[html]
<div style=’float: left; margin: 5%; width:39%; min-height: 200px;’>
[wpdreams_ajaxsearchpro id=1]
</div>
<div style=’float: right; margin: 5%; width:39%; min-height: 200px;’>
[wpdreams_ajaxsearchpro_results id=1 element='div']
</div>
<div style=’clear: both;’></div>
[/html]As for the ipad issue, I’m aware of that. Unfortunately haven’t found a solution to hide the keyboard automatically after clicking the search button. I’m in contact with other mobile developers, so I’m sure we will come up with a solution very soon.
Ernest Marcinko
Keymaster[html]
asd
[/html][php]
<div class=’WHAT’>
yo!
</div>
[/php]Ernest Marcinko
KeymasterHi!
Thank you for the proper details on your ticket. I can’t see the search however on your website activated. Could you place it somewhere (perhaps on a separate page) so I can see it?
Ernest Marcinko
KeymasterHi!
Try to open up the Cache settings page (from the ajax search pro menu) and save it once. I think it should probably solve the problem.
Ernest Marcinko
KeymasterHi!
I don’t know if you managed to fix the hover effect, but it looks all right for me (maybe I’m wrong). If it still persist, then please send me 1-2 screenshots of exactly where it appears.
Also, the null description problem is fixed now, it was indeed a problem with the search code!
Ernest Marcinko
KeymasterHi!
Sure, sorry about the late response, I had some issues with the support system! (moving to ssl connection soon)
I will get back to you in a couple of hours.
Ernest Marcinko
KeymasterHi!
It’s not exactly like that. The $allpageposts variable holds an array() of objects, and each object is one result.
Here is a quick snippet I had just written, it takes all the categories from a post and appends it to the end of the post title:add_filter( 'asp_pagepost_results', 'my_results_modify', 1, 1 ); function my_results_modify( $pageposts ) { foreach ($pageposts as $k=>$v) { /** The structure is: object(stdClass) { ["title"] => "Post title" ["id"] => 1234 ["date"] => "2014-08-06 12:48:19" ["content"] => "Post content ["author"] => "author" ["post_type"] => "post" ["image"] => "http://..." ["link"] => "http://..." } */ // Get the post categories $post_categories = wp_get_post_categories( $pageposts[$k]->id ); $cats = ""; // Concatenate category names to the $cats variable foreach($post_categories as $c){ $cat = get_category( $c ); $cats = " ".$cat->name; } // Modify the post title $pageposts[$k]->title .= " ".$cats; } return $pageposts; }I’ve also added the structure in the commented section, so you can see which variables you can access and change.
September 26, 2014 at 9:44 am in reply to: Search results do not display on locally hosted site #2536Ernest Marcinko
KeymasterHi!
Sorry for the late answer, something was very wrong with the support system.
Is the site url same on the VPN as it’s on the local server? I’m not sure if this is a client side or a server side issue, it can be both. But if the urls are different on local and VPN, then the ajax request fails because of the same origin policy. (the url of the wordpress installation is set to http://xxx.xxx and if you try to access it from the same virtual host address, for example http://yyy.yyy then the site may work, but the ajax requests fail because the site url tells a different address)
Ernest Marcinko
KeymasterHi!
Sorry, I didn’t get notifications about your answers, something was wrong with this server. Here is my ip address: 159.253.104.31
September 23, 2014 at 7:20 am in reply to: The results take a seriously long time, over 15 seconds #2530Ernest Marcinko
KeymasterHi!
Unfortunately I’m not responsible for refunds, you will need to contact envato market for that via their support center. I don’t know if they can refund you once after the product was downloaded and used, but you should try of course.
I would love to help you, there must be something else conflicting as well, the administrator interface is not resource heavy at all – once we had tested it on a site with half a million posts on a local server with woocommerce and went through without issues.
I have tried the built in search on your website as well, it takes around 20 seconds it to load the results page – which means that something is clearly wrong, because the built in wordpress search is very simple and highly optimized. I’m not sure if it’s the high number of data, or plugin conflict or a database server inconsistency or perhaps low cpu power, but you should definitely look into that, because some web crawler bots like to go through random search results and it could easily overload your server. (it happened to me unfortunately)
Also I don’t know what type of hosting/server are you using, but this high amounts of data and server load might require a VPN with at least 8 cores and 4gb of memory. Shared hostings tend to shut down websites with high CPU usage – it happened to me with bluehost, and site5 as well and I had to move to a much expensive VPN plan.
-
This reply was modified 11 years, 9 months ago by
-
AuthorPosts