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
ibProArcade Fixes Details »»
ibProArcade Fixes
Version: , by Hippy Hippy is offline
Developer Last Online: Apr 2018 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-22-2010 Last Update: Never Installs: 0
 
No support by the author.

  • layout fix & store css as files fix
Quote:
Originally Posted by Hippy View Post
today is your lucky day then

over write your ARCADE template with this

Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
    <title>{vb:raw ibprotitle}</title>
    {vb:raw headinclude}
    {vb:raw headinclude_bottom}
    {vb:cssfile ARCADE.css}
  </head>
  <body>
    {vb:raw header}
    {vb:raw navbar}

  {vb:raw arcadeheader}
  {vb:raw maincontent}     


    {vb:raw footer}
</div>
  </body>
</html>
Click save


No longer needed with the above template..
[s]Now open up the ARCADE.css and copy it completely
close it out, no need to save.

now paste it into the additional.css
click save...[/s]

next go to
Plugins & products > plugin manager > Product : ibProArcade for vBulletin click open ibProArcade: ARCADE CSS
and select no for "Plugin is Active" ...
save
thats it
you can turn store css as a file back on

enjoy
for those that are just trying to fix there log / banner
or Full width Forum logo mod
the above ARCADE template will work alone
this template should be changed anyway..
the arcade is so out of date. it's calling the old template ARCADE instead of ARCADEVB4
I just copied the ARCADEVB4 template and added it to the ARCADE template with a couple small changes
If you are still using the stock ARCADE template soon or later it's going to stop working.

  • Spacing between icon and title fix
Quote:
Originally Posted by Hippy View Post
ok
I had a litte time so I found a fix for this
open /arcade/functions/functions.php
search for // we are on vB 4 or later WHOHOOO
Just under it on line 1380 you'll see
Code:
$navbits = $output_array['NAV'];
move it under
Code:
$navbits = construct_navbits(array('' => $ibforums->lang['page_title']));
enjoy
If you don't want to edit it yourself I attached it here


  • leaderbord issue closing <form> code
  • Score Not Saving / Missing token
vb suite users
if adding this code to your index.php don't work below as stated in your arcade zip file you downloaded
Code:
open index.php

At the very beginning of the File, right after:
----------------------------------------------------------
<?php
----------------------------------------------------------

you have to insert:
----------------------------------------------------------
// ibProArcade
if($_POST['module'] == "pnFlashGames")
{
    require_once('./global.php');

    switch($_POST['func'])
    {
        case "storeScore":
        $_GET['act'] = "Arcade";
        $_GET['module'] = "arcade";
        $_GET['do'] = "pnFStoreScore";
        break;

        case "saveGame":
        $_GET['do'] = "pnFSaveGame";
        break;

        case "loadGame":
        $_GET['do'] = "pnFLoadGame";
        break;

        case "loadGameScores":
        $gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_INT);
        $uid= $vbulletin->userinfo['userid'];
        $game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
        $scores = $game[score];

        if($scores != false)
        {
            //Return true
            print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
        }
        else
        {
            print "&opSuccess=false&error=Error&endvar=1";
        }
        break;
    }
}

$act = $_GET[act];
$autocom = $_GET[autocom];
$showuser= $_GET[showuser];
if($act == "Arcade" || $autocom=="arcade") {
include "arcade.php";
exit();
}
if(!empty($showuser) && $showuser >= 1) {
$u = $showuser;
$_GET[u] = $showuser;
include "member.php";
exit();
}

// end of ibProArcade
----------------------------------------------------------


Otherwise your scores won't be recorded :)

If the Above edit does not work

Pitman posted a rewrite that does the same things with out editing the index.php or of you don't have one

https://vborg.vbsupport.ru/showpost....6&postcount=83

I also have a version of this from
stangger5
Posted in the new updated Ibproarcade fixes



Fatal error: Allowed memory / uploading in bulk

Quote:
Originally Posted by Harley D View Post
If you run into this memory issue, you need to increase the size of the Memory in your php.ini file, normally found in your /public_html/.

First make a COPY of the PHP.INI file, so you can RESTORE it.

Open "EDIT" the file and do a search for MEMORY, you should see the max allowed, increase it to handle a bit more than the error states it needs. Save it and re-upload the file. Should work fine now.

EXAMPLE:
Code:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 600     ; Maximum execution time of each script, in seconds
max_input_time = 600    ; Maximum amount of time each script may spend parsing request data
memory_limit = 96M      ; Maximum amount of memory a script may consume (16MB)
Go back to the PHP.INI file and put it back the way it was. Shared servers don't like you to have this over 64mb I believe.


I tried to add all the bug fixes in one thread to make it easy for people to find them..
If I forgot any feel free to post them here..
Hope this helps out

enjoy

Download Now

File Type: (21.4 KB, 145 views)

Show Your Support

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

Comments
  #222  
Old 09-07-2011, 06:04 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's your style..

open up your skin/skin_arcade.php and skin_v3arcade.php

and do a search and replace


find all tcat and replace with blockhead..

will fix ya up

--------------- Added [DATE]1315426185[/DATE] at [TIME]1315426185[/TIME] ---------------

also just noticed the style your using has alt1 and alt2

in that style you should remove the alt1 and alt2 .. but your other styles leave the arcade.css contents the same when you move it ..

you can also remove all the tact stuff .. it will no longer be needed after editing those 2 style files..
Reply With Quote
  #223  
Old 09-09-2011, 06:39 PM
Mickie D Mickie D is offline
 
Join Date: Jun 2002
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hippy View Post
it's your style..

open up your skin/skin_arcade.php and skin_v3arcade.php

and do a search and replace


find all tcat and replace with blockhead..

will fix ya up

--------------- Added [DATE]1315426185[/DATE] at [TIME]1315426185[/TIME] ---------------

also just noticed the style your using has alt1 and alt2

in that style you should remove the alt1 and alt2 .. but your other styles leave the arcade.css contents the same when you move it ..

you can also remove all the tact stuff .. it will no longer be needed after editing those 2 style files..
Thanks so much hippy that looks better already.

When you say remove the alt1 and alt2, is that from the additional css that I have made for that style?

Thanks again, that is top quality support mate!

Regards
Mick
Reply With Quote
  #224  
Old 09-09-2011, 06:48 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes your moving the contents from the arcade.css corrrect to the additional css

well you custom style uses alt1 and alt2 so I would remove the one from the arcade.css before moving itto the additional css

and your more than welcome.
I am glad it worked out..


remember this on your other styles keep the alt1 and alt2 when moving the contents from the arcade .css to the additional css ..

enjoy
Reply With Quote
  #225  
Old 09-13-2011, 08:25 PM
tidus78's Avatar
tidus78 tidus78 is offline
 
Join Date: Sep 2009
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I upgraded to 2.7.1 becouse not install more games but ....images of the games have disappeared and I still can not install new games ......sigh sobh help

http://www.console-planet.it/arcade.php

--------------- Added [DATE]1315949765[/DATE] at [TIME]1315949765[/TIME] ---------------

EDIT

games are disapperead....
Reply With Quote
  #226  
Old 09-16-2011, 01:05 PM
Malcolm-X Malcolm-X is offline
 
Join Date: Sep 2010
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I attach the screen picture after playing the game.

What is the problem?

Thanks for your help
Attached Files
File Type: (21.3 KB, 18 views)
Reply With Quote
  #227  
Old 09-16-2011, 06:57 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it all games >?

did you add the index edit ? after upgrading to vb4.1.5 ?

can be a few things..
contact me on msn my contact info is in my profile..
Reply With Quote
  #228  
Old 09-18-2011, 08:46 AM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, can you share with us how did you menage this?
Check picture, its one of yours in this thread which I edited to show...


1. how and where to do a change to place desired number of latest scores
2. Is there any way to have same spacing on left and right side?

Thank you
Reply With Quote
  #229  
Old 09-18-2011, 11:30 AM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1st.. Latest Arcade Score edit change it from 1 to 5
open up your arcade.php and do the following
This was posted some wheres here years ago ..
I forgot who posted it
but anyway

Code:
arcade.php 
Find:

PHP Code:
//latest score and champions
       //Added g.decpoints after g.title
                $DB->query("SELECT s.*, g.gtitle, g.decpoints, c.password FROM ibf_games_scores AS s, ibf_games_list AS g, ibf_games_cats AS c WHERE s.gid=g.gid AND g.gcat=c.c_id AND g.active=1 AND trim(password)='' ORDER BY datescored DESC LIMIT 0,5");
                $newest_score = $DB->fetch_row();

        //$newest_score['score'] = $this->arcade->t3h_format($newest_score['score']);
                // Replaced
                $newest_score['score'] = $this->arcade->do_arcade_format($newest_score['score'],$newest_score['decpoints']);

                if ($this->arcade->settings['use_announce'])
        {
            $announce = $this->arcade->settings['announcement_parsed'];
                    $tourneyinfo['announcement'] = $this->html->generalbox($ibforums->lang['arcade_announcements'], $announce);
        }
                else
                $tourneyinfo['announcement'] = "";


        $latestinfo = $ibforums->lang['newest_score'];
        $latestinfo = preg_replace("/<% NAME %>/i" , $newest_score['name'] , $latestinfo);
        $latestinfo = preg_replace("/<% SCORE %>/i" , $newest_score['score'] , $latestinfo);
        $latestinfo = preg_replace("/<% GAME %>/i" , $newest_score['gtitle'] , $latestinfo);  


