Thread: Major Additions - ibProArcade - professional Arcade System
View Single Post
  #431  
Old 11-26-2005, 07:35 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This will add clickable icons in the Who's Online section of your arcade (see screenshot for an example)

Open your mod_Arcade.php and 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 it wit:
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>";
All done.Save and upload

Upload the images in the attached zip file into your arcade/images folder

Not really got much time to support anything jus now,that's why I've added it here and not made a separate thread

Gemma
Attached Images
File Type: jpg post-14-1128907892.jpg (26.4 KB, 0 views)
Attached Files
File Type: zip arcade_images.zip (2.8 KB, 23 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01553 seconds
  • Memory Usage 1,798KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete