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
Category in game information Details »»
Category in game information
Version: , by Stanthrax Stanthrax is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

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

Is there any way to add the category to the game info? I've created the spot but haven't figured out the code to pull the information yet.

Show Your Support

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

Comments
  #2  
Old 11-28-2009, 12:53 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this: In arcade.php search for "//get games", right under that is:

Code:
       //get games
               $DB->query("select g.*, c.password from ibf_games_list as g
            left join ibf_games_cats as c on (g.gcat = c.c_id)
                  where g.active = 1 ".$show_all.$search.$catselect."
                    order by ".$this->arcade->settings['g_display_sort']." ".$this->arcade->settings['g_display_order']." ".$query_limit);
                while( $this_game = $DB->fetch_row() )
        {
                $games[] = array(	'gid'                =>  $this_game['gid'],
					'gwidth'    =>  $this_game['gwidth'],
					'gheight'   =>  $this_game['gheight'],

change to (parts in red added, don't miss the comma after 'password'):

Code:
        //get games
               $DB->query("select g.*, c.password, c.cat_name from ibf_games_list as g
            left join ibf_games_cats as c on (g.gcat = c.c_id)
                  where g.active = 1 ".$show_all.$search.$catselect."
                    order by ".$this->arcade->settings['g_display_sort']." ".$this->arcade->settings['g_display_order']." ".$query_limit);
                while( $this_game = $DB->fetch_row() )
        {
                $games[] = array(	'gid'                =>  $this_game['gid'],
					'cat_name' => $this_game['cat_name'],
					'gwidth'    =>  $this_game['gwidth'],
					'gheight'   =>  $this_game['gheight'],


This should fill in $entry['cat_name'].
Reply With Quote
  #3  
Old 11-28-2009, 01:21 AM
Stanthrax Stanthrax is offline
 
Join Date: Mar 2009
Location: Mi
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, thank you so much!
Reply With Quote
  #4  
Old 12-02-2009, 06:43 PM
nAsH nAsH is offline
 
Join Date: May 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks for this...

nAsH
Reply With Quote
  #5  
Old 12-04-2009, 08:14 PM
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
Location: Germany
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

useful modification, thx man :up:

regards
terror
Reply With Quote
  #6  
Old 12-05-2009, 06:45 AM
Mahoni999 Mahoni999 is offline
 
Join Date: Apr 2009
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the usefull Modification

Works nice !

Greetings
Reply With Quote
  #7  
Old 12-05-2009, 08:33 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

included this in next ibProArcade v2.7.0+ as it is a good idea ...
Reply With Quote
  #8  
Old 05-12-2010, 08:38 PM
tigrattack tigrattack is offline
 
Join Date: Aug 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great feature...thanks

The category doesn't show when viewing favorites, any ideas on getting it to crossover?

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

Just seen this thread and MrZeropage post he said it was added in ibProArcade v2.7.0+

I see the code used in the arcade.php but It does not display..

what am I missing
I never new it was added so till now
thanks
Reply With Quote
  #10  
Old 05-16-2010, 09:28 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the code is prepared to push category-information to the skin/layout, but if you want to use it, you need to add it to the skin

/arcade/skins/skin_Arcade.php

search for
Code:
<fieldset class="fieldset">
<legend><b>{$ibforums->lang['gamebox_persbest']}</b></legend>
<center><span class="smallfont">
{$ibforums->lang['your_high']}<b>{$pbest}</b>{$ibforums->lang['gamebox_persbest_p']}</span></center>
</fieldset>
after this add
Code:
<fieldset class="fieldset">
<legend><b>{$ibforums->lang['acp_gamesort_cat']}</b></legend>
<center><span class="smallfont">
{$entry['cat_name']}</span></center>
</fieldset>
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 11:39 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.04795 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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_code
  • (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
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete