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

Forum Replies Created

Viewing 15 posts - 17,686 through 17,700 (of 18,415 total)
  • Author
    Posts
  • in reply to: How to display terms image ? #3275
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I’ve looked at those links. There is something that might work:

    [php]
    add_filter( "asp_results", "asp_pods_image_results", 1, 1 );

    function asp_pods_image_results( $results ) {

    foreach ($results as $k=>$v) {
    // get the term images
    if ($results[$k]->image != null && $results[$k]->image != ”)
    continue;
    $pod = pods(‘category’);
    $pod->fetch($category->term_id);
    $icon = $pod->get_field(‘icon’);
    if ($icon != null && $icon != ”)
    $results[$k]->image = $icon;
    }

    return $results;
    }
    [/php]

    I cannot test this code, so it might not work. But I guess it’s very close to a solution.

    in reply to: Not returning results #3274
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    You had both the old and the new version installed. I removed the old one from the plugin manager and re-activated the new. It should work properly now.

    in reply to: Customization Requested #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

    in reply to: Not returning results #3269
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I can’t see any credentials, checked the database as well, nothing stored.

    Could you please re-edit your first post or upload a txt file with the credentials?

    in reply to: Duplicate form? #3265
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Duplicating is not possible, only creating new instances and re-configuring them.

    You can however use the same search shortcode as many times as you want.

    You can however try to duplicate the database rows on the wp_ajaxsearchpro database table – that’s where the search settings are stored.

    in reply to: Not returning results #3262
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    If the error check page shows no error, that’s a good thing so far.

    This issue was usually related to a caching incompatibility, or if the database query is interrupted when the plugin is installed. That’s why I created the upgrade steps in the documentation, to avoid such issues. I remember one time someone had something similar, but reinstalling helped them.

    This sounds like something else, but I can’t confirm until I can see it or do some kind of debugging. (checking for errors, printing the database query and comparing it to the actual configuration, etc..)

    Could you at least provide temporary administrator access and a link to the site? I can check the configuration at least.
    I can also try to make changes via the plugin editor in wordpress, but on the downside if I make a syntax error by mistake your site will go down with a white page most likely, and the only way to revert is to correct the mistake via sftp or rename the ajax-searh-pro plugin folder (or delete it completely).

    in reply to: Ajax Search Pro do not save multisite blog names #3257
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Marco!

    Thank you for the login details. I just logged in and tried to select 3 blogs and save and it works for me. I’m using google chrome on windows.
    Could you please try again?

    in reply to: After Install – Not Visible for User – Post Problems #3254
    Ernest MarcinkoErnest Marcinko
    Keymaster

    I will check as soon as I can.

    I need backend access however. Please edit your first post to fill out the backend and temporary ftp details.

    in reply to: Exclude Posts By Date Range? #3252
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Well, only by editing the source. Probably additional 3-4 lines in one file. Let me know if you would prefer this solution, and I will look into the code and suggest the changes for you.

    in reply to: CATEGORY SEARCHES #3246
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    1. It is not possible. The search can only use the statistics (previous search terms) or the google keywords suggestions database. A similar feature is going to be implemented in the upcoming version.

    2. If you have a custom post type called “Properties” then is most likely has custom taxonomy terms as categories. These are not regular categories, they should be listed somewhere under the Frontend Search Settings -> Show the following taxonomy term selectors on the frontend

    http://wp-dreams.com/demo/wp-ajax-search-pro3/docs/assets/images/image_36.png

    in reply to: Pagination Controls CSS Location? #3241
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    It’s actually the content that has a 30px bottom margin. I don’t recommend changing the CSS files, as you might loose the changes on update.

    Instead try to add the changes to a custom css file in your theme, or you can use the custom CSS section on the plugins theme options panel.

    Anyways, the code that you are looking to add is something like:

    [html]
    .slick-slider {
    margin-bottom: 0 !important;
    }
    [/html]

    Try to add this to the custom CSS section, or any of your themes CSS files.

    in reply to: How to display terms image ? #3235
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Great! I think this will help. So, based on this article: https://wp-dreams.com/knowledge-base/numbering-the-results/
    let me try to put together a similar function. Try to put this code into to your themes functions.php file:
    [php]
    add_filter( "asp_results", "asp_term_image_results", 1, 1 );

    function asp_term_image_results( $results ) {

    foreach ($results as $k=>$v) {
    // get the term images
    if (isset($GLOBALS["CORE_THEME"]["category_icon_".$results[$k]->id]))
    $results[$k]->image = $GLOBALS["CORE_THEME"]["category_icon_".$results[$k]->id];
    }

    return $results;
    }
    [/php]

    • This reply was modified 11 years, 5 months ago by Ernest MarcinkoErnest Marcinko. Reason: apostrophes
    in reply to: Found a 'bug' #3233
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Thank you, I wasn’t aware of that, I don’t know why.

    I will change this of course in the next bugfix release.

    in reply to: After Install – Not Visible for User – Post Problems #3232
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    I’m available today till 18:00, I’m located in the same time zone as you (Slovakia).

    You can fill out the login details if you want 😉

    in reply to: How to display terms image ? #3225
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Taxonomy terms does not have images by default. As I can see it must be a feature of your theme.
    It’s definitely not a custom field, only posts/custom post types can have them.

    However if you can ask the theme developer how to get the term image based on the term id, then I might be able to put something together for you.

    There must be a funtion like get_term_image_by_id($term_id) or something similar defined somewhere. Once we have that, it’s going to work.

Viewing 15 posts - 17,686 through 17,700 (of 18,415 total)