vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   phpbb games. Is this do-able with this script ? Check Example Code (https://vborg.vbsupport.ru/showthread.php?t=111691)

dizzy100 03-30-2006 04:44 AM

phpbb games. Is this do-able with this script ? Check Example Code
 
I used an arcade for SMF (simple machines) and they wrote i script to parse the scores from phpbb arcade into the database.

Phpbb games call the newscore.php file with the folloowing (modyfied for simple machines) :-

PHP Code:

<?php

$game_name 
= (($HTTP_POST_VARS['game_name'])) ? $HTTP_POST_VARS['game_name']  : $_POST['game_name'];
$score = (($HTTP_POST_VARS['score'])) ? $HTTP_POST_VARS['score']  : $_POST['score'];

echo 
'<form method="post" name="re_direct" action="index.php?action=arcade">
       <input type="hidden" name="score" value="'
$score .'">
       <input type="hidden" name="game" value="'
$game_name .'">
       </form>
       <script type="text/javascript">
       window.onload = function(){document.re_direct.submit()}</script>'
;
exit();

?>

Now i'm wondering if this could be modified to allow us to use phpbb games with ibProArcade ? From what i see would it not just be changing the variables and where it calls the hi-score form ?


All times are GMT. The time now is 09:33 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.01349 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete