bugun siteyi ziyaret edenler

Slaughter

New member
Onemli: Eklentiyi kurmadan once FORUMHOME un Ve index.php nin kopyalarini KESIN alin + Her Gece Forumun Yedegini Alin...

Ftp de forum/index.php ye gecin

Code:
// ### LOGGED IN USERS #################################################
Ustune sunlari ekliyin

PHP:
// ############### Paul M - Who has visited today v1.40 #################

require_once('./includes/functions_misc.php');
$now = TIMENOW - intval($vboptions['hourdif']);
$cutoff = vbmktime(0, 0, 0, date('m', $now), date('d', $now), date('Y', $now));
//$cutoff = $now - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## //
$todaysusers = $DB_site->query("SELECT userid, lastactivity, options, username, opentag, closetag
FROM " . TABLE_PREFIX . "user as user
LEFT JOIN " . TABLE_PREFIX . "usergroup as usergroup ON(user.usergroupid = usergroup.usergroupid)
WHERE lastactivity > " .$cutoff. " ORDER BY username" );

$totaltoday = 0;
while ($today = $DB_site->fetch_array($todaysusers))
{
    $today[visible] = 1 ;
    $totaltoday += 1;
    if ($today[options] & $_USEROPTIONS[invisible])
    {
        $today[visible] = 0 ;
        if (($permissions['genericpermissions'] & CANSEEHIDDEN) OR $today['userid'] == $bbuserinfo['userid'])
        {
            $today[visible] = 2 ;
        }
    }
    if ($today[visible])
    {
           $wrdate = vbdate($vboptions['timeformat'], $today['lastactivity']);
        $whotoday .= "<a href='member.php?u=$today[userid]' title='$wrdate' >";
        if ($today[visible] == 2)
        {
            $whotoday .= $today['opentag'].$today[username].$today['closetag']."</a>*, ";
        }
        else
        {
            $whotoday .= $today['opentag'].$today[username].$today['closetag']."</a>, ";
        }
    }
}
if ($whotoday)
{
    $whotoday = substr($whotoday, 0, strlen($whotoday)-2);
}

// ############# End of Who has visited today ###############

Kaydedin

sora FORUMHOME templatesine gecin

Alttaki kodlari bulun

PHP:
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
Bunun Hepsiniii alttaki kodlarla deiştirin ;)
PHP:
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->

<!-- Todays active users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_todayusers')"><img id="collapseimg_forumhome_todayusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayusers].gif" alt="" border="0" /></a>
            Total users that have visited today: $totaltoday
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_todayusers" style="$vbcollapse[collapseobj_forumhome_todayusers]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Users online today" border="0" /></td>
        <td class="alt1" width="100%"><div class="smallfont">$whotoday</div></td>
    </tr>
</tbody>
<!-- Todays active users -->
</if>
 

Slaughter

New member
3.x icin 3.5.0 icin olucagini sanmiyorum ama sen bi tekrar gozden gecir eklentiyi yanli$ kurmus olablrsn :eek:
 

al_turk

Banned
Bu eklentiyi kurdum oldu ama total users tha have visited today die yazıo o yazıyı nasıl türkçeleştirebilirim_?
 

Seko1978

New member
Bu eklentiyi yaptım çok teşekkürler ancak bundan sorna mesaj düzenlemede hata vermeye başladı ilgisi olabilirmi ?
 
Top