This topic has 18 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #153928
     artwand
    Participant

    Hi there,

    I was wonder if it’s possible to switch around Ajax results so if I select in the settings “forums” only then on the ajax result I would see first results from the forums?

    Now even if there is no word I was searching for in posts, all posts will display on top of the list which is confusing because this word is not existing there

    In another words is it possible not to show posts in the results if the word haven’t been found?

    Please see the screenshot

     

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #153979
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #153994
     artwand
    Participant

    Thank You Laura!

    In addition to this… I was wonder if it’s possible to have the same preloader (as used in grids) in the search field? (css hack or through functions?)

    [attachment file=153995]

    Attachments:
    You must be logged in to view attached files.
    #154023
     Radu
    Moderator

    Hi,

    just add the next code function from pastebin to wp-content/themes/kleo-child/functions.php

    http://pastebin.com/raw/sRE3X40N

    Cheeers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154025
     artwand
    Participant
    This reply has been set as private.
    #154028
     Radu
    Moderator

    Hi,

    1. IT’s already it behaves like that I’m using ajax search only

    2. There is no quick solution to implement this.

    For any custom development and implementations you should hire a developer

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154034
     artwand
    Participant

    1) It’s not showing on my form (I pasted your code into the child functions)

    [attachment file=154036]

    2) Ok, no problem… can you at least guide me to the file where the code is refering to the preloader?

    Thanks,
    P.

    Attachments:
    You must be logged in to view attached files.
    #154043
     Radu
    Moderator

    1. I have also that code in my functions PHP and it’s displayed and on your search form if I search for different thigs results are the same.

    Maybe you have other things in child theme that can cause this, also de-activate all plugins except Visual Composer and K-elemets to check how it behaves

    2. In this function it;s the loader for the search http://pastebin.com/raw/mJySs4PA you should add that into child theme functions.php

    This is the div that generates the loader

    COPY CODE
    
    <span class="kleo-ajax-search-loading"><i class="icon-spin6 animate-spin"></i></span>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154049
     artwand
    Participant

    1. bbPress 2.5.15 is the problem, I have deactivated this plugin and the search form works as it should but then I lost the forums 🙁

    2. Thanks Mate for the instructions!

    #154090
     artwand
    Participant

    Hi Radu,
    Have you had a chance to investigate this bbpress issue?

    I really need this to be fixed otherwise I will not be able to have forums on the site which is crucial.

    Thanks!

    #154113
     Radu
    Moderator

    Hi,

    I think there it’s an isolated problem, not a general one caused by your changes in the child theme or by using another plugin that can interfere with the actual setup.

    Try to leave bbpress,visual composer,buddypress and k-elements plugins activated and de-activate the rest and also the child theme, then you will see it’s no problem with bbpress or with kleo and bbpress

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154125
     artwand
    Participant

    Hi,
    It took me some time but I found the real problem

    I was following your suggestions but didn’t help then I realised that on the home page the search form shows the “not found” text

    So the difference between them two was that on the home page I have selected all areas of search [search context] (members, groups, posts, pages, forums and portfolio) but on the page where the search should “search” only in forums I have selected “forums” only so then the “not found” text will not display

    I have tested by selecting for example “posts” only and it works… it doesn’t work properly ONLY when we select “forums” and keep the other options unselected

    [attachment file=”Screen Shot 2017-02-24 at 17.03.23.png”]

    #154288
     Radu
    Moderator

    Hi,

    The screenshot missing,

    I cannot reproduce the issue with no found error when searching in bbpress context.

    From what I see the search in forums works.. take a look

    Can you confirm if it’s related to diacritics or Cyrillic characters?

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154294
     artwand
    Participant

    It works because I had to select everything (see the screenshot)

    [attachment file=154295]

    But the problem is that the NOT FOUND text will not appear in the search results when I select FORUMS only

    [attachment file=154296]

    Try to search for a random text now and you will notice that search results will show the latest posts only but it should display the message about no results found

    As I mentioned before it’s not related to what I have in the child functions because it’s obvious now that it doesn’t show the “not found” message ONLY when we select “Forums” only

    [attachment file=154297]

    btw.
    there is nothing in the child functions

    Attachments:
    You must be logged in to view attached files.
    #154514
     Radu
    Moderator

    Hi,

    Please replace this file content : /wp-content/themes/kleo/lib/theme-functions.php
    with this one : http://pastebin.com/raw/buH1BF2e

    This will fix the empty response on searching on forums context

    Also this will be included on next theme update

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154517
     artwand
    Participant
    This reply has been set as private.
    #154533
     Radu
    Moderator

    Hi,

    That’s wired the same file it works for me, there original patch was applied

    Can you try again, please ? Can you de-activate all plugins and chidl theme and try again

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154539
     artwand
    Participant

    I have deactivated all plugins + child and tried again but didn’t help

    When I deactivated all plugins then the error gone but unfortunately with active plugins still with the same error

    #154595
     Radu
    Moderator

    You should enable plugins back one by one then CHECK every plugin activation to identify what causes that

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 19 posts - 1 through 19 (of 19 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?