It was suggested that I share what I did to get nickvergessen's NV Recent Topics mod to work in a center block. Fortunately that mod includes instructions to display the recent topics on any page, so I didn't have to do much to adapt it to work on a portal. This is what I did though:
First, in portal.php find:
Code: Select all
$template->assign_vars(array(
'PORTAL_LEFT_COLLUMN' => $portal_config['portal_left_collumn_width'],
'PORTAL_RIGHT_COLLUMN' => $portal_config['portal_right_collumn_width'],
));
Code: Select all
if($config['rt_portal'])
{
include($phpbb_root_path . 'includes/functions_recenttopics.' . $phpEx);
}
Code: Select all
<!-- IF RT_MUSTER and not RT_MUSTER -->
<dl>
<dt><label for="rt_muster">{L_RT_MUSTER}</label></dt>
<dd><input type="radio" class="radio" name="rt_muster" value="1" <!-- IF RT_MUSTER -->checked="checked"<!-- ENDIF -->/> {L_YES}
<input type="radio" class="radio" name="rt_muster" value="0" <!-- IF not RT_MUSTER -->checked="checked"<!-- ENDIF --> /> {L_NO}</dd>
</dl>
<!-- ENDIF -->
Code: Select all
<dl>
<dt><label for="rt_portal">{L_RT_PORTAL}</label></dt>
<dd><input type="radio" class="radio" name="rt_portal" value="1" <!-- IF RT_PORTAL -->checked="checked"<!-- ENDIF -->/> {L_YES}
<input type="radio" class="radio" name="rt_portal" value="0" <!-- IF not RT_PORTAL -->checked="checked"<!-- ENDIF --> /> {L_NO}</dd>
</dl>
Code: Select all
#$rt_muster = request_var('rt_muster', 0);
Code: Select all
$rt_portal = request_var('rt_portal', 0);
Code: Select all
#if($rt_muster != $config['rt_muster'])
#{
# set_config('rt_muster', $rt_muster);
#}
Code: Select all
if($rt_portal != $config['rt_portal'])
{
set_config('rt_portal', $rt_portal);
}
Code: Select all
#'RT_MUSTER' => $config['rt_muster'],
Code: Select all
'RT_PORTAL' => $config['rt_portal'],
Code: Select all
'RT_INDEX' => 'Index',
Code: Select all
'RT_PORTAL' => 'Portal',
Code: Select all
<!-- IF S_DISPLAY_RECENT -->
<!-- INCLUDE portal/block/recent.html -->
<!-- ENDIF -->
Code: Select all
<!-- IF RT_DISPLAY --><!-- INCLUDE recent_topics_body.html --><!-- ENDIF -->
I am considering trying to actually just include this in overall_footer.html. I'll report back here how that works when/if I do try it.
Enjoy!
--Fligg