Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Active User Images for Ibproarcade WOL Details »»
Active User Images for Ibproarcade WOL
Version: 1.00, by am-fs am-fs is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-26-2006 Last Update: Never Installs: 11
 
No support by the author.

This file edit adds images to the "Users Active in the Arcade" showing what game a member is playing or what they are viewing.

This mod was released on the old vbibroarcade support forum by Gemma, Thanks Again
I have been useing it since 3.0x - 2.5.1 arcade with out any problems.

Here's what to do.
1 File Edit - mod_arcade.php
Upload 2 images to the arcade/images folder.


In arcade/modules/mod_arcade.php

Find:
Code:
$DB->query("SELECT gid, gtitle FROM ibf_games_list WHERE gid IN ($games_list)");
while($g = $DB->fetch_row())
{
$games_names[$g['gid']] = $g['gtitle'];
}
}

$a = 0;
foreach( $active_list as $this_user )
{
$span_pre = "";
$span_suf = "";

$this_user['in_game'] = explode("|",$this_user['in_game']);
$gid = $this_user['in_game'][0];
$do = $this_user['in_game'][1];

if( $do == "play" )
{
$span_pre = "<span title='".$ibforums->lang["playing"].$games_names[$gid]."' style='text-decoration: none; border-bottom: 1px dashed; padding-bottom: 1px;'>";
}
elseif( $do == "stats" )
{
$span_pre = "<span title='".$ibforums->lang["viewing"].$games_names[$gid]."'>";
}
else
{
$span_pre = "<span title='".$ibforums->lang["arcade_home"]."'>";
}
$span_suf = "</span>";

Replace with:
Code:
$DB->query("SELECT g.gid, g.gtitle, c.password, g.gname FROM ibf_games_list AS g, ibf_games_cats as c WHERE gid IN ($games_list) AND g.gcat=c.c_id AND trim(password)=''");
while($g = $DB->fetch_row())
{
$games_id[$g['gid']] = $g['gid'];
$games_names[$g['gid']] = $g['gtitle'];
$games_gnames[$g['gid']] = $g['gname'];
}
}

$a = 0;
foreach( $active_list as $this_user )
{
$span_pre = "";
$span_suf = "";

$this_user['in_game'] = explode("|",$this_user['in_game']);
$gid = $this_user['in_game'][0];
$do = $this_user['in_game'][1];

if( ($do == "play") && (isset($games_names[$gid])))
{
$span_pre = "<a href={$ibforums->base_url}act=Arcade&do=play&gameid=".$games_id[$gid]."><IMG SRC='./arcade/images/".$games_gnames[$gid]."2.gif' border='0' alt='Click to Play: ".$games_names[$gid]."' /></a> <span title='".$ibforums->lang["playing"].$games_names[$gid]."' style='text-decoration: none; border-bottom: 1px dashed; padding-bottom: 1px;'>";
}
elseif( $do == "stats" )
{
$span_pre = "<a href={$ibforums->base_url}act=Arcade&do=stats&gameid=".$games_id[$gid]."><IMG SRC='./arcade/images/arcadeleaders.gif' border='0' alt='Click to View Leaders: ".$games_names[$gid]."' /></a> <span title='".$ibforums->lang["viewing"].$games_names[$gid]."'>";
}
else
{
$span_pre = "<a href={$ibforums->base_url}act=Arcade><IMG SRC='./arcade/images/arcadehome.gif' border='0' alt='Click to View: Arcade Home' /></a> <span title='".$ibforums->lang["arcade_home"]."'>";
}
$span_suf = "</span>";

Show Your Support

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

Comments
  #2  
Old 04-27-2006, 03:45 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work

This should be in the standard release of the arcade

*Gemma clicks install even though she's had it installed for 8 months*
Reply With Quote
  #3  
Old 04-27-2006, 05:27 PM
Tyegurl's Avatar
Tyegurl Tyegurl is offline
 
Join Date: Mar 2006
Location: NY
Posts: 480
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tyvm i love it!
Reply With Quote
  #4  
Old 04-27-2006, 07:21 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Man I like it!
Reply With Quote
  #5  
Old 04-28-2006, 05:06 AM
alsinda alsinda is offline
 
Join Date: Apr 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfect. Very cool.
Reply With Quote
  #6  
Old 05-09-2006, 12:08 AM
rinkrat's Avatar
rinkrat rinkrat is offline
 
Join Date: Jan 2002
Location: Long Beach
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice!
Reply With Quote
  #7  
Old 08-20-2010, 07:39 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod for the arcade
It always bothered me I could not click on the image "a member was playing" to bring me right to the game..
I know this it's a old mod .. Not 100% sure it needs a little coding but it still works..

thanks
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 01:56 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.04216 seconds
  • Memory Usage 2,260KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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