Zarkov
Sun 20th May '01, 2:10am
This is a hack i created after installing the "User has started X threads" hack by tube dog.
This is my first hack and im so proud i just had to share it with you all.
I will say that im new to vbb and PHP & MySQL so the code may not be the best.
Version of vbb: RC2
Files needed: getinfo.txt & lastonline.txt See zip file below
Files to modify: member.php
Template to modify: getinfo
Please reply with likes/dislikes/modifications.
The way to install it as as in tubedogs hack
1) Open lastonline.txt
2) Find this code in members.php
// get last post
$totalposts=$userinfo[posts];
if ($userinfo[posts]!=0 and $userinfo[lastpost]!=0) {
$lastpostdate=vbdate($dateformat,$userinfo[lastpost]);
$lastposttime=vbdate($timeformat,$userinfo[lastpost]);
$getlastposts=$DB_site->query("SELECT thread.title,thread.threadid,thread.forumid,postid ,post.dateline FROM post,thread WHERE thread.threadid=post.threadid AND thread.visible = 1 AND post.userid='$userid' ORDER BY post.dateline DESC LIMIT 20");
while ($getlastpost=$DB_site->fetch_array($getlastposts)) {
$getperms=getpermissions($getlastpost[forumid]);
if ($getperms[canview]) {
$lastposttitle=$getlastpost[title];
$lastposturl="showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]#post$getlastpost[postid]";
break;
}
}
} else {
$lastpostdate="Never";
}
and copy the contents of lastonline in immediatly after it.
3) Upload member.php to your server
4) Then open getinfo.txt
5) Find this code in the getinfo template
<tr>
<td bgcolor="#DEDEDE"><normalfont><b>Last Post:</b></normalfont></td>
<td bgcolor="#DEDEDE"><normalfont>$lastpostdate $lastposttime<br><a href="$lastposturl">$lastposttitle</a>$nolastpost</normalfont></td>
</tr>
and copy the contents of getinfo.txt immedietly after it.
This is my first hack and im so proud i just had to share it with you all.
I will say that im new to vbb and PHP & MySQL so the code may not be the best.
Version of vbb: RC2
Files needed: getinfo.txt & lastonline.txt See zip file below
Files to modify: member.php
Template to modify: getinfo
Please reply with likes/dislikes/modifications.
The way to install it as as in tubedogs hack
1) Open lastonline.txt
2) Find this code in members.php
// get last post
$totalposts=$userinfo[posts];
if ($userinfo[posts]!=0 and $userinfo[lastpost]!=0) {
$lastpostdate=vbdate($dateformat,$userinfo[lastpost]);
$lastposttime=vbdate($timeformat,$userinfo[lastpost]);
$getlastposts=$DB_site->query("SELECT thread.title,thread.threadid,thread.forumid,postid ,post.dateline FROM post,thread WHERE thread.threadid=post.threadid AND thread.visible = 1 AND post.userid='$userid' ORDER BY post.dateline DESC LIMIT 20");
while ($getlastpost=$DB_site->fetch_array($getlastposts)) {
$getperms=getpermissions($getlastpost[forumid]);
if ($getperms[canview]) {
$lastposttitle=$getlastpost[title];
$lastposturl="showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]#post$getlastpost[postid]";
break;
}
}
} else {
$lastpostdate="Never";
}
and copy the contents of lastonline in immediatly after it.
3) Upload member.php to your server
4) Then open getinfo.txt
5) Find this code in the getinfo template
<tr>
<td bgcolor="#DEDEDE"><normalfont><b>Last Post:</b></normalfont></td>
<td bgcolor="#DEDEDE"><normalfont>$lastpostdate $lastposttime<br><a href="$lastposturl">$lastposttitle</a>$nolastpost</normalfont></td>
</tr>
and copy the contents of getinfo.txt immedietly after it.