vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE : v2.0.3]Image.Behind.User.Online (https://vborg.vbsupport.ru/showthread.php?t=28924)

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

PHP Code:

  $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']==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']==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

PHP Code:

// 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']==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 == ) {
     
$username "<img src='images/starmember.gif' width='11' height='10' border='0'>".$username.""// Color for Member
 
}
 if (
$farbe == ) {
     
$username "<img src='images/starsupermodo.gif' width='11' height='10' border='0'>".$username.""// Color for Supermoderator
 

 if (
$farbe == ) {
     
$username "<img src='images/staradmin.gif' width='11' height='10' border='0'>".$username.""// Color for Administrator
 
}
 if (
$farbe == ) {
     
$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']==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 == ) {
     
$username "<img src='images/starmember.gif' width='11' height='10' border='0'>".$username.""// Color for Member
 
}
 if (
$farbe == ) {
     
$username "<img src='images/starsupermodo.gif' width='11' height='10' border='0'>".$username.""// Color for Supermoderator
 

 if (
$farbe == ) {
     
$username "<img src='images/staradmin.gif' width='11' height='10' border='0'>".$username.""// Color for Administrator
 
}
 if (
$farbe == ) {
     
$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

PHP Code:

$recorddate at $recordtime.</nobr><br

-> Add just after

PHP Code:

<img src='images/staradmin.gif' width='11' height='10' border='0'Administrateur</font> &#160;
<img src='images/starsupermodo.gif' width='11' height='10' border='0'Supermoderateur</font> &#160;
<img src='images/starmodo.gif' width='11' height='10' border='0'Moderateur</font> &#160;
<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.

Afterburner 09-26-2001 05:53 AM

nice modification of my hack (ColoredOnlineUserHack) ;) you have only replaced the font tag with the image tag and say its your hack ? I think if you modify a hack you have to put in the (c) in the description.

[VbbFr]Elie 09-26-2001 06:19 AM

Ok ... no problem ...

But Aren't you Jens Gericke ?
Some friend ask how to do this hack, so i modify your and i think maybe someone else wants it.

Afterburner 09-26-2001 08:02 AM

Yes this is my name *g*

Aracnakat 10-05-2001 05:02 AM

Has this been updated for 2.03 yet? :)

~Kat :)

almighty one 10-05-2001 05:06 AM

Quote:

Originally posted by Aracnakat
Has this been updated for 2.03 yet? :)

~Kat :)

hmmm i think the title of post says it all
[RELEASE : v2.0.3]Image.Behind.User.Online
:confused:

YourHostSucks 10-05-2001 05:09 AM

<edit> well I guess it took me to long to post that it said 2.0.3..
so I edit saying that out of my post ...lol hit reply then got busy with a AIM.. :(</edit>

I will stick with the colors, images could get messy with alot
of visitors on your board...

But might be a nice thing for slower boards.. :D
(well yourhostsucks is very slow hhe, but it will grow with time)

Aracnakat 10-05-2001 05:14 AM

Doh! Sorry .. I'm a little slow tonight ;x

Well .. I opened up index.php and did a search for some of the text that needs replacing and none of it's in my index.php.

I'll try again .. my brain's so slow perhaps I had the wrong file opened? :)

~Kat :)

Aracnakat 10-05-2001 05:17 AM

Doh Doh Doh .. there are two index.php files .. one in the root directory (the one you need to use) and one under the /admin/ directory (the one I was using).

My bad bad bad.

Thanks!

~Kat :)

BTW, does anyone lurking here happen to know the usergroupid for guests?

~Kat :)

YourHostSucks 10-05-2001 05:33 AM

That would be 1 for guest.... but they do not show up in the online list (were the colors are used)


All times are GMT. The time now is 09:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01141 seconds
  • Memory Usage 1,800KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete