Who was here? on Portal

Download and support for PhpBB3 Simple Portal
Locked
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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 -->
Board rules! No PM support
Locked