Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HOW-TO] Show all Guests in the "Active Users List" Details »»
[HOW-TO] Show all Guests in the "Active Users List"
Version: , by GreasySpoon GreasySpoon is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-10-2009 Last Update: Never Installs: 0
 
No support by the author.

I think there is a bug which dont't show correct the count of guests in the active users list.

To fix this bug you have to edit two files. /arcade/functions/dbclass.php and /arcade/functions/dbclass_mysqli.php

Find the following code:
PHP Code:
if(strpos($the_query"s.login_type")) {
            
$gtlocation strpos($the_query">");
            
$timestamp substr($the_query$gtlocation+110);
            
$the_query "SELECT s.userid, s.location, s.in_game, u.username, g.opentag, g.closetag, u.options 
                            FROM ibf_session as s 
                            LEFT JOIN ibf_user as u ON (u.userid = s.userid) 
                            LEFT JOIN ibf_usergroup as g ON (u.usergroupid = g.usergroupid)
                            WHERE s.lastactivity > " 
$timestamp " AND s.location LIKE '%rcade%' AND s.location NOT LIKE '%admin%'
                            GROUP BY s.userid
                            ORDER BY u.username ASC"
;
        } 
And delete the "GROUP BY s.userid" line.

Find:
PHP Code:
$invisible_bit_from_right 10;
                    
$userdata base_convert($users['options'],10,2);
                    
$invisible substr($userdata,(strlen($userdata)-$invisible_bit_from_right),1);

            
$active_list[] = array( name        => $users['member_name'],
                                    
id            => $users['member_id'],
                                    
in_game        => $users['in_game'],
                                    
suffix        => $users['suffix'],
                                    
prefix        => $users['prefix'],
                                    
login        => $users['login_type'],
                                                                    
invisible        => $invisible
                             
);

            if( 
trim($users['in_game']) != "" )
            {
                
$temp explode("|" $users['in_game']);
                
$the_games[] = $temp[0];
            } 
Replace with:
PHP Code:
if (($users['member_id'] != $active_list[intval(count($active_list) - 1)]['id']) || ($users['member_id'] == 0)){
                
$invisible_bit_from_right 10;
                
$userdata base_convert($users['options'],10,2);
                
$invisible substr($userdata,(strlen($userdata)-$invisible_bit_from_right),1);

                
$active_list[] = array( name        => $users['member_name'],
                                        
id            => $users['member_id'],
                                        
in_game        => $users['in_game'],
                                        
suffix        => $users['suffix'],
                                        
prefix        => $users['prefix'],
                                        
login        => $users['login_type'],
                                                                        
invisible        => $invisible
                                 
);

                if( 
trim($users['in_game']) != "" )
                {
                    
$temp explode("|" $users['in_game']);
                    
$the_games[] = $temp[0];
                }
            } 
Demo: At the bottom of our arcade.

Greetz

Show Your Support

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

Comments
  #2  
Old 02-13-2009, 09:22 PM
rapidphim rapidphim is offline
 
Join Date: Feb 2007
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did your show the number of invisible members?
Reply With Quote
  #3  
Old 02-15-2009, 05:14 PM
GreasySpoon GreasySpoon is offline
 
Join Date: Dec 2007
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sadly not. I think this is a bug in the arcade code. I will try to find a sollution.

Greetz
Reply With Quote
  #4  
Old 02-16-2009, 11:42 AM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A place to start is arcade/modules/mod_arcade..

Right after,,
//Gets the users active in the arcade and returns the html for it
Reply With Quote
  #5  
Old 02-16-2009, 12:14 PM
GreasySpoon GreasySpoon is offline
 
Join Date: Dec 2007
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it!

Find this code block (line 1002):
PHP Code:
else
                            {
                                
// check for Admin who can see invisible users
                                
if ($this->user['mgroup'] == 6)
                                {
                          
$names .= ($a) ? ", " "";
                                
$names .= $span_pre."<a href='./member.php?$session[sessionurl]&amp;u=".$this_user['id']."'>";
                                
$names .= $this_user['prefix'].$this_user['name'].$this_user['suffix'];
                                
$names .= "</a>*".$span_suf;
                        
$a++;
                                    }
                            } 
and replace with:
PHP Code:
else
                            {
                                
// check for Admin who can see invisible users
                                
if ($this->user['mgroup'] == 6)
                                {
                          
$names .= ($a) ? ",&nbsp;" "";
                                
$names .= $span_pre."<a href='./member.php?$session[sessionurl]&amp;u=".$this_user['id']."'>";
                                
$names .= $this_user['prefix'].$this_user['name'].$this_user['suffix'];
                                
$names .= "</a>*".$span_suf;
                        
$a++;
                                    }
                                
$anon_count++;
                            } 
You need only one line ($anon_count++; ) nearly the end of the code block.

Greetz
Reply With Quote
  #6  
Old 02-16-2009, 01:32 PM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$anon_count++; is already there...
Reply With Quote
  #7  
Old 02-16-2009, 03:24 PM
GreasySpoon GreasySpoon is offline
 
Join Date: Dec 2007
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not in the "else" block. Try my code, it works.
Reply With Quote
  #8  
Old 02-17-2009, 10:59 AM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see now,,,,Thanks !!
Reply With Quote
  #9  
Old 02-17-2009, 11:08 AM
GreasySpoon GreasySpoon is offline
 
Join Date: Dec 2007
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are welcome.

Please also take a look at the bug fix in my first post. There was a bug that sometimes showed usernames twice.

Greetz
Reply With Quote
  #10  
Old 02-17-2009, 11:16 AM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I`m glad you said that..I didnt see the extra edit you made..

Thanks again !!
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 03:18 AM.


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.06512 seconds
  • Memory Usage 2,346KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete