PDA

View Full Version : need some help modifying search.php in 3.8.4 to exclude forums from Get Daily


sailnet
01-15-2013, 03:34 PM
We have some forums on out website that often contain caustic content re: politics religion etc) that I'd like to exclude from the "Get Daily" results to folks visiting our forums who are not logged in.

I'm running 3.8.4 - any hints on how to best modify search.php in 3.8.4 to exclude certain forums?

thanks in advance.

or should I exclude these forums altogether from guests via the admin control panel?

kh99
01-16-2013, 02:42 AM
You could try something like this: create a new plugin using hook location search_getnew_start and code like this:


if (empty($vbulletin->GPC['exclude']))
{
$vbulletin->GPC['exclude'] = '1,2,3';
}