Replace with:

PHP Code:
//latest score and champions
       //Added g.decpoints after g.title 
$newest_score_query = $DB->query("SELECT s.*, g.gtitle, g.decpoints, c.password FROM ibf_games_scores AS s, ibf_games_list AS g, ibf_games_cats AS c WHERE s.gid=g.gid AND g.gcat=c.c_id AND g.active=1 AND trim(password)='' ORDER BY datescored DESC LIMIT 0,5");
        while ($newest_score = $DB->fetch_row($newest_score_query))
        {
            $newest_score['score'] = $this->arcade->do_arcade_format($newest_score['score'],$newest_score['decpoints']);

            if ($this->arcade->settings['use_announce'])
            {
                $announce = $this->arcade->settings['announcement_parsed'];
                $tourneyinfo['announcement'] = $this->html->generalbox($ibforums->lang['arcade_announcements'], $announce);
            }
            else
            $tourneyinfo['announcement'] = "";

            $tmplatestinfo = $ibforums->lang['newest_score'];
            $tmplatestinfo = preg_replace("/<% NAME %>/i" , $newest_score['name'] , $tmplatestinfo);
            $tmplatestinfo = preg_replace("/<% SCORE %>/i" , $newest_score['score'] , $tmplatestinfo);
            $tmplatestinfo = preg_replace("/<% GAME %>/i" , $newest_score['gtitle'] , $tmplatestinfo);
            
            $latestinfo[] = $tmplatestinfo;
            
            $this->arcade->make_links($newest_score['gid'] , $newest_score['gtitle']);
            $click_links[] = $this->arcade->links['click'];
        }
        
        $viewerav = "";
        $this->arcade->links['click'] = $click_links;  
Find:

PHP Code:
//header
        $this->arcade->make_links($newest_score['gid'] , $newest_score['gtitle']);
        $viewerav = "";  

Replace with:

PHP Code:
//header
        //$this->arcade->make_links($newest_score['gid'] , $newest_score['gtitle']);
        //$viewerav = "";  
skin_Arcade.php im am using the blockstyle (check in our arcade) so this modification will only work if you are using also the blockstyle.

Edit: skin_v3Arcade.php is the same. Do the same steps.

Find (in the function start()):

PHP Code:
$totalstext = $totalstext . $ibforums->lang['infobox_title7'];  
Add below:

PHP Code:
for ($i = 0, $count = count($latestinfo); $i < $count; $i++)
{
    $latestscores .= "<tr>
        <td align=\"left\">
            " . $latestinfo[$i] . "<br />
        </td>
        <td align=\"right\">
            " . $clicktoplay['click'][$i] . "
        </td>
    </tr>";
}  
Find (in the "return <<<EOF" part):

PHP Code:
<tr>
                                                                            <td align="left">
                                                {$latestinfo}<br />
                                                                                </td>
                                            <td align="right">
                                                {$clicktoplay['click']}
                                            </td>
                                        </tr>  
Replace with:

PHP Code:
{$latestscores}
2nd
the spaces may look even there but they aren't ..
I have tried for a long time to make it even with out luck..
sorry.

enjoy
Reply With Quote
Благодарность от:
goxy63
  #230  
Old 09-18-2011, 12:36 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Thanks
Thanks
it works great

Now maybe I ask to much, but here it is

Check attached pic:


Within arcade I got this problem (problem is only within arcade pages) that my chatbox (MGC chatbox) is as you can see way above arcade, that spacing is looking like sh**t that would be my last "problem" with arcade

Thank you
Reply With Quote
  #231  
Old 09-18-2011, 12:41 PM
Hippy's Avatar
Hippy Hippy is offline
 
Join Date: Dec 2001
Location: USA, New Jersey
Posts: 2,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

send me a link to your site .. via pm and I will see what is causing the issue
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 12:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07582 seconds
  • Memory Usage 2,370KB
  • Queries Executed 26 (?)
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
  • (6)bbcode_code
  • (4)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete