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

  1. rawr34
    Posted 3 years ago #

    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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Filebase Download Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.