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

Customization Requested

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3259
    lkhlclkhlc
    Participant

    Seeking customization by you or at in the least pointer to where it can happen to change the search result links into modal popups, pointing to a popteam.php script… what would you charge to make this happen, or to give instructions for where to make it happen? Thank you the client is anxious.

    #3273
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I’m fully booked for the next 2 years, I can’t accept customization requests unfortunately.

    You might want to look at using the filters, for example: https://wp-dreams.com/knowledge-base/numbering-the-results/

    You can access and modify the results url with a code like:
    [php]
    add_filter( ‘asp_results’, ‘asp_change_link_results’, 1, 1 );

    function asp_change_link_results( $results ) {

    foreach ($results as $k=>$v) {
    // Modify the post links
    $results[$k]->link = "your custom link here…";
    }

    return $results;
    }
    [/php]

    The HTML output is generated in the JS files from the ajax requests. For a modal window to work I guess you might need to change that as well. In file wp-content-plugins/ajax-search-pro/js/nomin/jquery.ajaxsearchpro.js you will find functions like: createVHResult, createIsotopicResult, createPolaroidResult
    These are the ones responsible for creating one result for each layout.

    To apply JS changes you need to change the javascript source, because by default the minified-scoped version is used. You can do that on the compatibility settings submenu: https://i.imgur.com/E36LCZr.png

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.