No images in new version + search phrase modification
-
Hello, I have two problems.
1. I have updated ASL from 4.8.6 to 4.9.2 and I had to roll it back to 4.8.6. After updating there’re no images in search results. Images should be downloaded from post content (it’s working on 4.8.6), but there’re no images at all.2. I was modyfing your code by adding simple PHP code to change search phrase. In new version you have changed files/code and I’m not sure where I should put my code so it will work. Here is my code in ajax-search-lite/includes/classes/search/search.controller.class.php in version 4.8.6:
public function search() { $this->parseOptions(); $sd = &$this->args['instance']['data']; $s = $this->args['phrase']; $id = $this->args['id']; // Moj dodatek if (preg_match('/.+banggood.com.+/', $s)) { preg_match('/(p\\-[0-9]+)\\.html/', $s, $matches); $s = $matches[0]; } if (preg_match('/.+gearbest.com.+/', $s)) { preg_match('/(pp\\_[0-9]+)\\.html/', $s, $matches); $s = $matches[0]; } // -------------------- $allpageposts = array(); $pageposts = array();(...)
Can you tell me where I should modify code in new version?
CheersThe page I need help with: [log in to see the link]
- The topic ‘No images in new version + search phrase modification’ is closed to new replies.