This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 1,906 through 1,920 (of 18,422 total)
  • Author
    Posts
  • in reply to: Unable to activate FREE media server license #51267
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search results #51254
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    1. I’m not sure if this is possible without major customizations. The advanced title/content field feature is to display the whole custom field value. However I can try suggesting a custom code to “find” the closest matching line and trim the title accordingly:

    add_filter(
    	'asp_results',
    	function ( $results, $id, $is_ajax, $args ) {
    		foreach ( $results as $r ) {
    			$s = str_replace(array( "\r", "\n" ), '', $r->title);
    			$s = explode(',', $s);
    			$s = array_filter(
    				$s,
    				function ( $city ) use ( $args ) {
    					return str_contains($city, $args['s']);
    				}
    			);
    			if ( isset($s[0]) ) {
    				$r->title = $s[0];
    			}
    		}
    		return $results;
    	},
    	10,
    	4
    );

    Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.

    2. I recommend switching to a vertical theme: https://i.imgur.com/mlCYfDC.png
    There should be vertical version of the same layout you are using right now.

    3. Yes that is correct, Envato market is our only seller platform. Can you please tell me which page are you experiencing that dead link as well as which browser? I have tried a few pages on the website but every time I’m correctly redirected to Envato Market on a new tab. I will keep testing until then.

    in reply to: Unable to activate FREE media server license #51250
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: CSS conflict with my theme – Pro Theme by Cornerstone #51248
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Unable to activate FREE media server license #51247
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Compatibility with Divi Filter Grid #51246
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are very welcome!

    in reply to: Unable to activate FREE media server license #51240
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Compatibility with Divi Filter Grid #51239
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Ernest! It sorta worked, but when I sort the results by date or author it only shows one post and the others disappear.
    That is because of the filters as I mentioned previously.

    It’s going to be either or, no way to combine them both – if you turn off the sorting and all other filters on the divi filter grid and use the filters from ajax search pro, that should still work in combination with the Results Page live loader feature. In you case use the #fs-search query selector: https://i.imgur.com/4xxO8IT.png

    That will reload the results page in the background with the new parameters that will apply on the filter grid. Anything that is loaded via ajax within the filter grid should be also turned off – especially pagination. If there is only an ajax “live” pagination possible, then it might be a good idea to show more results and turn off the pagination.

    With that however you could probably use a different module. Divi probably has like an archive page module specifically for search results, those should work right off the box as those are designed for archive pages (including the search results).

    in reply to: Compatibility with Divi Filter Grid #51236
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Thank you!

    I may have found a possible solution. Please note that the search filters can’t be used, as those are not sent along with the ajax request when the sorting is triggered within the filter grid. (that is actually how it should be, so it’s perfectly fine)

    Can you please disable all front-end filters, especially the generic filters on the search bar. With the filters the parser would assume that the checkboxes were unchecked and those fields would be disabled. There is unfortuantely no way to technically send that filter data along, as you can have multiple search bars and it would be super hard to tell which data is relevant – overall it would be a mess.

    Either way, after disabling the filters it should apply to the filter grid as well, and give you very close results as if the actual live search was used.

    in reply to: Compatibility with Divi Filter Grid #51233
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Great!

    I’m attaching a modified version, which checks this variable and changes the ordering accoding to the query ordering. I was not able to test it ufnortunately, so I’m only guessing. If you see no change, then can you please add temporary back-end and FTP access? I will try to directly debug through the code, this should be solvable in my opinion.

    in reply to: Unable to activate FREE media server license #51208
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: PDF searching #51207
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Compatibility with Divi Filter Grid #51091
    Ernest MarcinkoErnest Marcinko
    Keymaster

    That could be very likely resolved from our side.

    Can you ask if they use any special ordering arguments or are they setting it in the query args like in WP_Query? If so, can they let me know which ones exactly?
    Also, is there a query argument similar to the “asp_override” or anything special that their plugin sets, so I can reliably detect if the query is related to the filter grid?

    With that I can very likely add a minor modification to the plugin code to explicitly set the same ordering arguments.

    in reply to: PDF searching #51041
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Compatibility with Divi Filter Grid #51040
    Ernest MarcinkoErnest Marcinko
    Keymaster

    It is because of the var_dump, because it pollutes the json response, that the divi filter grid tries to parse – that of course will break, that’s expected when you change the output, but it’s not related to the search.

    I’m afraid there it’t not yet documented, but it’s a simple boolean value of true or false. When true, it will signal Ajax Search Pro to capture and cancel the current query and replace the results from it’s own query results. That’s all it does 🙂

    
    /**
     * When true, Ajax Search Pro will capture the $wp_query (WP_Query) in the following way:
     * -> on "posts_request" hook it checks if $wp_query->query_args['asp_override'] === true
     * -> if true, cancels the current query by setting the request $request = ''
     * -> on "posts_results" hook checks again, and overrides the posts returned with the results from it's own query
     * This means that the original query is cancelled, then the results are swapped.
     **/
    $query_args['asp_override'] = true;
    
Viewing 15 posts - 1,906 through 1,920 (of 18,422 total)