09-25-2001, 10:00 PM
Elie]I hope no one have make the similary hack before ... If it done sorry :(
---------------
Description : |
---------------
This hack is an adaptation of an old hack of AfterBurner[Jens Gericke]. Thanks to him :)
This hack will permet you to add a image behind useronline.
The image will be different follow the status of the user
---------------
Screenshot : |
---------------
http://delirante.multimania.com/screenshot.gif
----------
Install : |
----------
Find Into index.php
---------------------------
<- Find
$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible']==1) { // Invisible User but show to Admin
$username=$loggedin['username'];
$invisibleuser = '*';
} else {
$username=$loggedin['username'];
$invisibleuser = '';
}
//$location=$loggedin['location'];
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible']==1) { // Invisible User but show to Admin
$username=$loggedin['username'];
$invisibleuser = '*';
} else {
$username=$loggedin['username'];
}
$location=$loggedin['location'];
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
}
-> Remplace By
// Afterburners ImageUserOnlineHack By Elie //
$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid=$loggedin['userid'];
$farbe=$loggedin['usergroupid']; // ID auslesen
if ($loggedin['invisible']==1) { // Invisible User but show to Admin
$username=$loggedin['username'];
$invisibleuser = '*';
} else {
$username=$loggedin['username'];
$invisibleuser = '';
}
//$location=$loggedin['location'];
if ($farbe == 2 ) {
$username = "<img src='images/starmember.gif' width='11' height='10' border='0'>".$username.""; // Color for Member
}
if ($farbe == 5 ) {
$username = "<img src='images/starsupermodo.gif' width='11' height='10' border='0'>".$username.""; // Color for Supermoderator
}
if ($farbe == 6 ) {
$username = "<img src='images/staradmin.gif' width='11' height='10' border='0'>".$username.""; // Color for Administrator
}
if ($farbe == 7 ) {
$username = "<img src='images/starmodo.gif' width='11' height='10' border='0'>".$username.""; // Color for Moderator
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
$farbe=$loggedin['usergroupid']; // ID auslesen
if ($loggedin['invisible']==1) { // Invisible User but show to Admin
$username=$loggedin['username'];
$invisibleuser = '*';
} else {
$username=$loggedin['username'];
}
$location=$loggedin['location'];
if ($farbe == 2 ) {
$username = "<img src='images/starmember.gif' width='11' height='10' border='0'>".$username.""; // Color for Member
}
if ($farbe == 5 ) {
$username = "<img src='images/starsupermodo.gif' width='11' height='10' border='0'>".$username.""; // Color for Supermoderator
}
if ($farbe == 6 ) {
$username = "<img src='images/staradmin.gif' width='11' height='10' border='0'>".$username.""; // Color for Administrator
}
if ($farbe == 7 ) {
$username = "<img src='images/starmodo.gif' width='11' height='10' border='0'>".$username.""; // Color for Moderator
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
}
// Afterburners ImageUserOnlineHack Par Elie //
Into the template forumhome_loggedinusers :
------------------------------------------
<- Find
$recorddate at $recordtime.</nobr><br>
-> Add just after
<img src='images/staradmin.gif' width='11' height='10' border='0'> Administrateur</font> *
<img src='images/starsupermodo.gif' width='11' height='10' border='0'> Supermoderateur</font> *
<img src='images/starmodo.gif' width='11' height='10' border='0'> Moderateur</font> *
<img src='images/starmember.gif' width='11' height='10' border='0'> Membre</font><br>
After put the images files into your images folder
-------------------
My Opinion : |
-------------------
No better look as when users are colored but it's funny too.
Note : 7/10
By Elie@vbulletin-france.com
Greetz to Jens Gericke to the inspiration
To Renaud pour son formidable travail
Et a toute l'equipe de Vbulletin-France.
---------------
Description : |
---------------
This hack is an adaptation of an old hack of AfterBurner[Jens Gericke]. Thanks to him :)
This hack will permet you to add a image behind useronline.
The image will be different follow the status of the user
---------------
Screenshot : |
---------------
http://delirante.multimania.com/screenshot.gif
----------
Install : |
----------
Find Into index.php
---------------------------
<- Find
$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible']==1) { // Invisible User but show to Admin
$username=$loggedin['username'];
$invisibleuser = '*';
} else {
$username=$loggedin['username'];
$invisibleuser = '';
}
//$location=$loggedin['location'];
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible']==1) { // Invisible User but show to Admin
$username=$loggedin['username'];
$invisibleuser = '*';
} else {
$username=$loggedin['username'];
}
$location=$loggedin['location'];
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
}
-> Remplace By
// Afterburners ImageUserOnlineHack By Elie //
$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid=$loggedin['userid'];
$farbe=$loggedin['usergroupid']; // ID auslesen
if ($loggedin['invisible']==1) { // Invisible User but show to Admin
$username=$loggedin['username'];
$invisibleuser = '*';
} else {
$username=$loggedin['username'];
$invisibleuser = '';
}
//$location=$loggedin['location'];
if ($farbe == 2 ) {
$username = "<img src='images/starmember.gif' width='11' height='10' border='0'>".$username.""; // Color for Member
}
if ($farbe == 5 ) {
$username = "<img src='images/starsupermodo.gif' width='11' height='10' border='0'>".$username.""; // Color for Supermoderator
}
if ($farbe == 6 ) {
$username = "<img src='images/staradmin.gif' width='11' height='10' border='0'>".$username.""; // Color for Administrator
}
if ($farbe == 7 ) {
$username = "<img src='images/starmodo.gif' width='11' height='10' border='0'>".$username.""; // Color for Moderator
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
$farbe=$loggedin['usergroupid']; // ID auslesen
if ($loggedin['invisible']==1) { // Invisible User but show to Admin
$username=$loggedin['username'];
$invisibleuser = '*';
} else {
$username=$loggedin['username'];
}
$location=$loggedin['location'];
if ($farbe == 2 ) {
$username = "<img src='images/starmember.gif' width='11' height='10' border='0'>".$username.""; // Color for Member
}
if ($farbe == 5 ) {
$username = "<img src='images/starsupermodo.gif' width='11' height='10' border='0'>".$username.""; // Color for Supermoderator
}
if ($farbe == 6 ) {
$username = "<img src='images/staradmin.gif' width='11' height='10' border='0'>".$username.""; // Color for Administrator
}
if ($farbe == 7 ) {
$username = "<img src='images/starmodo.gif' width='11' height='10' border='0'>".$username.""; // Color for Moderator
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
}
// Afterburners ImageUserOnlineHack Par Elie //
Into the template forumhome_loggedinusers :
------------------------------------------
<- Find
$recorddate at $recordtime.</nobr><br>
-> Add just after
<img src='images/staradmin.gif' width='11' height='10' border='0'> Administrateur</font> *
<img src='images/starsupermodo.gif' width='11' height='10' border='0'> Supermoderateur</font> *
<img src='images/starmodo.gif' width='11' height='10' border='0'> Moderateur</font> *
<img src='images/starmember.gif' width='11' height='10' border='0'> Membre</font><br>
After put the images files into your images folder
-------------------
My Opinion : |
-------------------
No better look as when users are colored but it's funny too.
Note : 7/10
By Elie@vbulletin-france.com
Greetz to Jens Gericke to the inspiration
To Renaud pour son formidable travail
Et a toute l'equipe de Vbulletin-France.