Closed (won't fix)
Project:
Tribune
Version:
6.x-1.9
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Reporter:
Created:
15 Sep 2010 at 20:35 UTC
Updated:
9 Sep 2012 at 14:22 UTC
Put this in your block visibility settings (admin/build/block/configure/tribune/1):
SHOW ONLY IF THE PHP CODE RETURNS TRUE.... :
<?php
if(count(tribune_get_active_users()) < 2) {
$show = false;
} else {
$show = true;
}
return $show
?>
Comments
Comment #1
Fidelix commentedThis is for the block "Tribune Users", the code is a little better now, it will hide your code from all pages except yoursite.com/chat or yoursite.com/tribune, IF there is 2 or less users chatting.
This is for the actual tribune chat block, it will hide the block if your actual page is yoursite.com/chat or yoursite.com/tribune>
Comment #2
SeeSchloss commentedI think this shouldn't be done by the module itself but by the site admin.