With IM Portal, because blocks can be used forum-wide, I decided to localized the logic inside a function. Here is a very simple example of what I mean of localizing the logic: if(!function_exists(imp_search_block_func)) { function imp_search_block_func() { global $lang, $template, $portal_config, $...