PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2006-08-11 21:42:29

Saeed
Member
From: EuroAmerica
Registered: 2006-07-25
Posts: 23
Website

How to remove Online list from footer?

Newest registered user: Foxconn
Registered users online: 1
Guests online: 13

Online:
Al-Dhikr

Does anyone know how I can remove Who's Online from the footer (the bold text), I've tried looking at footer.php but can't figure out where it is.

Thanks in advance for your help.

Kind regards


<webular>Programming Community</webular>

Offline

 

#2 2006-08-11 22:53:48

gizzmo
Member
From: Earth, Milkyway Galaxy
Registered: 2004-08-05
Posts: 252

Re: How to remove Online list from footer?

Check the options and look for "Users online"


Gizzmo

Offline

 

#3 2006-08-12 17:56:32

Saeed
Member
From: EuroAmerica
Registered: 2006-07-25
Posts: 23
Website

Re: How to remove Online list from footer?

Yes, that is an option but that removed the total number of users currently online, i just want to remove the list.

Thanks anyways.


<webular>Programming Community</webular>

Offline

 

#4 2006-08-12 18:34:45

guardian34
Member
Registered: 2006-06-03
Posts: 114

Re: How to remove Online list from footer?

Edit index.php, near this these lines:

Code:

if ($pun_config['o_users_online'] == '1')
{
    // Fetch users online info and generate strings for output

Offline

 

#5 2006-08-12 19:30:18

Saeed
Member
From: EuroAmerica
Registered: 2006-07-25
Posts: 23
Website

Re: How to remove Online list from footer?

thanks, let me try and see what i can do.


<webular>Programming Community</webular>

Offline

 

#6 2006-08-12 19:36:40

Saeed
Member
From: EuroAmerica
Registered: 2006-07-25
Posts: 23
Website

Re: How to remove Online list from footer?

ok, i'm having trouble. I know i have to remove just a few lines of code, but i'm not understanding any of the php stuff at all. here's the code:

Code:

if ($pun_config['o_users_online'] == '1')
{
    // Fetch users online info and generate strings for output
    $num_guests = 0;
    $users = array();
    $result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

    while ($pun_user_online = $db->fetch_assoc($result))
    {
        if ($pun_user_online['user_id'] > 1)
            $users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
        else
            ++$num_guests;
    }

    $num_users = count($users);
    echo "\t\t\t\t".'<dd>'. $lang_index['Users online'].': <strong>'.$num_users.'</strong></dd>'."\n\t\t\t\t".'<dd>'.$lang_index['Guests online'].': <strong>'.$num_guests.'</strong></dd>'."\n\t\t\t".'</dl>'."\n";


    if ($num_users > 0)
        echo "\t\t\t".'<dl id="onlinelist" class= "clearb">'."\n\t\t\t\t".'<dt><strong>'.$lang_index['Online'].':&nbsp;</strong></dt>'."\t\t\t\t".implode(',</dd> ', $users).'</dd>'."\n\t\t\t".'</dl>'."\n";
    else
        echo "\t\t\t".'<div class="clearer"></div>'."\n";

}
else
    echo "\t\t".'</dl>'."\n\t\t\t".'<div class="clearer"></div>'."\n";


?>

anyone know what to remove?

thanks a million in advance for your help.


<webular>Programming Community</webular>

Offline

 

#7 2006-08-12 19:43:48

elbekko
Moderator
From: Leuven, Belgium
Registered: 2006-01-31
Posts: 1353

Re: How to remove Online list from footer?

Just remove this part:

Code:

if ($num_users > 0)
        echo "\t\t\t".'<dl id="onlinelist" class= "clearb">'."\n\t\t\t\t".'<dt><strong>'.$lang_index['Online'].':&nbsp;</strong></dt>'."\t\t\t\t".implode(',</dd> ', $users).'</dd>'."\n\t\t\t".'</dl>'."\n";
    else

FluxBB
dictionary.com on programming: The most fun you can have with your clothes on (although clothes are not mandatory).

Offline

 

#8 2006-08-12 19:54:34

Saeed
Member
From: EuroAmerica
Registered: 2006-07-25
Posts: 23
Website

Re: How to remove Online list from footer?

Thanks elbekko, that certainly has done the trick [smile]

Also, i noticed the code is a lot easier to under when it's not word wrapped.

Thanks again.


<webular>Programming Community</webular>

Offline

 

#9 2010-05-29 02:04:15

Kan75
Member
Registered: 2010-05-19
Posts: 20

Re: How to remove Online list from footer?

Hello,

Undiging this topic to know how to move the "user online" information to the header under the welcome message smile

Where to paste the code ?

Regards


Kankan
First ASUS Laptop french forum
http://www.forum-des-portables-asus.fr/index.php

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.