Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi!
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.
Ernest Marcinko
KeymasterHi!
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.
Ernest Marcinko
KeymasterHi!
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
Ernest Marcinko
KeymasterHi!
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?
Ernest Marcinko
KeymasterHi!
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.
Ernest Marcinko
KeymasterHi!
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).Ernest Marcinko
KeymasterHi 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?December 16, 2014 at 2:53 pm in reply to: After Install – Not Visible for User – Post Problems #3254Ernest Marcinko
KeymasterI 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.
Ernest Marcinko
KeymasterWell, 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.
Ernest Marcinko
KeymasterHi!
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
Ernest Marcinko
KeymasterHi!
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.
Ernest Marcinko
KeymasterHi!
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 Marcinko. Reason: apostrophes
Ernest Marcinko
KeymasterHi!
Thank you, I wasn’t aware of that, I don’t know why.
I will change this of course in the next bugfix release.
December 15, 2014 at 9:28 am in reply to: After Install – Not Visible for User – Post Problems #3232Ernest Marcinko
KeymasterHi!
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 😉
Ernest Marcinko
KeymasterHi!
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.
-
This reply was modified 11 years, 5 months ago by
-
AuthorPosts