The Arcive of vBulletin Modifications Site. |
|
Category in game information Details »»
|
|||||||||||||||||||||||||
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
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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']. |
|
#3
|
|||
|
|||
|
Awesome, thank you so much!
|
|
#4
|
|||
|
|||
|
Many thanks for this...
nAsH |
|
#5
|
||||
|
||||
|
useful modification, thx man :up:
regards terror |
|
#6
|
|||
|
|||
|
Thank you for the usefull Modification
![]() Works nice ! Greetings |
|
#7
|
||||
|
||||
|
included this in next ibProArcade v2.7.0+ as it is a good idea ...
|
|
#8
|
|||
|
|||
|
This is a great feature...thanks
![]() The category doesn't show when viewing favorites, any ideas on getting it to crossover? Thanks |
|
#9
|
||||
|
||||
|
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 |
|
#10
|
||||
|
||||
|
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>
Code:
<fieldset class="fieldset">
<legend><b>{$ibforums->lang['acp_gamesort_cat']}</b></legend>
<center><span class="smallfont">
{$entry['cat_name']}</span></center>
</fieldset>
|
![]() |
|
|