Support » Plugin: WP-Filebase Download Manager » Search Results Template

  • rawr34


    From looking at the code it seems that customizing the template that the search results use is not possible:


    static function FileSearchContent(&$ref_content)
    	$files = WPFB_File::GetFiles2(self::SearchWhereSql(WPFB_Core::GetOpt('search_id3'), stripslashes($_GET['wpfb_s'])), WPFB_Core::GetOpt('hide_inaccessible'));
    	foreach($files as $file)
    		$ref_content .= $file->GenTpl2();

    I’ve gotten around this by adding the desired html before and after this foreach loop (for the header and footer), and setting the desired template name in the GenTpl2 function call. I don’t mind this, but it’ll be lost when I update wp-filebase. Is there a more correct way to do this?


  • The topic ‘Search Results Template’ is closed to new replies.