Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:if ( @include_once($Configuration['PfcPath'] . 'src/pfcinfo.class.php') ) {
$PfcInfo = new pfcInfo(md5($Context->Configuration['APPLICATION_TITLE']));
$PfcUsers = $PfcInfo->getOnlineNick(NULL);
}
<?php
if (@include_once('/full/path/to/vanilla/extensions/PFC/phpfreechat-1.0-beta11/src/pfcinfo.class.php')) {
$PfcInfo = new pfcInfo(md5($Context->Configuration['APPLICATION_TITLE']));
$PfcUsers = $PfcInfo->getOnlineNick(NULL);
echo "<ul>";
foreach($PfcUsers as $u) {
echo "<li>".$u."</li>";
}
echo "</ul>";
}
?>Notice: Undefined index: childs in /full/path/to/vanilla/extensions/PFC/phpfreechat-1.0-beta11/src/pfccontainer.class.php on line 661
Notice: Undefined index: f890fa7792e4943e9dcc2eee3efa31a2 in /full/path/to/vanilla/extensions/PFC/phpfreechat-1.0-beta11/src/pfccontainer.class.php on line 661
Notice: Undefined index: 773b82d466bb603b2bfc854cff4e3823 in /full/path/to/vanilla/extensions/PFC/phpfreechat-1.0-beta11/src/pfccontainer.class.php on line 661
// Add a link to the chat page at the top bar (keep in mind guest permissions)
$Context->Dictionary['Chat'] = 'Chat';
//Allow guests? 1 for yes 0 for no
$eChatConfig['AllowGuests'] = '0';
if(isset($Menu) && $Context->Session->UserID > 0 && $eChatConfig['AllowGuests'] == 0) {
$Menu->AddTab($Context->GetDefinition('Chat'), $Context->GetDefinition('Chat'), GetUrl($Configuration, 'extension.php', '', '', '', '', 'PostBackAction=PFC'), $Attributes = '', $Position = '50', $ForcePosition = '50');
}
elseif(isset($Menu) && $eChatConfig['AllowGuests'] == 1) {
$Menu->AddTab($Context->GetDefinition('Chat'), $Context->GetDefinition('Chat'), GetUrl($Configuration, 'extension.php', '', '', '', '', 'PostBackAction=PFC'), $Attributes = '', $Position = '50', $ForcePosition = '50');
}
$eChatConfig['AllowGuests'] = '0';$eChatConfig['AllowGuests'] = '1';