vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - v3 Arcade - Professional vBulletin Gaming (vB4) (https://vborg.vbsupport.ru/showthread.php?t=253211)

LLent 03-30-2012 03:58 PM

Quote:

Originally Posted by Gemma (Post 2315069)
Can you try this - http://www.vbadvanced.com/forum/showthread.php?t=47744

Someone else had that problem but never got back to me about whether it solved the problem or not.


well Gemma that fixed the issue all is good now ...thanks very much

Nirjonadda 03-30-2012 04:50 PM

1 Attachment(s)
Enable Arcade Awards in Postbit...show multi-color crowns its not working...onely show Game Title....how i can fix it?
Where upload the crossdomain ? And what does it do?

Attachment 137463

Hostboard 03-30-2012 05:30 PM

Previously noted...

Quote:

Originally Posted by Gemma (Post 2306144)
For Mochi games to submit scores you will need to place the crossdomain.xml in your site root; not your forum root. Also, you will need to make sure games are leaderboard enabled games so that scores can be submitted.


Gemma 03-31-2012 12:06 PM

Quote:

Originally Posted by Nirjonadda (Post 2315100)
Enable Arcade Awards in Postbit...show multi-color crowns its not working...onely show Game Title....how i can fix it?
Where upload the crossdomain ? And what does it do?

Attachment 137463

From the shot you've posted I'm guessing that is the content when hovering over the multi-crown icon. Can you post a screenshot of your full postbit?

Upload the crossdomain.xml to your site root (not forum root or any other subfolder) - it should be www.yourdomain.com/crossdomain.xml

The crossdomain.xml is need if you wish to use Mochi games - if you don't upload it as mentioned above your scores will not save. If you have no plans to use Mochi games then you don't need to upload it.

Nirjonadda 03-31-2012 01:32 PM

1 Attachment(s)
Quote:

Originally Posted by Gemma (Post 2315363)
From the shot you've posted I'm guessing that is the content when hovering over the multi-crown icon. Can you post a screenshot of your full postbit?

Upload the crossdomain.xml to your site root (not forum root or any other subfolder) - it should be www.yourdomain.com/crossdomain.xml

The crossdomain.xml is need if you wish to use Mochi games - if you don't upload it as mentioned above your scores will not save. If you have no plans to use Mochi games then you don't need to upload it.

only problem for multi-crown icon...it's not display correctly .

Attachment 137475

Gemma 03-31-2012 01:41 PM

I see what you mean, it is when Show All Awards In Postbit is selected too. I'll see if I can find a solution.

jaykilgore 03-31-2012 08:59 PM

Super easy install! The last time I tried to install a vbgame it took a few days and still didn't work. I planned the whole day out to install this, three minutes later I was figuring out what to do with the rest of my day!

My question? Is there a way to get more games?

Gemma 03-31-2012 09:55 PM

Quote:

Originally Posted by jaykilgore (Post 2315504)
Super easy install! The last time I tried to install a vbgame it took a few days and still didn't work. I planned the whole day out to install this, three minutes later I was figuring out what to do with the rest of my day!

My question? Is there a way to get more games?

It is against vbulletin.org site rules to post direct links to arcade game download sites but you'll find a plethora of sites by typing ibproarcade games into any search engine.

Also, you can use games from mochimedia.com - if you go down that route you will need to setup a Mochi account and add some details to your v3 Arcade settings. There is a guide on how to do this here - http://www.vbadvanced.com/forum/showthread.php?t=46531

jaykilgore 04-01-2012 01:46 AM

Thank you,

I was able to add a few games from the ibproarcade site. I like it better than the spam on the other site.

But now I've run into a problem, when I make a new record from a newly uploaded game, I get a

PHP Code:

Your submission could not be processed because a security token was missing.

If 
this occurred unexpectedlyplease inform the administrator and describe the action you performed before you received this error

I've put the fix

PHP Code:

// 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 

Both after the <?php and after the
http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

And when that happens, it gives me a white page.

Gemma 04-01-2012 09:51 AM

Quote:

Originally Posted by jaykilgore (Post 2315576)
Thank you,

I was able to add a few games from the ibproarcade site. I like it better than the spam on the other site.

But now I've run into a problem, when I make a new record from a newly uploaded game, I get a

PHP Code:

Your submission could not be processed because a security token was missing.

If 
this occurred unexpectedlyplease inform the administrator and describe the action you performed before you received this error

I've put the fix

PHP Code:

// 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 

Both after the <?php and after the
http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

And when that happens, it gives me a white page.

Don't use that code, that is for one of the other arcade systems.

If you run either vBAdvanced CMPS or vBulletin Suite CMS then you will need to make a small edit to your index.php file, details in this post - https://vborg.vbsupport.ru/showpost....&postcount=469

If you don't have a portal or you do the edit and scores still don't submit, send me a link to your site and I'll check it out. Also it could be that I need to update one of your files.


All times are GMT. The time now is 07:12 PM.

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.02071 seconds
  • Memory Usage 1,796KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete