Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › MULTISite option add blogs not working › Reply To: MULTISite option add blogs not working
April 15, 2014 at 2:54 pm
#1697
Hi!
I think I have found the source of the problem. Since I cannot overwrite files on your server, please open up the plugins/ajax-searhc-pro/backend/class/blogselect.class.php file and go to lines 24-36, you should see this:
if ($this->selected!=null && is_array($this->selected)) { foreach($this->selected as $k=>$v) { $echo = ""; foreach($this->types as $_type) { if ($_type['blog_id']==$v['blog_id']) { $_temp = get_blog_details($v['blog_id']); $echo = $_temp->blogname; break; } } echo '<li class="ui-state-default" bid="'.$v['blog_id'].'">'.$_temp->blogname.'</li>'; } }
Replace that code with this:
if ($this->selected!=null && is_array($this->selected)) { foreach($this->selected as $k=>$v) { $echo = ""; foreach($this->types as $_type) { if ($_type['blog_id']==$v) { $_temp = get_blog_details($v); $echo = $_temp->blogname; break; } } echo '<li class="ui-state-default" bid="'.$v.'">'.$echo.'</li>'; } }
It should fix the multisite issue!
Best,Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)