[ Мод ] Друзья Online

Статус
В этой теме нельзя размещать новые ответы.

aleks63

Мастер
Друзья в сети в нижней части экрана

Mod Версия: 1.00
VB Версия: 4.1.0

Установка: Создайте новый плагин:

Product : vBulletin
Hook Location : process_templates_complete
Title : Friends Online
Execution Order : 5

PHP:
if (!$vbulletin->userinfo['userid'])  
    {  
    }  
else  
{  
$datecut = TIMENOW - $vbulletin->options['cookietimeout'];    

    $buddys = $vbulletin->db->query_read("    
        SELECT    
        user.username, user.userid, user.lastactivity    
        FROM " . TABLE_PREFIX . "userlist AS userlist    
        LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = userlist.relationid)    
        WHERE userlist.userid = {$vbulletin->userinfo['userid']} AND userlist.relationid = user.userid AND type = 'buddy' AND user.lastactivity > $datecut    
        ORDER BY username ASC    
    ");    
    $output = '';    


    while ($buddy = $vbulletin->db->fetch_array($buddys))    
    {        
            $output .= ' <a href="member.php?' . $buddy['userid'] . '"><font color=blue><b>' . $buddy['username'] . ',</b></font></a> ';    
    }   
if ($output != '')  
    {  
    $output = '<font color=black>Друзья в сети:</font>' . $output;  
      
$template_hook['navtab_end'] .= '    

<style type="text/css">    
#bottom {     
position: fixed;    
z-index:10000!important;  
bottom: 0px;    
text-align: right;   
background-color: #eeeeee;   
}    
</style>    
<div id="bottom" class="blockhead">    

';    

$template_hook['navtab_end'] .= $output;    
$template_hook['navtab_end'] .= '    

</div>    

';  
}  
}
Скрин:


ORG -
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу