Changeset 2055 in ExiteCMS


Ignore:
Timestamp:
11/20/08 11:31:34 (3 years ago)
Author:
webmaster
Message:

added flags to indicate the countries site guests are from

Location:
modules/common/online_users_panel/php-files/modules/online_users_panel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/common/online_users_panel/php-files/modules/online_users_panel/online_users_panel.php

    r2043 r2055  
    4040while ($data = dbarray($result)) { 
    4141    if ($data['online_user'] == "0") { 
    42         $variables['guests']++; 
     42        if ($settings['forum_flags']) { 
     43            $data['cc_flag'] = GeoIP_Code2Flag($data['online_ip'], true, false, 10); 
     44        } 
     45        $variables['guests'][] = $data; 
    4346    } else { 
    4447        $variables['members'][] = $data; 
  • modules/common/online_users_panel/php-files/modules/online_users_panel/templates/modules.online_users_panel.tpl

    r2043 r2055  
    1919{***************************************************************************} 
    2020{include file="_openside_x.tpl" name=$_name title=$locale.010 state=$_state style=$_style} 
    21 <img src='{$smarty.const.THEME}images/bullet.gif' alt='' /> {$locale.011}{$guests}<br /> 
     21<img src='{$smarty.const.THEME}images/bullet.gif' alt='' /> {$locale.011}{$guests|@count}<br /> 
     22<div style='margin-left:8px;'> 
     23{section name=guest loop=$guests} 
     24    {$guests[guest].cc_flag} 
     25{/section} 
     26</div> 
    2227<img src='{$smarty.const.THEME}images/bullet.gif' alt='' /> {$locale.012}{$members|@count}<br /> 
    2328<div style='margin-left:8px;'> 
Note: See TracChangeset for help on using the changeset viewer.