Topic: [release] Hide your online status

Hello

This extension let users to hide their online status. Features:
-configurable group assign
-configurable flood protection* (per group)
-users can set their state in header (next to your username)
-hidden users can't post
-hidden moderators and administrators can post always
-hidden user can see himself on online list
-moderators and administrators can see all hidden users on online list (grayed/css)

* - flood protection is for unable users to be hidden all the time, and show just for couple seconds to post.

Version 1.0
hide_online_1.0.zip

YonasH's repository + Extensions Directory = PunBB Extensions Online Library (in progress....)

Away. I will be back soon.

Re: [release] Hide your online status

Cool. Unfortunately, I installed List of online avatars at top of forum, so even if I hide my online stat. the avatar still showing up. Any tips (except removing both extensions)?

Re: [release] Hide your online status

sonofsinner wrote:

Cool. Unfortunately, I installed List of online avatars at top of forum, so even if I hide my online stat. the avatar still showing up. Any tips (except removing both extensions)?

Edit your user_avatars.php file. Change

'WHERE'        => 'e.idle=0 AND o.id!=1',

to

'WHERE'        => 'e.idle=0 AND o.id!=1 AND o.hidden=0',

Should work smile




OR, what should be more safe (if you will want to disable/remove my extension):
before

$process = $forum_db->query_build($array) or error(__FILE__, __LINE__);

add

if ($forum_db->field_exists('online', 'hidden')) $array['WHERE'] .= ' AND o.hidden=0';

wink

Last edited by YonasH (2009-01-18 00:30:33)

YonasH's repository + Extensions Directory = PunBB Extensions Online Library (in progress....)

Away. I will be back soon.

Re: [release] Hide your online status

yonash, thank you so much. This extension very nesesuary for comfortable work with PunBB. tongue

Re: [release] Hide your online status

Nada. I got the following errors.

yonash wrote:

Edit your user_avatars.php file. Change

'WHERE'        => 'e.idle=0 AND o.id!=1',

to

'WHERE'        => 'e.idle=0 AND o.id!=1 AND o.hidden=0',

Should work smile

The error occurred on line 31 in /home/xxxxxx/public_html/forum/include/user/user_avatars.php

Database reported: Unknown column 'o.hidden' in 'where clause' (Errno: 1054).


yonash wrote:

OR, what should be more safe (if you will want to disable/remove my extension):
before

$process = $forum_db->query_build($array) or error(__FILE__, __LINE__);

add

if ($forum_db->field_exists('online', 'hidden')) $array['WHERE'] .= ' AND o.hidden=0';

wink


Notice: Undefined variable: process in /home/xxxx/public_html/forum/include/user/user_avatars.php on line 32

Notice: Undefined variable: process in /home/xxxx/public_html/forum/include/user/user_avatars.php on line 49


Thanks anyway.

Re: [release] Hide your online status

@sonofsinner

I know whats wrong. It'll work smile
I don't know why there is so strange database nickname assign?: "users AS o", "online AS e" ??

Anyway, before

$process = $forum_db->query_build($array) or error(__FILE__, __LINE__);

add

if ($forum_db->field_exists('online', 'hidden')) $array['WHERE'] .= ' AND e.hidden=0';
YonasH's repository + Extensions Directory = PunBB Extensions Online Library (in progress....)

Away. I will be back soon.

Re: [release] Hide your online status

Many thanks, looks so much better now. I'd really appreciate your help.

Re: [release] Hide your online status

nice thanks yonash i was lookin for something exactly like this too! gj man:)

Re: [release] Hide your online status

moderators cannot leave the message in the latent mode, help please as it is possible to include it sending of messages? Forgive for my English translate