who was here? question

tommie
Donor
Posts: 34
Joined: Sun Jan 30, 2011 11:48 am
Flag: Netherlands

who was here? question

Post by tommie » Sun Feb 06, 2011 5:29 am

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 :D
Last edited by tommie on Tue Feb 26, 2013 10:29 am, edited 2 times in total.


User avatar
spaceace
Site Owner
Posts: 919
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada

Re: who was here? question

Post by spaceace » Sun Feb 06, 2011 8:58 am

open /root/portal/block/additional_blocks.php

find
Code: Select all
?>
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 ;)
Last edited by spaceace on Tue Feb 26, 2013 10:29 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Image

tommie
Donor
Posts: 34
Joined: Sun Jan 30, 2011 11:48 am
Flag: Netherlands

Re: who was here? question

Post by tommie » Mon Feb 07, 2011 11:41 am

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>
Last edited by tommie on Tue Feb 26, 2013 10:29 am, edited 3 times in total.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], CommonCrawl [Bot] and 0 guests