WordPress.org

Ready to get started?Download WordPress

Forums

WP-Filebase Download Manager
Search Results Template (1 post)

  1. rawr34
    Member
    Posted 1 year ago #

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

    Search.php:

    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?

    -rawr34

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.