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)?

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

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

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

10

Re: [release] Hide your online status

YonasH
Hi.

-hidden moderators and administrators can post always

It not absolutely so.
Forum1 - moderator1
Forum2 - moderator1
Forum3 - moderator2

If moderator1 set our status is hide, he cannot write in a forum3, but can write to forum1 and forum2.  sad
Whether it is impossible to correct it?
Thanks.

11 (edited by ykelat 2010-08-10 23:25)

Re: [release] Hide your online status

Hello.

This extension does not work properly in PunBB 1.3.4 with extension "Colored usergroups 1.0.3" : In all my tests hided admin is always online for guests.

How is it possible to correct it?


Thank you.

12

Re: [release] Hide your online status

Hi. File is deleted. Can you reup please ?
Thank you.

13

Re: [release] Hide your online status

http://www.mediafire.com/?itnqjfd5j3z

14

Re: [release] Hide your online status

Thanks a lot.