2006-04-30, 06:51 AM
Pages: 1 2
2006-04-30, 07:07 AM
I would love to have them. That is awesome though.
2006-04-30, 09:50 AM
Hello there,
Open index.php
Find
Above it add
now in the forumbit_depth2_forum template
find
Replace with
beside the forum title.
regards
Open index.php
Find
PHP Code:
eval("\$forumlisting .= \"".$templates->get("forumbit_depth$depth$forumcat")."\";");
Above it add
PHP Code:
global $db;
$timecut = time() - $mybb->settings['wolcutoff'];
$guestcount = 0;
$membercount = 0;
$inviscount = 0;
$viewscount = 0;
$query = $db->query("SELECT uid FROM ".TABLE_PREFIX."sessions WHERE location1='$fid' AND time>'$timecut'");
while($user = $db->fetch_array($query))
{
if($user['uid'] == 0)
{
$guestcount++;
}
else
{
if($doneusers[$user['uid']] < $user['time'] || !$doneusers[$user['uid']])
{
$doneusers[$user['uid']] = $user['time'];
$membercount++;
if($user['invisible'] != "yes" || $mybb->usergroup['canviewwolinvis'] =="yes")
{
if($user['invisible'] == "yes")
{
$inviscount++;
}
}
}
}
}
$viewscount = $guestcount + $membercount + $inviscount;��
now in the forumbit_depth2_forum template
find
Code:
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name] </a></strong>
Code:
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name] </a></strong> ($viewscount viewing)
regards
2006-04-30, 12:55 PM
There's a mod for that purpose: http://mods.mybboard.com/view.php?did=153
2006-04-30, 06:39 PM
Thanks Michael83
2006-05-02, 11:07 AM
is it working on 1.1 coz i have made my ownlol while replying to this subject and it is packaged etc.. :/
however mine has some extra features for example you may customize the look of the message from the settings part whithout having to edit the code.
If i see some interested i will release it
however mine has some extra features for example you may customize the look of the message from the settings part whithout having to edit the code.
If i see some interested i will release it
2006-05-02, 12:04 PM
Yes it works on 1.1.1
2006-05-02, 12:08 PM
2006-05-02, 01:50 PM
Thank you Michael83.
very good.
very good.
2006-05-02, 02:40 PM
Well this is howmany people viewed the forum is there any possiblity to show realtime viewings
Pages: 1 2