Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-25-2001 Last Update: Never Installs: 0
 
No support by the author.

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 : |
---------------




----------
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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-05-2001, 05:37 AM
Aracnakat's Avatar
Aracnakat Aracnakat is offline
 
Join Date: Nov 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by YourHostSucks
That would be 1 for guest.... but they do not show up in the online list (were the colors are used)
YHS .. Thank you .. bless you .. BLESS YOU! I was looking for it for another hack

~Kat

EDIT: Hmm .. it's not working with 1 .. and I tried 3 & 4 as well ;x -sighs- ... here's what I'm working on if anyone has any insight: http://vbulletin.com/forum/showthrea...threadid=28806
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:38 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.03651 seconds
  • Memory Usage 2,263KB
  • Queries Executed 16 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete