vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Flash Player - Play Any Flash Game or Movie - Tetris, Pacman, Frogger, Minesweeper (https://vborg.vbsupport.ru/showthread.php?t=42196)

DarkDraco07 08-18-2002 11:19 PM

sorry erwin, everytthing is right. the url has no .swf, case is the same. the flash shows only when it wants to. one time it shows for me and not for someone else. anothertime it doesnt work for me and works for someone else

Erwin 08-18-2002 11:34 PM

When the flash doesn't load, click on "REFRESH". The browser's cache can cause problems.

DarkDraco07 08-18-2002 11:54 PM

tried
want to take a look at it?

Erwin 08-19-2002 12:01 AM

I'm at work.

PM me a test user account, and I'll log in and test it when I get home. :)

Give me about 4 hours until I finish work.

Erwin 08-19-2002 12:35 AM

Also, you can try this:

In "flash" template, find:

Code:

<head>
UNDER it, add:

Code:

        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="no-cache">
        <meta http-equiv="Expires" content="-1">
        <meta http-equiv="Cache-Control" content="no-cache">
        <!-- end no cache headers -->

This forces the page to refresh - see if that helps.

ipscone 08-19-2002 01:17 AM

I have had an annoying problem that manifests itself with a "no permission" page coming up while going between the flash games and my vBPortal.

I have found the solution to my problem and it looks like there is a logic problem with the placement of "show_nopermission()" call. I know that people say they have no problem with this. But I have the problem and many of my members say they see the "no permission form" as well.

Anyway, logic of the original code is shown below:
PHP Code:

require('./global.php');

if (
$bbuserinfo[userid]) {
  if (
$play) {  
     
// do play stuff here
  

  else {
     
// do error stuff here
  
}
  
show_nopermission();  // looks like this [b]always displays ???[/b]


It looks like the show_nopermission() can only possibly be called in the block of code that is executed by a playing member. And, that's what I see. So, I decided to put the show_nopermission() where it made sense (at least to me).

In my revised version, I moved the show_nopermission() to the block of code that actually is executed, if the player has no permissions.
PHP Code:

//vB Flash Player 1.1 by Erwin Loh
//modified by: Mike Davis
//change: changed location of show_nopermission() and made it only

require('./global.php');

if (
$bbuserinfo[usergroupid]==1) {
  
show_nopermission();  
}
else {
  if (
$play) {
      
// do play stuff here
  

  else {
      
// do no game selected stuff here
  
}
}
?> 

Even though I have it working now on my site, I'd like to know if this is a bug, in the original code, that has just been masked on some systems or if I'm misunderstanding how this works. Because with the original code, 1) showed the "no permission page" and 2) the show_permission() function seems logically, in the wrong place, anyway.

My correcte page.

Erwin 08-19-2002 03:18 AM

ipscone is correct - I made a small mistake with version 1.1 of the flash.php file.

I misplaced a } tag. :)

I've changed the no permission section of flash.php - the easiest thing is to download the new version.

If it's working for you already with no problems, don't worry about it. Download the newest version from the 1st post, or in the next post.

Erwin 08-19-2002 03:20 AM

I've updated the flash.php again, and made 2 versions - one for registered members only, and one open to all including guests - as requested by IceMalee.

Keyser S?ze 08-19-2002 03:50 AM

does the new flash.php have the other updates as well?

also is this just so guests cant play the flash?

i accually want my guests to be able to

Erwin 08-19-2002 10:32 AM

Download the newest version from the first post. :) Old version removed...


All times are GMT. The time now is 05:49 AM.

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.01364 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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