Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 01-15-2001
Last Update: Never
Installs: 0
No support by the author.
This is a small (very small) Hack i made today. Its like ubb's UBonline.cgi hack. so small anyone could install it
Step 1
Open showthread.php/php3 and find
Code:
$userid=$post[userid];
if ($userid!=0) {
$userinfo=$post;
and UNDER it add
Code:
// User Online Icon Hack by Chris Boulton
$status = $DB_site->query_first("SELECT session.userid,user.username,user.receivepm FROM session, user WHERE session.userid=user.userid AND session.userid='".intval($userinfo[userid])."'");
if ($status) {
$usersstatus = "<img src=\"images/online.gif\" border=0 alt=\"$userinfo[username] is Online\">";
} else {
$usersstatus = "<img src=\"images/offline.gif\" border=0 alt=\"$userinfo[username] is Offline\">";
}
// User Online Icon Hack by Chris Boulton
Step 2
save and upload
Step 3
open your postbit template
and instert $usersstatus where you want to display if the threads poster is online or offline
Step 4
download or make 2 images (offline.gif and online.gif)
I use the ones that ubbdev.com use
Please be nice on me, this is the first hack i have made for vBulletin. If someone has already done it sorry.
BTW - does anyone want to help me with a Instant Message Hack, i am crap at php but i have done the templates etc etc.
If you have trouble with this hack reply or contact me
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
i don't know if it's just me.......but this hack doesn't seem to to work in vbb1.15......whenever i add it it shows a database error.....has anyone using vbb1.15 get this hack to work??
if ($userid!=0) {
$userinfo=$post;
// User Online Icon Hack by Chris Boulton
$status = $DB_site->query_first("SELECT session.userid,user.username,user.receivepm FROM session, user WHERE session.userid=user.userid AND session.userid='".intval($userinfo[userid])."'");
if ($status) {
$usersstatus = "<img src=\"images/online.gif\" border=0 alt=\"$userinfo[username] is Online\">";
} else {
$usersstatus = "<img src=\"images/offline.gif\" border=0 alt=\"$userinfo[username] is Offline\">";
}
// User Online Icon Hack by Chris Boulton
$username=htmlspecialchars($userinfo[username]);
$searchuser=urlencode($userinfo[username]);
//star hack
if ($userinfo[usertitle]=="Administrator") {
I like the addition but here is your problem for the all offline problem
PS
This work for 1.1.5
just make sure you have the whos online hack.
Code:
// User Online Icon Hack by Chris Boulton
$status = $DB_site->query_first("SELECT session.userid,user.username,user.receivepm FROM session, user WHERE session.userid=user.userid AND session.userid='".intval($user[userid])."'");
if ($status) {
$usersstatus = "<a href=\"whoisonline.php3?action=onlineusers\"><img src=\"images/online.gif\" border=0 alt=\"$user[username] is Online\"></a>";
} else {
$usersstatus = "<img src=\"images/offline.gif\" border=0 alt=\"$user[username] is Offline\">";
}
// User Online Icon Hack by Chris Boulton