This forum contains some common phpBB3 problems and solutions as well as a selection of useful tutorials.
Moderators: Moderator Team, phpBB Moderators
Forum rules/notes
You use any of the fixes listed in this forum at your own risk. You should make full backups before applying any changes to your board. This site is not affiliated with phpBB.com and as such the phpBB team can and will not be held accountable for any issues which arise from using any of the fixes in this forum. Some of the topics here are clones of articles taken from the phpBB.com knowledge base.
by Jackal » 07 Dec 2007 08:01
Problem
You want to use the bot accounts so you can control the
bots using the permissions system and allow them to browse with more optimisation, However you do not want them to show as online in the who is online legend.
Solution
Open: includes/functions.php
Find:
- Code: Select all
$user_online_link = get_username_string(($row['user_type'] <> USER_IGNORE) ? 'full' : 'no_profile', $row['user_id'], $row['username'], $row['user_colour']);
$online_userlist .= ($online_userlist != '') ? ', ' . $user_online_link : $user_online_link;
Replace With:
- Code: Select all
if ($row['user_type'] <> USER_IGNORE)
{
$user_online_link = get_username_string(($row['user_type'] <> USER_IGNORE) ? 'full' : 'no_profile', $row['user_id'], $row['username'], $row['user_colour']);
$online_userlist .= ($online_userlist != '') ? ', ' . $user_online_link : $user_online_link;
}
else
{
$user_online_link = '';
$online_userlist .= '';
}
-

Jackal
- Evil Admin

-
- Posts: 46,437
- Joined: 22 Oct 2004 17:34
- Location: Hereford UK
- Blog: View Blog (11)
- Gender: Male
Hiding Bots from the online legend
Sponsor
-
Sponsor
-
by Jackal » 30 Dec 2007 21:43
zeroK wrote:Since they are more or less just normal users you should be able to hide their online status by editing their preferences (which you can for instance reach through the group manager -> members for the "
Bots" group and there select "Preferences" for the selected bot).
Since you probably don't want to do this for every single one of these around 50 users, this query should also get the job done:
- Code: Select all
UPDATE phpbb_users SET user_allow_viewonline = 0 WHERE user_id > 2 AND user_id < 53;
-

Jackal
- Evil Admin

-
- Posts: 46,437
- Joined: 22 Oct 2004 17:34
- Location: Hereford UK
- Blog: View Blog (11)
- Gender: Male
by Mario » 11 Feb 2009 08:52
Could this be done to hide the Only the registered Members . (Except the one's who are in legend ) Such as Admins , Mods, Devlopemement etc...
-

Mario
- Bit of a Nutter!

-
- Posts: 262
- Joined: 13 Feb 2008 15:24
- Gender: Male
by Mario » 17 Feb 2009 07:38
thanks any way karl , i have fixed it <3
-

Mario
- Bit of a Nutter!

-
- Posts: 262
- Joined: 13 Feb 2008 15:24
- Gender: Male
by Jackal » 11 Mar 2009 09:30
Mario wrote:thanks any way karl , i have fixed it <3
Maybe you could share for other users in the future?

-

Jackal
- Evil Admin

-
- Posts: 46,437
- Joined: 22 Oct 2004 17:34
- Location: Hereford UK
- Blog: View Blog (11)
- Gender: Male
Return to Common phpBB3 problems and tutorials
Who is online
Users browsing this forum: CommonCrawl [Bot] and 0 guests