Written by Stoker
With 2 edits we can put the Who was here? mod on the Portal. You need to have the Who was here? mod installed.
Open portal.php
Find:
Code: Select all
// Assign index specific vars
Code: Select all
if (!class_exists('phpbb_mods_who_was_here'))
{
include($phpbb_root_path . 'includes/mods/who_was_here.' . $phpEx);
phpbb_mods_who_was_here::update_session();
}
phpbb_mods_who_was_here::display();
Find:
Code: Select all
<!-- End Online List -->
Code: Select all
<!-- Start WWH -->
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt>{L_WHO_WAS_HERE}</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<li>
<div class="content" style="width:auto; height:auto; padding:10px; padding-bottom:0px;">
<!-- IF WHO_WAS_HERE_TOTAL -->
<p>{WHO_WAS_HERE_TOTAL} ({WHO_WAS_HERE_EXP})<br />{WHO_WAS_HERE_RECORD}<br />{WHO_WAS_HERE_LIST}</p>
<!-- ELSEIF U_ACP -->
<h3>{L_WHO_WAS_HERE}</h3>
<p>{L_WWH_UPDATE_NEED}</p>
<!-- ENDIF -->
</div>
</li>
</ul>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- End WWH -->