Changeset 674


Ignore:
Timestamp:
Nov 26, 2017, 4:19:20 PM (3 months ago)
Author:
chrissyx
Message:

TBB 1.6:

  • Extended WIO and WWO boxes with number of bots
  • Updated ICQ UIN link again
  • Updated copyright year
Location:
branches/1.6
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • branches/1.6/core/Constants.php

    r671 r674  
    44 *
    55 * @author Christoph Jahn <chris@tritanium-scripts.com>
    6  * @copyright Copyright (c) 2010-2016 Tritanium Scripts
     6 * @copyright Copyright (c) 2010-2017 Tritanium Scripts
    77 * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ Creative Commons 3.0 by-nc-sa
    88 * @package TBB1.6
     
    1111define('INDEXFILE', 'index.php');
    1212define('ERR_REPORTING', E_ERROR | E_WARNING | E_PARSE); //Report only warnings or higher
    13 define('COPYRIGHT_YEAR', 2016); //Displayed in page footer
     13define('COPYRIGHT_YEAR', 2017); //Displayed in page footer
    1414/*
    1515 * Two version numbers of this script are used
  • branches/1.6/docs/changelog.txt

    r673 r674  
    11**********************************************************
    22Tritanium Bulletin Board 1.5+ - Changelog (German version)
    3 Last changed: 2016-12-16 (Version 1.6.6)
     3Last changed: 2017-11-26 (Version 1.6.6)
    44**********************************************************
    55
     
    77    - Datenstrukturfehler bei Neuberechnung der ZÀhler behoben
    88    - Smarty auf Version 3.1.31 aktualisiert
     9    - Anzeige von Bots in WIO- und WWO-Boxen
     10    - ICQ-UIN-Link aktualisiert
     11    - Copyright-Jahreszahl aktualisiert
    912
    101307.08.2016: Version 1.6.5 (offiziell)
     
    275278
    276279Written by Chrissyx
    277 (c) 2010–2016 Tritanium Scripts
     280(c) 2010–2017 Tritanium Scripts
    278281http://www.tritanium-scripts.com/
  • branches/1.6/docs/readme.html

    r673 r674  
    99  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    1010  <meta name="author" content="Tritanium Scripts" />
    11   <meta name="copyright" content="&copy; 2010&ndash;2016 Tritanium Scripts" />
     11  <meta name="copyright" content="&copy; 2010&ndash;2017 Tritanium Scripts" />
    1212  <meta name="description" content="Dokumentation fÃŒr das Tritanium Bulletin Board 1.6" />
    1313  <meta name="generator" content="Notepad 4.10.1998" />
     
    764764       <ul>
    765765        <li><a href="http://www.julianbackes.de/" target="_blank">Julian</a> &ndash; <a href="mailto:julian@tritanium-scripts.com">julian@tritanium-scripts.com</a></li>
    766         <li><a href="http://www.chrissyx.de.vu/" target="_blank">Chris</a> &ndash; <a href="mailto:chris@tritanium-scripts.com">chris@tritanium-scripts.com</a></li>
     766        <li><a href="http://www.chrissyx.com/" target="_blank">Chris</a> &ndash; <a href="mailto:chris@tritanium-scripts.com">chris@tritanium-scripts.com</a></li>
    767767       </ul></li>
    768768   <li style="padding-bottom:1em;"><span style="font-weight:bold;">Was sollen diese ganzen persönlichen Fragen ÃŒberhaupt?</span><br />
     
    781781   <p class="fontnorm">Also dann, bis zur nÀchsten Version! Oder so. ;)<br /><br />mfg <b>Chris</b></p>
    782782
    783   <div class="fontcopyright">&copy; 2010&ndash;2016 <a href="http://www.tritanium-scripts.com/" target="_blank">Tritanium Scripts</a></div>
     783  <div class="fontcopyright">&copy; 2010&ndash;2017 <a href="http://www.tritanium-scripts.com/" target="_blank">Tritanium Scripts</a></div>
    784784 </body>
    785785</html>
  • branches/1.6/languages/de-DE/Forum.ini

    r583 r674  
    4848one_ghost = "Ein Geist"
    4949x_ghosts = "%d Geister"
     50no_bots = "Keine Bots"
     51one_bot = "Ein Bot"
     52x_bots = "%d Bots"
    5053legend_colon = "Legende:"
    5154member = "Mitglied"
     
    5356who_was_online = "Wer war online?"
    5457today_were_here_colon = "Heute waren bereits da:"
    55 total_one_member_x_ghosts_and_x_guests = "Insgesamt ein Mitglied, %d Geister und %d GÀste."
    56 total_x_member_one_ghost_and_x_guests = "Insgesamt %d Mitglieder, ein Geist und %d GÀste."
    57 total_x_member_x_ghosts_and_one_guest = "Insgesamt %d Mitglieder, %d Geister und ein Gast."
    58 total_x_members_x_ghosts_and_x_guests = "Insgesamt %d Mitglieder, %d Geister und %d GÀste."
    59 total_one_member_one_ghost_and_x_guests = "Insgesamt ein Mitglied, ein Geist und %d GÀste."
    60 total_one_member_x_ghosts_and_one_guest = "Insgesamt ein Mitglied, %d Geister und ein Gast."
    61 total_x_member_one_ghost_and_one_guest = "Insgesamt %d Mitglieder, ein Geist und ein Gast."
    62 total_one_member_one_ghost_and_one_guest = "Insgesamt ein Mitglied, ein Geist und ein Gast."
     58total_x_member_s_x_ghost_s_x_guest_s_and_x_bot_s = "Insgesamt %d Mitglied(er), %d Geist(er), %d GÀst(e) und %d Bot(s)."
    6359record_colon = "Rekord:"
    6460x_members_on_x = "%d Mitglieder am %s."
  • branches/1.6/languages/en-US/Forum.ini

    r583 r674  
    4848one_ghost = "One ghost"
    4949x_ghosts = "%d ghosts"
     50no_bots = "No bots"
     51one_bot = "One not"
     52x_bots = "%d bots"
    5053legend_colon = "Legend:"
    5154member = "Member"
     
    5356who_was_online = "Who was online?"
    5457today_were_here_colon = "Today were already here:"
    55 total_one_member_x_ghosts_and_x_guests = "Total one member, %d ghosts and %d guests."
    56 total_x_member_one_ghost_and_x_guests = "Total %d members, one ghost and %d guests."
    57 total_x_member_x_ghosts_and_one_guest = "Total %d members, %d ghosts and one guest."
    58 total_x_members_x_ghosts_and_x_guests = "Total %d members, %d ghosts and %d guests."
    59 total_one_member_one_ghost_and_x_guests = "Total one member, one ghost and %d guests."
    60 total_one_member_x_ghosts_and_one_guest = "Total one member, %d ghosts and one guest."
    61 total_x_member_one_ghost_and_one_guest = "Total %d members, one ghost and one guest."
    62 total_one_member_one_ghost_and_one_guest = "Total one member, one ghost and one guest."
     58total_x_member_s_x_ghost_s_x_guest_s_and_x_bot_s = "Total %d member(s), %d ghost(s), %d guest(s) and %d bot(s)."
    6359record_colon = "Record:"
    6460x_members_on_x = "%d members on %s."
  • branches/1.6/modules/WhoIsOnline.php

    r642 r674  
    44 *
    55 * WIO var file structure:
    6  * 0:timestamp - 1:user/guestSpecialID - 2:location - 3:? - [ - 4:isGhost - 5:userAgent]
     6 * 0:timestamp - 1:user/guestSpecialID - 2:location - 3:?[ - 4:isGhost - 5:userAgent]
    77 *
    88 * WWO var file structure:
    9  * 0:todaysDate - 1:0:recordMember - 1:1:recordDate[ - 2:guestCounter - 3:members]
     9 * 0:todaysDate - 1:0:recordMember - 1:1:recordDate[ - 2:guestCounter - 3:members - 4:bots]
    1010 *
    1111 * @author Christoph Jahn <chris@tritanium-scripts.com>
    12  * @copyright Copyright (c) 2010, 2011 Tritanium Scripts
     12 * @copyright Copyright (c) 2010-2017 Tritanium Scripts
    1313 * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ Creative Commons 3.0 by-nc-sa
    1414 * @package TBB1.6
     
    6060        if(!Main::getModule('Auth')->isConnected() && !Main::getModule('Auth')->isLoggedIn())
    6161        {
    62             $this->wwoFile[2]++;
     62            if($this->isBot($_SERVER['HTTP_USER_AGENT']))
     63                $this->wwoFile[4]++;
     64            else
     65                $this->wwoFile[2]++;
    6366            $update = true;
    6467        }
     
    111114            if(!($curWIOEntryIsGhost = $curWIOEntry[4] == '1') || Main::getModule('Auth')->isAdmin())
    112115            {
    113                 $curUser = is_numeric($curWIOEntry[1]) ? Functions::getProfileLink($curWIOEntry[1]) : Main::getModule('Language')->getString(Functions::stripos($curWIOEntry[5], 'bot') !== false || Functions::stripos($curWIOEntry[5], 'spider') !== false || Functions::stripos($curWIOEntry[5], 'crawl') !== false || Functions::stripos($curWIOEntry[5], 'slurp') !== false ? 'bot' : 'guest') . Functions::substr($curWIOEntry[1], 5, 5);
     116                $curUser = is_numeric($curWIOEntry[1]) ? Functions::getProfileLink($curWIOEntry[1]) : Main::getModule('Language')->getString($this->isBot($curWIOEntry[5]) ? 'bot' : 'guest') . Functions::substr($curWIOEntry[1], 5, 5);
    114117                $curTime = ($curTime = $time-$curWIOEntry[0]) < 60 ? sprintf(Main::getModule('Language')->getString('x_seconds_ago'), $curTime) : ($curTime < 120 ? Main::getModule('Language')->getString('one_minute_ago') : sprintf(Main::getModule('Language')->getString('x_minutes_ago'), $curTime/60));
    115118                //Only admins may see user agents
     
    467470
    468471    /**
    469      * Returns current active members and amount of guests and ghosts.
    470      *
    471      * @return array Guests / ghosts / memberProfiles triple
     472     * Returns current active members and amount of guests, ghosts and bots.
     473     *
     474     * @return array Guests / ghosts / memberProfiles / bots quadruple
    472475     */
    473476    public function getUserWIO()
    474477    {
    475         $guests = $ghosts = 0;
     478        $guests = $ghosts = $bots = 0;
    476479        $members = array();
    477480        if($this->enabled)
     
    479482            Functions::getFileLock('wio');
    480483            foreach($this->refreshVar() as $curWIOEntry)
    481                 is_numeric($curWIOEntry[1]) ? ($curWIOEntry[4] != '1' ? $members[] = Functions::getProfileLink($curWIOEntry[1], false, ' class="small"', true) : $ghosts++) : $guests++;
     484                is_numeric($curWIOEntry[1]) ? ($curWIOEntry[4] != '1' ? $members[] = Functions::getProfileLink($curWIOEntry[1], false, ' class="small"', true) : $ghosts++) : ($this->isBot($curWIOEntry[5]) ? $bots++ : $guests++);
    482485            Functions::releaseLock('wio');
    483486        }
    484         return array($guests, $ghosts, $members);
    485     }
    486 
    487     /**
    488      * Returns todays active members and amount of guests and ghosts.
    489      *
    490      * @return array Guests / ghosts / members / memberProfiles-isGhost-couple quadruple
     487        return array($guests, $ghosts, $members, $bots);
     488    }
     489
     490    /**
     491     * Returns todays active members and amount of guests, ghosts and bots.
     492     *
     493     * @return array Guests / ghosts / members / memberProfiles-isGhost-couples / bots quintuple
    491494     */
    492495    public function getUserWWO()
     
    507510                    $members[] = array(Functions::getProfileLink($curWWOEntry[0], true), false);
    508511            }
    509         return array($this->wwoFile[2], $ghosts, count($members), $members);
     512        return array($this->wwoFile[2], $ghosts, count($members), $members, $this->wwoFile[4]);
    510513    }
    511514
     
    564567        return $wioFile;
    565568    }
     569
     570    /**
     571     * Returns given user agent being used by a web crawler.
     572     *
     573     * @param string $userAgent User agent to check
     574     * @return bool User agent being used by a search bot
     575     */
     576    private function isBot($userAgent)
     577    {
     578        return Functions::stripos($userAgent, 'bot') !== false || Functions::stripos($userAgent, 'spider') !== false || Functions::stripos($userAgent, 'crawl') !== false || Functions::stripos($userAgent, 'slurp') !== false;
     579    }
    566580}
    567581?>
  • branches/1.6/templates/std/config/config.conf

    r672 r674  
    99
    1010# Any descriptive comment you like
    11 authorComment = "Offizielles Standardtemplate fÃŒr das Tritanium Bulletin Board 1.6 &copy; 2010&ndash;2016 Tritanium Scripts"
     11authorComment = "Offizielles Standardtemplate fÃŒr das Tritanium Bulletin Board 1.6 &copy; 2010&ndash;2017 Tritanium Scripts"
    1212
    1313# The default CSS file to display first in style selection of template administration
  • branches/1.6/templates/std/templates/ForumIndex.tpl

    r568 r674  
    3434{if $modules.Config->getCfgVal('wio') == 1}
    3535{$wioUser=$modules.WhoIsOnline->getUserWIO()}
    36 {* 0:guests - 1:ghosts - 2:memberProfiles *}
     36{* 0:guests - 1:ghosts - 2:memberProfiles - 3:bots *}
    3737<br />
    3838<!-- WIO -->
     
    4242  {if empty($wioUser[2])}{$modules.Language->getString('no_members')}{else}{$modules.Language->getString('members_colon')} {', '|implode:$wioUser[2]}{/if}<br />
    4343  {if $wioUser[1] == 0}{$modules.Language->getString('no_ghosts')}{elseif $wioUser[1] == 1}{$modules.Language->getString('one_ghost')}{else}{$wioUser[1]|string_format:$modules.Language->getString('x_ghosts')}{/if}<br />
    44   {if $wioUser[0] == 0}{$modules.Language->getString('no_guests')}{elseif $wioUser[0] == 1}{$modules.Language->getString('one_guest')}{else}{$wioUser[0]|string_format:$modules.Language->getString('x_guests')}{/if}<br /><br />
     44  {if $wioUser[0] == 0}{$modules.Language->getString('no_guests')}{elseif $wioUser[0] == 1}{$modules.Language->getString('one_guest')}{else}{$wioUser[0]|string_format:$modules.Language->getString('x_guests')}{/if}<br />
     45  {if $wioUser[3] == 0}{$modules.Language->getString('no_bots')}{elseif $wioUser[3] == 1}{$modules.Language->getString('one_bot')}{else}{$wioUser[3]|string_format:$modules.Language->getString('x_bots')}{/if}<br /><br />
    4546  <span style="font-weight:bold;">{$modules.Language->getString('legend_colon')}</span> <span{if $modules.Config->getCfgVal('wio_color_admin') != ''} style="color:{$modules.Config->getCfgVal('wio_color_admin')};"{/if}>{$modules.Language->getString('administrator')}</span> &ndash; <span{if $modules.Config->getCfgVal('wio_color_smod') != ''} style="color:{$modules.Config->getCfgVal('wio_color_smod')};"{/if}>{$modules.Language->getString('super_moderator')}</span> &ndash; <span{if $modules.Config->getCfgVal('wio_color_mod') != ''} style="color:{$modules.Config->getCfgVal('wio_color_mod')};"{/if}>{$modules.Language->getString('moderator')}</span> &ndash; <span{if $modules.Config->getCfgVal('wio_color_user') != ''} style="color:{$modules.Config->getCfgVal('wio_color_user')};"{/if}>{$modules.Language->getString('member')}</span> &ndash; <span{if $modules.Config->getCfgVal('wio_color_banned') != ''} style="color:{$modules.Config->getCfgVal('wio_color_banned')};"{/if}>{$modules.Language->getString('banned')}</span></span></td></tr>
    4647<!-- WWO -->
    4748{$wwoUser=$modules.WhoIsOnline->getUserWWO()}
    48 {* 0:guests - 1:ghosts - 2:members - 3:0:memberProfiles - 3:1:isGhost *}
     49{* 0:guests - 1:ghosts - 2:members - 3:0:memberProfiles - 3:1:isGhost - 4:bots *}
    4950{$record=$modules.WhoIsOnline->getRecord()}
    5051{* {$modules.Language->getString('who_was_online')} *}
    5152 <tr><td class="td2"><span class="small">{$modules.Language->getString('today_were_here_colon')}<br />
    5253  {foreach $wwoUser[3] as $curWWOUser}{if $curWWOUser[1]}<img src="{$modules.Template->getTplDir()}images/ghost.png" alt="{$modules.Language->getString('browses_as_ghost')}" title="{$modules.Language->getString('browses_as_ghost')}" style="vertical-align:middle;" /> {/if}{$curWWOUser[0]}{if !$curWWOUser@last}, {/if}{foreachelse}{$modules.Language->getString('no_members')}{/foreach}<br />
    53   {if $wwoUser[2] == 1 && $wwoUser[1] != 1 && $wwoUser[0] != 1}{sprintf($modules.Language->getString('total_one_member_x_ghosts_and_x_guests'), $wwoUser[1], $wwoUser[0])}
    54   {elseif $wwoUser[2] != 1 && $wwoUser[1] == 1 && $wwoUser[0] != 1}{sprintf($modules.Language->getString('total_x_member_one_ghost_and_x_guests'), $wwoUser[2], $wwoUser[0])}
    55   {elseif $wwoUser[2] != 1 && $wwoUser[1] != 1 && $wwoUser[0] == 1}{sprintf($modules.Language->getString('total_x_member_x_ghosts_and_one_guest'), $wwoUser[2], $wwoUser[1])}
    56   {elseif $wwoUser[2] == 1 && $wwoUser[1] == 1 && $wwoUser[0] != 1}{$wwoUser[0]|string_format:$modules.Language->getString('total_one_member_one_ghost_and_x_guests')}
    57   {elseif $wwoUser[2] == 1 && $wwoUser[1] != 1 && $wwoUser[0] == 1}{$wwoUser[1]|string_format:$modules.Language->getString('total_one_member_x_ghosts_and_one_guest')}
    58   {elseif $wwoUser[2] != 1 && $wwoUser[1] == 1 && $wwoUser[0] == 1}{$wwoUser[2]|string_format:$modules.Language->getString('total_x_member_one_ghost_and_one_guest')}
    59   {else}{sprintf($modules.Language->getString('total_x_members_x_ghosts_and_x_guests'), $wwoUser[2], $wwoUser[1], $wwoUser[0])}{/if}<br /><br />
     54  {sprintf($modules.Language->getString('total_x_member_s_x_ghost_s_x_guest_s_and_x_bot_s'), $wwoUser[2], $wwoUser[1], $wwoUser[0], $wwoUser[4])}<br /><br />
    6055  <b>{$modules.Language->getString('record_colon')}</b> {sprintf($modules.Language->getString('x_members_on_x'), $record[0], $record[1])}</span></td></tr>
    6156</table>
  • branches/1.6/templates/std/templates/ViewProfile.tpl

    r666 r674  
    6060 <tr>
    6161  <td class="td1" style="font-weight:bold; width:20%;"><span class="norm">{$modules.Language->getString('icq_number_colon')}</span></td>
    62   <td class="td1" style="width:80%;"><span class="norm">{if empty($userData[13])}<span style="font-style:italic;">{$modules.Language->getString('not_given')}</span>{else}<a href="http://people.icq.com/people/{$userData[13]}" target="_blank"><img src="http://status.icq.com/online.gif?icq={$userData[13]}&amp;img=5" alt="" style="vertical-align:top;" /> {$userData[13]|wordwrap:3:"-":true}</a>{/if}</span></td>
     62  <td class="td1" style="width:80%;"><span class="norm">{if empty($userData[13])}<span style="font-style:italic;">{$modules.Language->getString('not_given')}</span>{else}<a href="https://icq.com/people/{$userData[13]}" target="_blank"><img src="http://status.icq.com/online.gif?icq={$userData[13]}&amp;img=5" alt="" style="vertical-align:top;" /> {$userData[13]|wordwrap:3:"-":true}</a>{/if}</span></td>
    6363 </tr>{if $modules.Config->getCfgVal('achievements') == 1 && !empty($userData[19])}
    6464 <tr id="achievements">
  • branches/1.6/templates/std/templates/ViewTopic.tpl

    r666 r674  
    4141   {if $curPost.userID != 0}{$curPost.userID|string_format:$modules.Language->getString('id_x')}{/if}<br /><br />
    4242   {$curPost.userAvatar}<br />{if !empty($curPost.userICQ)}<br />
    43    <a href="http://people.icq.com/people/{$curPost.userICQ}" target="_blank"><img src="http://status.icq.com/online.gif?icq={$curPost.userICQ}&amp;img=5" alt="" style="vertical-align:middle;" /> {$curPost.userICQ|wordwrap:3:"-":true}</a>{/if}{if !empty($curPost.userSteamGames[0])}<br />
     43   <a href="https://icq.com/people/{$curPost.userICQ}" target="_blank"><img src="http://status.icq.com/online.gif?icq={$curPost.userICQ}&amp;img=5" alt="" style="vertical-align:middle;" /> {$curPost.userICQ|wordwrap:3:"-":true}</a>{/if}{if !empty($curPost.userSteamGames[0])}<br />
    4444   <a href="{$smarty.const.INDEXFILE}?faction=profile&amp;profile_id={$curPost.userID}{$smarty.const.SID_AMPER}#achievements"><img src="{$modules.Template->getTplDir()}images/steam.png" alt="" style="vertical-align:middle;" /> {$modules.Language->getString('achievements')}</a>{/if}</span>
    4545  </td>
  • branches/1.6/templates/tbb2/config/config.conf

    r672 r674  
    99
    1010# Any descriptive comment you like
    11 authorComment = "Basierend auf dem Template der Tritanium Bulletin Board 2.0 Beta 2 &copy; 2010&ndash;2016 Tritanium Scripts,<br /><a href='http://www.famfamfam.com/lab/icons/silk/' target='_blank'>Silk Icons</a> &copy; 2006 Mark James,<br /><a href='http://sublink.ca/icons/sweetie-legacy/' target='_blank'>Sweetie Legacy Icons</a> &copy; 2010 Joseph North"
     11authorComment = "Basierend auf dem Template der Tritanium Bulletin Board 2.0 Beta 2 &copy; 2010&ndash;2017 Tritanium Scripts,<br /><a href='http://www.famfamfam.com/lab/icons/silk/' target='_blank'>Silk Icons</a> &copy; 2006 Mark James,<br /><a href='http://sublink.ca/icons/sweetie-legacy/' target='_blank'>Sweetie Legacy Icons</a> &copy; 2010 Joseph North"
    1212
    1313# The default CSS file to display first in style selection of template administration
  • branches/1.6/templates/tbb2/templates/ForumIndex.tpl

    r568 r674  
    5050{if $modules.Config->getCfgVal('wio') == 1}
    5151{$wioUser=$modules.WhoIsOnline->getUserWIO()}
    52 {* 0:guests - 1:ghosts - 2:memberProfiles *}
     52{* 0:guests - 1:ghosts - 2:memberProfiles - 3:bots *}
    5353<br />
    5454<!-- WIO -->
     
    5858  {if empty($wioUser[2])}{$modules.Language->getString('no_members')}{else}{$modules.Language->getString('members_colon')} {', '|implode:$wioUser[2]}{/if}<br />
    5959  {if $wioUser[1] == 0}{$modules.Language->getString('no_ghosts')}{elseif $wioUser[1] == 1}{$modules.Language->getString('one_ghost')}{else}{$wioUser[1]|string_format:$modules.Language->getString('x_ghosts')}{/if}<br />
    60   {if $wioUser[0] == 0}{$modules.Language->getString('no_guests')}{elseif $wioUser[0] == 1}{$modules.Language->getString('one_guest')}{else}{$wioUser[0]|string_format:$modules.Language->getString('x_guests')}{/if}<br /><br />
     60  {if $wioUser[0] == 0}{$modules.Language->getString('no_guests')}{elseif $wioUser[0] == 1}{$modules.Language->getString('one_guest')}{else}{$wioUser[0]|string_format:$modules.Language->getString('x_guests')}{/if}<br />
     61  {if $wioUser[3] == 0}{$modules.Language->getString('no_bots')}{elseif $wioUser[3] == 1}{$modules.Language->getString('one_bot')}{else}{$wioUser[3]|string_format:$modules.Language->getString('x_bots')}{/if}<br /><br />
    6162  <span style="font-weight:bold;">{$modules.Language->getString('legend_colon')}</span> <span{if $modules.Config->getCfgVal('wio_color_admin') != ''} style="color:{$modules.Config->getCfgVal('wio_color_admin')};"{/if}>{$modules.Language->getString('administrator')}</span> &ndash; <span{if $modules.Config->getCfgVal('wio_color_smod') != ''} style="color:{$modules.Config->getCfgVal('wio_color_smod')};"{/if}>{$modules.Language->getString('super_moderator')}</span> &ndash; <span{if $modules.Config->getCfgVal('wio_color_mod') != ''} style="color:{$modules.Config->getCfgVal('wio_color_mod')};"{/if}>{$modules.Language->getString('moderator')}</span> &ndash; <span{if $modules.Config->getCfgVal('wio_color_user') != ''} style="color:{$modules.Config->getCfgVal('wio_color_user')};"{/if}>{$modules.Language->getString('member')}</span> &ndash; <span{if $modules.Config->getCfgVal('wio_color_banned') != ''} style="color:{$modules.Config->getCfgVal('wio_color_banned')};"{/if}>{$modules.Language->getString('banned')}</span></span></td></tr>
    6263</table>
     
    6465<!-- WWO -->
    6566{$wwoUser=$modules.WhoIsOnline->getUserWWO()}
    66 {* 0:guests - 1:ghosts - 2:members - 3:0:memberProfiles - 3:1:isGhost *}
     67{* 0:guests - 1:ghosts - 2:members - 3:0:memberProfiles - 3:1:isGhost - 4:bots *}
    6768{$record=$modules.WhoIsOnline->getRecord()}
    6869<table class="tableStd" cellpadding="{$modules.Config->getCfgVal('tpadding')}" cellspacing="{$modules.Config->getCfgVal('tspacing')}" style="width:100%;">
     
    7071 <tr><td class="cellStd"><span class="fontSmall">{$modules.Language->getString('today_were_here_colon')}<br />
    7172  {foreach $wwoUser[3] as $curWWOUser}{if $curWWOUser[1]}<img src="{$modules.Template->getTplDir()}images/ghost.png" alt="{$modules.Language->getString('browses_as_ghost')}" title="{$modules.Language->getString('browses_as_ghost')}" style="vertical-align:middle;" /> {/if}{$curWWOUser[0]}{if !$curWWOUser@last}, {/if}{foreachelse}{$modules.Language->getString('no_members')}{/foreach}<br />
    72   {if $wwoUser[2] == 1 && $wwoUser[1] != 1 && $wwoUser[0] != 1}{sprintf($modules.Language->getString('total_one_member_x_ghosts_and_x_guests'), $wwoUser[1], $wwoUser[0])}
    73   {elseif $wwoUser[2] != 1 && $wwoUser[1] == 1 && $wwoUser[0] != 1}{sprintf($modules.Language->getString('total_x_member_one_ghost_and_x_guests'), $wwoUser[2], $wwoUser[0])}
    74   {elseif $wwoUser[2] != 1 && $wwoUser[1] != 1 && $wwoUser[0] == 1}{sprintf($modules.Language->getString('total_x_member_x_ghosts_and_one_guest'), $wwoUser[2], $wwoUser[1])}
    75   {elseif $wwoUser[2] == 1 && $wwoUser[1] == 1 && $wwoUser[0] != 1}{$wwoUser[0]|string_format:$modules.Language->getString('total_one_member_one_ghost_and_x_guests')}
    76   {elseif $wwoUser[2] == 1 && $wwoUser[1] != 1 && $wwoUser[0] == 1}{$wwoUser[1]|string_format:$modules.Language->getString('total_one_member_x_ghosts_and_one_guest')}
    77   {elseif $wwoUser[2] != 1 && $wwoUser[1] == 1 && $wwoUser[0] == 1}{$wwoUser[2]|string_format:$modules.Language->getString('total_x_member_one_ghost_and_one_guest')}
    78   {else}{sprintf($modules.Language->getString('total_x_members_x_ghosts_and_x_guests'), $wwoUser[2], $wwoUser[1], $wwoUser[0])}{/if}<br /><br />
     73  {sprintf($modules.Language->getString('total_x_member_s_x_ghost_s_x_guest_s_and_x_bot_s'), $wwoUser[2], $wwoUser[1], $wwoUser[0], $wwoUser[4])}<br /><br />
    7974  <b>{$modules.Language->getString('record_colon')}</b> {sprintf($modules.Language->getString('x_members_on_x'), $record[0], $record[1])}</span></td></tr>
    8075</table>{/if}
  • branches/1.6/templates/tbb2/templates/ViewProfile.tpl

    r666 r674  
    6262 <tr>
    6363  <td class="cellStd" style="width:30%;"><span class="fontNorm">{$modules.Language->getString('icq_number_colon')}</span></td>
    64   <td class="cellAlt" style="width:70%;"><span class="fontNorm">{if empty($userData[13])}<span style="font-style:italic;">{$modules.Language->getString('not_given')}</span>{else}<a href="http://people.icq.com/people/{$userData[13]}" target="_blank"><img src="http://status.icq.com/online.gif?icq={$userData[13]}&amp;img=5" alt="" style="vertical-align:top;" /> {$userData[13]|wordwrap:3:"-":true}</a>{/if}</span></td>
     64  <td class="cellAlt" style="width:70%;"><span class="fontNorm">{if empty($userData[13])}<span style="font-style:italic;">{$modules.Language->getString('not_given')}</span>{else}<a href="https://icq.com/people/{$userData[13]}" target="_blank"><img src="http://status.icq.com/online.gif?icq={$userData[13]}&amp;img=5" alt="" style="vertical-align:top;" /> {$userData[13]|wordwrap:3:"-":true}</a>{/if}</span></td>
    6565 </tr>
    6666</table>{if $modules.Config->getCfgVal('achievements') == 1 && !empty($userData[19])}
  • branches/1.6/templates/tbb2/templates/ViewTopic.tpl

    r666 r674  
    3838   {if $curPost.userID != 0}{$curPost.userID|string_format:$modules.Language->getString('id_x')}{/if}<br /><br />
    3939   {$curPost.userAvatar}<br />{if !empty($curPost.userICQ)}<br />
    40    <a href="http://people.icq.com/people/{$curPost.userICQ}" target="_blank"><img src="http://status.icq.com/online.gif?icq={$curPost.userICQ}&amp;img=5" alt="" style="vertical-align:middle;" /> {$curPost.userICQ|wordwrap:3:"-":true}</a>{/if}{if !empty($curPost.userSteamGames[0])}<br />
     40   <a href="https://icq.com/people/{$curPost.userICQ}" target="_blank"><img src="http://status.icq.com/online.gif?icq={$curPost.userICQ}&amp;img=5" alt="" style="vertical-align:middle;" /> {$curPost.userICQ|wordwrap:3:"-":true}</a>{/if}{if !empty($curPost.userSteamGames[0])}<br />
    4141   <a href="{$smarty.const.INDEXFILE}?faction=profile&amp;profile_id={$curPost.userID}{$smarty.const.SID_AMPER}#achievements"><img src="{$modules.Template->getTplDir()}images/steam.png" alt="" style="vertical-align:middle;" /> {$modules.Language->getString('achievements')}</a>{/if}</span>
    4242  </td>
Note: See TracChangeset for help on using the changeset viewer.