PDA

View Full Version : Mini Mods - ibProArcade pagination below Game Information


stangger5
11-13-2014, 10:00 PM
This should work with all vb and ibproarcade versions..

This will help you navigate through your arcade game pages without having to scroll to the bottom of the page..
Shows below Game Information and above the Games..

Demo: www.next-level-arcade.com (http://www.next-level-arcade.com/ibproarcade.php)

Two files to edit..

arcade.php find:
$this->output .= $this->html->start($newtext,$latestinfo,$new_games,$pop_games,$ ran_games,$tot_games,$usecats,$tot_cats,$this->arcade->links,$plays_left,$tourneyinfo,$cattable,$attente, $termine,$actifs,$mtinfo,$Champion,$Highscorechamp ,$stylecolumns,$selected);


change it to this:

$this->output .= $this->html->start($newtext,$latestinfo,$new_games,$pop_games,$ ran_games,$tot_games,$usecats,$tot_cats,$this->arcade->links,$plays_left,$tourneyinfo,$cattable,$attente, $termine,$actifs,$mtinfo,$Champion,$Highscorechamp ,$stylecolumns,$selected,$this->arcade->links['pages']);


save and close..

Now edit the skin_Arcade.php

Find:
function start($newtext,$latestinfo,$new_games,$pop_games,$ ran_games,$tot_games,$usecats,$tot_cats,$clicktopl ay,$plays_left,$tourneyinfo,$cats,$attente,$termin e,$actifs,$mtinfo,$Champion,$Highscorechamp,$style columns,$selected){


change it to this:

function start($newtext,$latestinfo,$new_games,$pop_games,$ ran_games,$tot_games,$usecats,$tot_cats,$clicktopl ay,$plays_left,$tourneyinfo,$cats,$attente,$termin e,$actifs,$mtinfo,$Champion,$Highscorechamp,$style columns,$selected,$pages){


Now scroll down to find this:
<div class="tborder">
<table width="100%" border="0" cellspacing="1" cellpadding="$stylecolumns">
<tr>
<td width="100%" align="center" colspan="$stylecolumns" class="tcat">{$ibforums->lang['game_info']}{$plays_left}</td>
</tr>
{$cats}
{$tourneyinfo['desc']}
EOF;
}

change it to this:

<div class="tborder">
<table width="100%" border="0" cellspacing="1" cellpadding="$stylecolumns">
<tr>
<td width="100%" align="center" colspan="$stylecolumns" class="tcat">{$ibforums->lang['game_info']}{$plays_left}</td>
</tr>
{$cats}
{$tourneyinfo['desc']}
</table>
<div style="padding:5px;margin-top:-12px;">
{$pages}
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="$stylecolumns">
<tr>
<td colspan="$stylecolumns" class="pformstrip">
<div class="tborder">
<table width="100%" border="0" cellspacing="1" cellpadding="$stylecolumns">
<tr class="alt1">
EOF;
}

save and close..

Thats it..
Enjoy !!
:)

blind-eddie
11-14-2014, 11:08 PM
You are awesome, Thank you for sharing!

Anyone with ibProArcade installed should add this to their site.

J19784B5A39B
12-29-2014, 09:52 PM
not good for version 3.8.5?

blind-eddie
12-29-2014, 10:16 PM
Why not? I should work.

BGObsession
12-30-2014, 01:08 AM
Damn...made the 3 code snippet changes but now my Arcade page won't load - getting this error message:

Fatal error: Call to undefined method skin_Arcade::newest_champs_row() in /home/bgobses/public_html/arcade.php on line 2214

Maybe something conflicts with the scrolling 'newest champs' mod I added? Any idea how to correct the error anyone? I got lazy and didn't save the original arcade.php or Skin_arcade.php files.....You think you'd learn over time...

blind-eddie
12-30-2014, 03:10 AM
That sucks, sorry to hear that.
I use this on my 3.8.8 board without issue.
Resave the arcade.php or Skin_arcade.php that you are using now, download the arcade again and only upload those two files to their proper locations.

This should be working for you without issue.

BGObsession
12-30-2014, 12:24 PM
I have the original Arcade files, but would prefer to repair code to preserve 'Lights on', scrolling game leaders, etc.. add-ons. Hopefully stangger5 can pull my chestnuts out of the fire and help me resolve the issue :)

stangger5
12-30-2014, 04:56 PM
Your error was caused by an edit in the skin_Arcade file..

I`ve got you all fixed up now..

BGObsession
12-30-2014, 05:10 PM
Thank you brother - you are the man!

J19784B5A39B
03-13-2015, 09:29 PM
Why not? I should work.

I have this code:(

<div class="tborder">
<table width="100%" border="0" cellspacing="1" cellpadding="$stylecolumns">
<tr>
<td width="100%" align="center" colspan="$stylecolumns" class="tcat">{$ibforums->lang['game_info']}{$plays_left}</td>
</tr>


{$cats}
{$tourneyinfo['desc']}

</table></div><br /><div class="tborder">
<table width="100%" border="0" cellspacing="1" cellpadding="$stylecolumns">
<tr>

EOF;

stangger5
03-14-2015, 05:23 PM
Give this a try:

Change yours to this:

<div class="tborder">
<table width="100%" border="0" cellspacing="1" cellpadding="$stylecolumns">
<tr>
<td width="100%" align="center" colspan="$stylecolumns" class="tcat">{$ibforums->lang['game_info']}{$plays_left}</td>
</tr>
{$cats}
{$tourneyinfo['desc']}
</table>
</div>
<div style="padding:5px;margin-top:-12px;">
{$pages}
</div>
<div class="tborder">
<table width="100%" border="0" cellspacing="1" cellpadding="$stylecolumns">
<tr>

EOF;
}

J19784B5A39B
03-16-2015, 10:05 PM
i have not

stangger5
03-17-2015, 04:03 PM
Do you need me to have a look and install it ?
You can pm me your info at my site..

J19784B5A39B
03-17-2015, 11:41 PM
ok done

stangger5
03-19-2015, 08:56 PM
ok done

I just installed the code from the post above #11 to your next_level_arcade skin and it worked fine on your site..

:up:

J19784B5A39B
03-19-2015, 10:31 PM
you are very kind stangger5, thanks thanks thanks

darr3n
03-26-2019, 10:54 PM
This should work with all vb and ibproarcade versions..

Am I doing something wrong or does this not work with the current ibproarcade 2.7.6+?

The line that needs to be replaced in the first edit doesn't seem to be in arcade.php?