Who was here? on Portal

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Who was here? on Portal

Post by Stoker »

Who was here? on Portal
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
Before add:

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();
Open styles/prosilver/template/simpleportal_body.html
Find:

Code: Select all

<!-- End Online List -->
After add:

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 -->