Jump to content

Exclude function


mystified

Recommended Posts

I'm adding a mod but I need to use the exclude function. What it does is search for unanswered posts.  Here is part of the code.

 

}
	$this->ipsclass->input['forums'] = 'all';

	$forums = $this->get_searchable_forums();


	$mid    = intval($this->ipsclass->input['mid']);



	$forums = $this->get_searchable_forums();

	$mid    = intval($this->ipsclass->input['mid']);

 

Then

//-----------------------------------------
	// Do we have any forums to search in?
	//-----------------------------------------

	if ($forums == "")
	{
		$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_search_forum') );	if ($forums == "")
	{
		$std->Error( array( 'LEVEL' => 1, 'MSG' => 'no_search_forum') );
	}

	$exclude_forums = $INFO['exclude_unans_search_fora'];

 

Then in conf_global.php I have:

$INFO['exclude_unans_search_fora']      =       '33,51,29,35,22,17,23,45,46';

With the numbers being the unique forum ids.  Any suggestions?  I'm a real newb with php.

 

Thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/56947-exclude-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.