vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   vbProArcade Beta 2 (https://vborg.vbsupport.ru/showthread.php?t=42880)

aibon 11-17-2002 06:00 PM

Quote:

Originally posted by desi
well as suggested i've checked everything .... all the games work fine for admins only ...

but when i try to activate the game... i just doesn't do it ..:(
cheers [/B]
make sure you activate EACH game in the game options. that's the only thing that will be checked in the code for your issue. use phpmyadmin and look in the table and set the corrosponding field manually to 1, if you cant get it to work.

@milkmycow:
sounds like the flashmovies arent found. i couldnt check your forum, didnt want to register. look in the sourcecode of your html-page with the flashmovie and check what path is set therer for the movie.

Sebastian 11-17-2002 07:30 PM

I am getting a blank page as well, the page loads but not the game... the flash hangs and never loads.

milkmycow 11-17-2002 08:53 PM

how can we fix it? :(

aibon 11-18-2002 12:22 AM

Quote:

Originally posted by milkmycow
how can we fix it? :(
like i said, check what url is in the flash object-tag. you have to enter the right directory in the global options (for testing leave this blank and put all your movies in the /forum dir). if you cant get it to work, pm me the url to your forum and a login i can use and ill take a look.

btw. i fixed a little bug with the querystring, the querystring to the movie has to be urlencoded, because there are specialchars in it (/) which can't be transfered in the url. some versions of internet explorer fix this itself, but netscape dont.

in the flash object tag for netscape, the querystring was missing, so that was probably the problem why the scoreboard etc. didint work in netscape.

with that 2 fixes, i was able to get all working with netscape7. no problem with the scoreboard and posting, runs fine. i dont know if there are problems with other netscape versions. if so, post the the netscape version and error message here, ill take a look.

here are the 2 fixes:

in proarcade.php find this:

PHP Code:

  // get the relative URL of the forum
  
$vpa_bburl reduceurl($bburl); 

replace it with:

PHP Code:

  // get the relative URL of the forum
  
$vpa_bburl urlencode(reduceurl($bburl)); 


in template vbproarcade_playgame_flashcode

replace
PHP Code:

<embed src="$vpa_filename$vpa_eparams width="$vpa_widthheight="$vpa_height"

with

PHP Code:

<embed src="$vpa_filename?$vpa_qstring$vpa_eparams width="$vpa_widthheight="$vpa_height"

thats it... have fun.

and thx to futurereal for this nice hack...

if any1 got some more flashgames, go ahead and post the fla.files here...

Sebastian 11-18-2002 01:09 AM

Milkmycow, (that sounds funny) .. I figured out the problem, in admin cp click on vbproarcade general options and change the path to games from /games/ to games/

Sebastian 11-19-2002 03:40 PM

Anyone having trouble uploading the images for each game? I upload the images but it doens't get displayed on the arcade index .. odd, I was able to upload the score board and crown images without a problem.

Hubsi 11-19-2002 06:50 PM

first i have to say, that this is a great hack :)

but now i have a question i think was often there: "Is there a way to get more games for this hack?" ;)

Sebastian 11-19-2002 08:44 PM

futureal, can you explain how come I am getting 3 extra queries on forum home? There isn't anything vbproarcade related on forum home, how come an increase in queries on main page? How do I at least turn 3 queries into 1?

Quote:

Query: SELECT * FROM arcadegames ORDER BY title ASC
Time before: 0.32712602615356
Time after: 0.3318430185318

--------------------------------------------------------------------------------

Query: SELECT template FROM template WHERE title='vbproarcade_gamelinkbit' AND (templatesetid=-1 OR templatesetid=4) ORDER BY templatesetid DESC LIMIT 1
Time before: 0.33376896381378
Time after: 0.33636605739594

--------------------------------------------------------------------------------

Query: SELECT template FROM template WHERE title='vbproarcade_gamelinks' AND (templatesetid=-1 OR templatesetid=4) ORDER BY templatesetid DESC LIMIT 1
Time before: 0.34161496162415
Time after: 0.3439689874649

aibon 11-19-2002 09:22 PM

Quote:

Originally posted by Sebastian
futureal, can you explain how come I am getting 3 extra queries on forum home? There isn't anything vbproarcade related on forum home, how come an increase in queries on main page? How do I at least turn 3 queries into 1?


im not futureal, but here you go: all i can say is rtfm.... read da ++++ing manual.

in index.php there's code inserted so that you can put some links to the games on your forumhomepage template . that's explained in the manual.txt. just revert your index.php to your orignal code if you dont need it.

Mijae 11-19-2002 11:13 PM

in proarcade.php I replace the default permissions with:

PHP Code:

if
(
(
(
$bbuserinfo[usergroupid] != 2) and
(
$bbuserinfo[usergroupid] != 5) and
(
$bbuserinfo[usergroupid] != 6) and
(
$bbuserinfo[usergroupid] != 7) and
(
$bbuserinfo[usergroupid] != 8)

) and
(
(
$bbuserinfo[posts] < 2)
)
)
{
show_error_nopermission();
}

break; 

How can I make a user with no requierments go to a new template with the text saying Y"ou need 2 posts to play in the arcade"?


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.02455 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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