In
\templates\default\header.tpl find this starting on or around Line 44:
<table class="popup_menu">
<tr>
<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=t"}">{$lang.ACTIVE_TOPICS}</a></td>
</tr>
<tr>
<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=p"}">{$lang.ACTIVE_POSTS}</a></td>
</tr>
<tr>
<td class="popup_menu_content"><a href="{ubb url="ubb=activetopics&range=7&type=u"}">{$lang.ACTIVE_NO_ANSWERS}</a></td>
</tr>
</table>
Where you see the 3 instances of
&range=7 you can change that value to:
1 for Past 24 Hours
2 for Past 48 Hours
7 for Past 7 Days (default)