Page 1 of 1
who was here? question
Posted: Sun Feb 06, 2011 5:29 am
by tommie
Hi
I have the mod who is here working on the index ,but
i want also this on the portal wich file of files must i edit
and how ?????
Gr Tommie
Spaceace thnx for your goood support
Re: who was here? question
Posted: Sun Feb 06, 2011 8:58 am
by spaceace
open /root/portal/block/additional_blocks.php
find
before add
Code:
Select all if (!function_exists('display_who_was_here'))
{
include($phpbb_root_path . 'includes/functions_wwh.' . $phpEx);
}
display_who_was_here();
open styles/prosilver/template/portal/block/whois_online.html
find
Code:
Select all<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
add after
Code:
Select all <h3 style="font-size: 90%; margin: 10px 0 0 5px;">{L_WHO_WAS_HERE}</h3>
<p style="font-size: 90%; margin: 0 5px 0 5px;"><!-- IF WHO_WAS_HERE_LIST2 -->{WHO_WAS_HERE_LIST2}<br />({WHO_WAS_HERE_EXP})<br />{WHO_WAS_HERE_RECORD}<br />{WHO_WAS_HERE_LIST}<!-- ELSE -->{L_WWH_UPDATE_NEED}<!-- ENDIF --></p>
refresh your templates and that should do it
Re: who was here? question
Posted: Mon Feb 07, 2011 11:41 am
by tommie
It's now working ,but i must edit the files so:
edit portal/blocks/additional_blocks.php
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();
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
edit style/Bluespace/template/portal/blocks/whois_online.php
<h3 style="font-size: 90%; margin: 10px 0 0 5px;">{L_WHO_WAS_HERE}</h3>
<p style="font-size: 90%; margin: 0 5px 0 5px;"><!-- IF WHO_WAS_HERE_TOTAL -->{WHO_WAS_HERE_TOTAL}<br />({WHO_WAS_HERE_EXP})<br />{WHO_WAS_HERE_RECORD}<br />{WHO_WAS_HERE_LIST}<!-- ELSE -->{L_WWH_UPDATE_NEED}<!-- ENDIF --></p>