miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions /   

Who's Online

Page  Page 4 of 5:  « Previous  1  2  3  4  5  Next »  
Author Paul
Lead Developer
#46 | Posted: 22 Jun 2009 03:05 
The offline icon should show, check your installation.

Author Prince
Registered
#47 | Posted: 30 Apr 2010 08:36 
Is there any way for changing Mods font color in Who's Online statue down forum?

If one or two mods are online in forum with other users.. the mods name be like red or blue color..

is it possible? ;)

Author woodscooter
Registered
#48 | Posted: 30 Apr 2010 14:16 
Prince have a look at post #33 of this thread.

Paul has shown the code that will show Admin in red and Mods in green.

If you change $clr='green'; to read'red' or 'blue' it will do what you are asking.

Author Prince
Registered
#49 | Posted: 2 May 2010 04:53 | Edited by: Prince 
I did it like this:

$modsList=array();
foreach($mods as $key=>$val) if(!in_array($key, $modsList)) $modsList[]=$key;

foreach($w_logged_users as $key=>$val){
if($key==1) $clr='red';
elseif(in_array($key, $modsList)) $clr='green';
else $clr='black';
$registeredList.=" <a href=\"{$main_url}/{$indexphp}action=userinfo&amp;user={$key}\"><span style=\"color:{$clr}\">{$val[0]}</span></a>, ";
}

foreach($w_logged_users as $key=>$val){

if(!isset($enableHidden) or $enableHidden==0){
//$registeredList.=" <a href=\"{$main_url}/{$indexphp}action=userinfo&amp;user={$key}\">{$val[0]}</a>, ";
$usersOnline[$key]=TRUE;
}

and also I did for some Mod that they are just Mod for one or two threat in a forum..

if($key==1 or $key==2) $clr='red';
elseif(in_array($key or $key==1124, $modsList)) $clr='green';

this options work on my forum.. so is that ok?

Author Paul
Lead Developer
#50 | Posted: 3 May 2010 04:59 
If that all works for you, why it would not be ok? :-)

Author Prince
Registered
#51 | Posted: 3 May 2010 08:18 
Paul:
If that all works for you, why it would not be ok?

I was affraid if something be wrong.. so that's OK ;)

Author Prince
Registered
#52 | Posted: 3 May 2010 08:47 
Paul
Is there any other option for Moderators that, As I said.. if some one is just Moderators for one thread of forum.. without making these options:

elseif(in_array($key or $key==1124, $modsList)) $clr='green';

cus with normal code it doesn't work for just one thread's mod in a forum..

Author Paul
Lead Developer
#53 | Posted: 3 May 2010 08:52 | Edited by: Paul 
You will be damn tired when assigning such thing to each thread manually, so I suppose there is no way. However you can assign these conditions using $topic variable.

if($topic==12345) {

}

and so on.

Author Prince
Registered
#54 | Posted: 3 May 2010 11:17 | Edited by: Prince 
Paul:
You will be damn tired when assigning such thing to each thread manually, so I suppose there is no way. However you can assign these conditions using $topic variable.

Ya.. anyway thanks a lot.. ;)

Author Prince
Registered
#55 | Posted: 16 May 2010 11:31 | Edited by: Moderator 
I got a little error in bb_admin.php (admin panel) side..

this error is just for admin panel side...

http://www . mysite . com/bb_admin.php?

Warning: Invalid argument supplied for foreach() in /home/mysite/mysite/addon_whosonline.php on line 104

line 104:
foreach($mods as $key=>$val) if(!in_array($key, $modsList)) $modsList[]=$key;


Author Paul
Lead Developer
#56 | Posted: 17 May 2010 03:51 
This is not the admin panel's side error. The code you have for Who's online add-on, appears to be a custom addition. To make it work correctly from the admin panel as well, set the following:

if(isset($mods)){
foreach($mods as $key=>$val) if(!in_array($key, $modsList)) $modsList[]=$key;
}


Author Prince
Registered
#57 | Posted: 4 Oct 2010 11:02 
Is it possible that "Who's Online" just shown in frist page, forum/index.php ?
not in all pages (thread) Topics?

thanks.

Author tom322
Registered
#58 | Posted: 4 Oct 2010 12:03 
It's possible:

if($action=='') {block for whos online from bb_plugins}

Author Prince
Registered
#59 | Posted: 5 Oct 2010 02:28 
tom322:
if($action=='') {block for whos online from bb_plugins}

I don't know how to set it.. :(

Author Paul
Lead Developer
#60 | Posted: 5 Oct 2010 03:44 | Edited by: Paul 
If you don't know how to do that what is already explained and provided, then why do you ask? ;-)

Page  Page 4 of 5:  « Previous  1  2  3  4  5  Next » 
Official Addons and Solutions miniBB Support Forums / Official Addons and Solutions / Who's Online Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB