Example #1
0
 function displayDefault($tpl = null)
 {
     require_once KPATH_SITE . '/lib/kunena.link.class.php';
     $kunena_stats = KunenaForumStatistics::getInstance();
     $kunena_stats->loadAll();
     $this->assign($kunena_stats);
     $this->latestMemberLink = KunenaFactory::getUser(intval($this->lastUserId))->getLink();
     $this->userlist = CKunenaLink::GetUserlistLink('', intval($this->get('memberCount')));
     $this->_prepareDocument();
     parent::display();
 }
Example #2
0
	function displayDefault($tpl = null) {
		$this->config = KunenaFactory::getConfig ();
		$document = JFactory::getDocument();
		$document->setTitle(JText::_('COM_KUNENA_STAT_FORUMSTATS') . ' - ' .      $this->config->board_title);

		require_once(KPATH_SITE.'/lib/kunena.link.class.php');
		$kunena_stats = KunenaForumStatistics::getInstance ( );
		$kunena_stats->loadAll();

		$this->assign($kunena_stats);
		$this->latestMemberLink = CKunenaLink::GetProfileLink($this->lastUserId);
		$this->userlist = CKunenaLink::GetUserlistLink('', intval($this->get('memberCount')));
		$this->statisticsURL = KunenaRoute::_('index.php?option=com_kunena&view=statistics');

		parent::display ();
	}
Example #3
0
    function showlist($ulrows, $total_results, $pageNav, $limitstart, $query_ext, $search = "")
    {
        $app =& JFactory::getApplication();
        $fbConfig =& CKunenaConfig::getInstance();
        $kunena_db =& JFactory::getDBO();
        if ($search == "") {
            $search = _KUNENA_USRL_SEARCH;
        }
        ?>

        <script type = "text/javascript">
            <!--
            function validate()
            {
                if ((document.usrlform.search == "") || (document.usrlform.search.value == ""))
                {
                    alert('<?php 
        echo _KUNENA_USRL_SEARCH_ALERT;
        ?>
');
                    return false;
                }
                else
                {
                    return true;
                }
            }
                    //-->
        </script>

        <?php 
        if ($fbConfig->joomlastyle < 1) {
            $boardclass = "fb_";
        }
        ?>
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr1">
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr2">
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr3">
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr4">
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr5">
        <table class = "fb_blocktable" id ="fb_userlist" border = "0" cellspacing = "0" cellpadding = "0" width="100%">
            <thead>
                <tr>
                    <th>
                        <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                            <tr>
                                <td align = "left">
                                    <div class = "fb_title_cover  fbm">
                                        <span class="fb_title fbl"> <?php 
        echo _KUNENA_USRL_USERLIST;
        ?>
</span>

                                        <?php 
        printf(_KUNENA_USRL_REGISTERED_USERS, $app->getCfg('sitename'), $total_results);
        ?>
                                    </div>
                                </td>

                                <td align = "right">
                                    <form name = "usrlform" method = "post" action = "<?php 
        echo CKunenaLink::GetUserlistURL();
        ?>
" onsubmit = "return validate()">
                                        <input type = "text"
                                            name = "search"
                                            class = "inputbox"
                                            style = "width:150px"
                                            maxlength = "100" value = "<?php 
        echo $search;
        ?>
" onblur = "if(this.value=='') this.value='<?php 
        echo $search;
        ?>
';" onfocus = "if(this.value=='<?php 
        echo $search;
        ?>
') this.value='';" />

                                        <input type = "image" src = "<?php 
        echo KUNENA_TMPLTMAINIMGURL . '/images/usl_search_icon.gif';
        ?>
" alt = "<?php 
        echo _KUNENA_USRL_SEARCH;
        ?>
" align = "top" style = "border: 0px;"/>
                                    </form>
                                </td>
                            </tr>
                        </table>
                    </th>
                </tr>
            </thead>

            <tbody>
                <tr>
                    <td class = "<?php 
        echo $boardclass;
        ?>
fb-userlistinfo">
                        <!-- Begin: Listing -->
                        <table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
                            <tr class = "fb_sth  fbs">
                                <th class = "th-1 frst <?php 
        echo $boardclass;
        ?>
sectiontableheader" align="center">
                                </th>

                                <?php 
        if ($fbConfig->userlist_online) {
            ?>

                                    <th class = "th-2 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_ONLINE;
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_avatar) {
            ?>

                                    <th class = "th-3 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_AVATAR;
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_name) {
            ?>

                                    <th class = "th-4 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_NAME;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=name&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=name&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_username) {
            ?>

                                    <th class = "th-5 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_USERNAME;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=username&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=username&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_group) {
            ?>

                                    <th class = "th-6 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_GROUP;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=group_id&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=group_id&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_posts) {
            ?>

                                    <th class = "th-7 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_POSTS;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=posts&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=posts&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_karma) {
            ?>

                                    <th class = "th-7 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_KARMA;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=karma&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=karma&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_email) {
            ?>

                                    <th class = "th-8 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_EMAIL;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=email&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=email&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_usertype) {
            ?>

                                    <th class = "th-9 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_USERTYPE;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=usertype&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=usertype&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                    </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_joindate) {
            ?>

                                    <th class = "th-10 <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_JOIN_DATE;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=registerDate&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=registerDate&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                     </th>

                                <?php 
        }
        ?>

                                <?php 
        if ($fbConfig->userlist_lastvisitdate) {
            ?>

                                    <th class = "th-11  <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_LAST_LOGIN;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=lastvisitDate&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=lastvisitDate&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
                                    </th>

                                <?php 
        }
        ?>

								  <?php 
        if ($fbConfig->userlist_userhits) {
            ?>
								<th class = "th-12 lst <?php 
            echo $boardclass;
            ?>
sectiontableheader" align="center">
<?php 
            echo _KUNENA_USRL_HITS;
            echo CKunenaLink::GetUserlistLink('&amp;orderby=uhits&amp;direction=ASC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/down.gif" border="0" alt="' . _KUNENA_USRL_ASC . '" />');
            echo CKunenaLink::GetUserlistLink('&amp;orderby=uhits&amp;direction=DESC', '<img src="' . KUNENA_TMPLTMAINIMGURL . '/images/up.gif" border="0" alt="' . _KUNENA_USRL_DESC . '" />');
            ?>
								</th>
                                <?php 
        }
        ?>

                            </tr>

                            <?php 
        $i = 1;
        foreach ($ulrows as $ulrow) {
            $evenodd = $i % 2;
            if ($evenodd == 0) {
                $usrl_class = "sectiontableentry1";
            } else {
                $usrl_class = "sectiontableentry2";
            }
            $nr = $i + $limitstart;
            // Avatar
            $uslavatar = '';
            if ($fbConfig->avatar_src == "clexuspm") {
                $uslavatar = '<img  border="0" class="usl_avatar" src="' . MyPMSTools::getAvatarLinkWithID($ulrow->id, "s") . '" alt="" />';
            } else {
                if ($fbConfig->avatar_src == "cb") {
                    $kunenaProfile =& CKunenaCBProfile::getInstance();
                    $uslavatar = $kunenaProfile->showAvatar($ulrow->id);
                } else {
                    $kunena_db->setQuery("SELECT avatar FROM #__fb_users WHERE userid='{$ulrow->id}'");
                    $avatar = $kunena_db->loadResult();
                    if ($avatar != '') {
                        if (!file_exists(KUNENA_PATH_UPLOADED . DS . 'avatars/s_' . $avatar)) {
                            $uslavatar = '<img  border="0" class="usl_avatar" src="' . KUNENA_LIVEUPLOADEDPATH . '/avatars/' . $avatar . '" alt="" />';
                        } else {
                            $uslavatar = '<img  border="0" class="usl_avatar" src="' . KUNENA_LIVEUPLOADEDPATH . '/avatars/s_' . $avatar . '" alt="" />';
                        }
                    } else {
                        $uslavatar = '<img  border="0" class="usl_avatar" src="' . KUNENA_LIVEUPLOADEDPATH . '/avatars/s_nophoto.jpg" alt="" />';
                    }
                }
            }
            //
            ?>

                                <tr class = "<?php 
            echo $boardclass;
            echo $usrl_class;
            ?>
  fbm">
                                    <td class = "td-1 frst fbs" align="center">
<?php 
            echo $nr;
            ?>
                                    </td>

                                    <?php 
            if ($fbConfig->userlist_online) {
                ?>

                                        <td class = "td-2">
                                            <?php 
                // online - ofline status
                $sql = "SELECT COUNT(userid) FROM #__session WHERE userid='{$ulrow->id}'";
                $kunena_db->setQuery($sql);
                $isonline = $kunena_db->loadResult();
                if ($isonline && $ulrow->showOnline == 1) {
                    echo isset($fbIcons['onlineicon']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['onlineicon'] . '" border="0" alt="' . _MODLIST_ONLINE . '" />' : '  <img src="' . KUNENA_URLEMOTIONSPATH . 'onlineicon.gif" border="0"  alt="' . _MODLIST_ONLINE . '" />';
                } else {
                    echo isset($fbIcons['offlineicon']) ? '<img src="' . KUNENA_URLICONSPATH . $fbIcons['offlineicon'] . '" border="0" alt="' . _MODLIST_OFFLINE . '" />' : '  <img src="' . KUNENA_URLEMOTIONSPATH . 'offlineicon.gif" border="0"  alt="' . _MODLIST_OFFLINE . '" />';
                }
                ?>
                                        </td>

                                    <?php 
            }
            ?>

                                    <?php 
            if ($fbConfig->userlist_avatar) {
                ?>

                                        <td class = "td-3" align="center">
                                      <?php 
                if (strlen($uslavatar)) {
                    echo CKunenaLink::GetProfileLink($fbConfig, $ulrow->id, $uslavatar);
                } else {
                    echo '&nbsp;';
                }
                ?>
                                        </td>

                                    <?php 
            }
            ?>

                                    <?php 
            if ($fbConfig->userlist_name) {
                ?>

                                        <td class = "td-4  fbm" align="center">
						<?php 
                echo CKunenaLink::GetProfileLink($fbConfig, $ulrow->id, $ulrow->name);
                ?>
                                        </td>

                                    <?php 
            }
            ?>

                                    <?php 
            if ($fbConfig->userlist_username) {
                ?>

                                        <td class = "td-5  fbm" align="center">
						<?php 
                echo CKunenaLink::GetProfileLink($fbConfig, $ulrow->id, $ulrow->username);
                ?>
                                        </td>

                                    <?php 
            }
            ?>

                                    <?php 
            if ($fbConfig->userlist_group) {
                ?>

                                        <td class = "td-6  fbs" align="center">
                                            <span class = "view-group_<?php 
                echo $ulrow->group_id;
                ?>
"> <?php 
                echo $ulrow->title;
                ?>
 </span>
                                        </td>

                                    <?php 
            }
            ?>

                                    <?php 
            if ($fbConfig->userlist_posts) {
                ?>

                                        <td class = "td-7  fbs" align="center">
<?php 
                echo $ulrow->posts;
                ?>
                                        </td>

                                    <?php 
            }
            ?>

                                    <?php 
            if ($fbConfig->userlist_karma) {
                ?>

                                        <td class = "td-7 fbs" align="center">
<?php 
                echo $ulrow->karma;
                ?>
                                        </td>

                                    <?php 
            }
            ?>

                                    <?php 
            if ($fbConfig->userlist_email) {
                echo "\t\t<td class=\"td-8 fbs\"  align=\"center\"><a href=\"mailto:{$ulrow->email}\">{$ulrow->email}</a></td>\n";
            }
            if ($fbConfig->userlist_usertype) {
                echo "\t\t<td  class=\"td-9 fbs\"  align=\"center\">{$ulrow->usertype}</td>\n";
            }
            if ($fbConfig->userlist_joindate) {
                echo "\t\t<td  class=\"td-10 fbs\"  align=\"center\">" . convertDate($ulrow->registerDate) . "</td>\n";
            }
            if ($fbConfig->userlist_lastvisitdate) {
                echo "\t\t<td  class=\"td-11 fbs\"  align=\"center\">" . convertDate($ulrow->lastvisitDate) . "</td>\n";
            }
            ?>

                                    <td class = "td-12 lst fbs" align="center">
									 <?php 
            if ($fbConfig->userlist_userhits) {
                ?>
									<?php 
                echo $ulrow->uhits;
                ?>

                                    <?php 
            }
            ?>
									 </td>

                            <?php 
            echo "\t</tr>\n";
            $i++;
        }
        ?>

        </table>

		<form name = "usrlform" method = "post" action = "<?php 
        echo CKunenaLink::GetUserlistURL();
        ?>
" onsubmit = "return false;">
        <table width = "100%"  class="fb_userlist_pagenav" border = "0" cellspacing = "0" cellpadding = "0">
            <tr class = "fb_sth  fbs">
                <th class = "th-1  fbm" align = "center" style = "text-align:center;">

                            <?php 
        // TODO: fxstein - Need to perform SEO cleanup
        echo $pageNav->getPagesLinks(CKunenaLink::GetUserlistURL($query_ext));
        ?>
                </th>
            </tr>
        </table>



        <table class = "fb_blocktable" id="fb_userlist_bottom" style="border-bottom:0px;margin:0;" border = "0" cellspacing = "0" cellpadding = "0" width="100%">
                <tr>
                    <th  class = "th-right  fbs" align="right" style="text-align:right">
                     <?php 
        echo $pageNav->getPagesCounter();
        ?>
 | <?php 
        echo _KUNENA_USRL_DISPLAY_NR;
        ?>
 <?php 
        echo $pageNav->getLimitBox(CKunenaLink::GetUserlistURL($query_ext));
        ?>
                </th>
            </tr>
        </table>
		</form>

        </td>
	</tr>
  </tbody>
</table>
        <!-- Finish: Listing -->

</div>
</div>
</div>
</div>
</div>
        <?php 
        //(JJ) BEGIN: WHOISONLINE
        if (file_exists(KUNENA_ABSTMPLTPATH . '/plugin/who/whoisonline.php')) {
            include KUNENA_ABSTMPLTPATH . '/plugin/who/whoisonline.php';
        } else {
            include KUNENA_PATH_TEMPLATE_DEFAULT . DS . 'plugin/who/whoisonline.php';
        }
        //(JJ) FINISH: WHOISONLINE
        ?>
        <!-- Begin: Forum Jump -->
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr1">
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr2">
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr3">
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr4">
<div class="<?php 
        echo $boardclass;
        ?>
_bt_cvr5">
        <table class = "fb_blocktable" id="fb_bottomarea"   border = "0" cellspacing = "0" cellpadding = "0">
            <thead>
                <tr>
                    <th  class = "th-right">
                        <?php 
        //(JJ) FINISH: CAT LIST BOTTOM
        if ($fbConfig->enableforumjump) {
            require_once KUNENA_PATH_LIB . DS . 'kunena.forumjump.php';
        }
        ?>
                    </th>
                </tr>
            </thead>
			<tbody><tr><td></td></tr></tbody>
		</table>
        </div>
</div>
</div>
</div>
</div>
        <!-- Finish: Forum Jump -->

<?php 
    }
Example #4
0
<div class="kblock kfrontstats">
	<div class="kheader">
		<span class="ktoggler"><a class="ktoggler close" title="<?php echo JText::_('COM_KUNENA_TOGGLER_COLLAPSE') ?>" rel="kfrontstats-tbody"></a></span>
		<h2><span><?php echo CKunenaLink::GetStatsLink($this->config->board_title.' '.JText::_('COM_KUNENA_STAT_FORUMSTATS'), ''); ?></span></h2>
	</div>
	<div class="kcontainer" id="kfrontstats-tbody">
		<div class="kbody">
			<table class = "kblocktable" id ="kfrontstats">
				<tr class="krow1">
					<td class = "kcol-first">
						<div class="kstatsicon"></div>
					</td>
					<td class="kcol-mid km">
						<ul id="kstatslistright" class="fltrt kright">
							<li><?php echo JText::_('COM_KUNENA_STAT_TOTAL_USERS'); ?>: <strong><?php echo CKunenaLink::GetUserlistLink('', $this->memberCount) ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_LATEST_MEMBERS'); ?>: <strong><?php echo $this->latestMemberLink ?></strong></li>
							<li>&nbsp;</li>
							<li><?php echo CKunenaLink::GetUserlistLink('', JText::_('COM_KUNENA_STAT_USERLIST').' &raquo;') ?></li>
							<li><?php if ($this->config->showpopuserstats || $this->config->showpopsubjectstats) echo CKunenaLink::GetStatsLink(JText::_('COM_KUNENA_STAT_MORE_ABOUT_STATS').' &raquo;');?></li>
						</ul>
						<ul id="kstatslistleft" class="fltlft">
							<li><?php echo JText::_('COM_KUNENA_STAT_TOTAL_MESSAGES'); ?>: <strong> <?php echo intval($this->messageCount); ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_TOTAL_SUBJECTS'); ?>: <strong><?php echo intval($this->topicCount); ?></strong></li>
							<li><?php echo JText::_('COM_KUNENA_STAT_TOTAL_SECTIONS'); ?>: <strong><?php echo intval($this->sectionCount); ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_TOTAL_CATEGORIES'); ?>: <strong><?php echo intval($this->categoryCount); ?></strong></li>
							<li><?php echo JText::_('COM_KUNENA_STAT_TODAY_OPEN_THREAD'); ?>: <strong><?php echo $this->todayTopicCount; ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_YESTERDAY_OPEN_THREAD'); ?>: <strong><?php echo intval($this->yesterdayTopicCount); ?></strong></li>
							<li><?php echo JText::_('COM_KUNENA_STAT_TODAY_TOTAL_ANSWER'); ?>: <strong><?php echo intval($this->todayReplyCount); ?></strong> <span class="divider">|</span> <?php echo JText::_('COM_KUNENA_STAT_YESTERDAY_TOTAL_ANSWER'); ?>: <strong><?php echo intval($this->yesterdayReplyCount); ?></strong></li>
						</ul>
					</td>
				</tr>
			</table>
		</div>
	</div>
</div>
Example #5
0
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @author TSMF & Jan de Graaff
**/
// Dont allow direct linking
defined('_JEXEC') or die;
$kunena_config = KunenaFactory::getConfig();
$document = JFactory::getDocument();
$document->setTitle(JText::_('COM_KUNENA_STAT_FORUMSTATS') . ' - ' . $kunena_config->board_title);
if ($kunena_config->showstats) {
    $this->loadGenStats();
    $this->loadUserStats();
    $this->loadTopicStats();
    $this->loadPollStats();
    $this->loadThanksStats();
    $forumurl = 'index.php?option=com_kunena';
    $userlist1 = CKunenaLink::GetUserlistLink('', intval($this->totalmembers));
    ?>
<!-- BEGIN: GENERAL STATS -->
<?php 
    if ($kunena_config->showgenstats) {
        ?>
<div class="kblock kgenstats">
	<div class="kheader">
		<span class="ktoggler"><a class="ktoggler close" title="<?php 
        echo JText::_('COM_KUNENA_TOGGLER_COLLAPSE');
        ?>
" rel="kgenstats_tbody"></a></span>
		<h2><span><?php 
        echo $this->escape($kunena_config->board_title);
        ?>
 <?php