03 Mar 2009 @ 12:52 PM 

I think it’s a widely known fact that Flash Games are getting bigger. The resolutions are increasing as well as the file sizes. This may pose a problem if you use AV Arcade to manage your arcade sites’ content.

The area usable for containing the games in AV Arcade’s default template is about 650px, which is fine for most games. Some other templates, on the other hand, use an area a lot smaller to contain the main Flash Game.

Some games I have on my Online Arcade use a width of up to 800px, which can over lap the sidebars and hide their content.

It’s a simple problem to fix and can even help boost your arcade sites earnings a little…

The Fix

Upload a button or picture to:
*Yoursite.com*/templates/*YourTemplate*/images/play-fullscreen.png

Open:
*Yoursite.com*/content/game.php

Search For:

47
48
49
50
51
52
53
54
55
56
	else 
	{
		echo '<object width="'.$row['width'].'" height="'.$row['height'].'">
		<param name="movie" value="'.$row['url'].'">
		<embed wmode="transparent" src="'.$row['url'].'" width="'.$row['width'].'" height="'.$row['height'].'">
		</embed>
		<param name="wmode" value="transparent" /></object>';
	}
}
else if (4 == $row['filetype'])

Add Above:

if ($row['width'] > 640)
{
  echo "<em style='font-size:1.4em;'><strong>{$row['name']}</strong> uses a large resolution.<br />
  Click the button below to play in it's correct screen size!</em><br />";
  echo '<a rel="nofollow" href="#"';
  echo '" onclick="javascript:window.open(\'';
  echo $row['url'];
  echo '\',\'popup\',\'width=';
  echo $row['width'];
  echo ',height=';
  echo $row['height'];
  echo '\');"><img src="'.$template_url.'/images/play-fullscreen.png" alt="Full Size" title="Play Full Size" /></a>';
}

The above code will check if the game width is higher than 640px.
If 640px + then it will create a popup window with the game inside. It pulls the game URL and size from the SQL database.
When someone clicks the button the page will reload. So you should generate twice the adsense earnings from theses games… Which is a bonus.
You could link to the built in full screen mod, but I could never get it to act how I wanted.

I have been asked a few times about this, so thought I’d post a fix.
Hope someone finds it usefull.



  • Technorati
  • StumbleUpon
  • Reddit
  • del.icio.us
  • Facebook
  • MySpace
  • LinkedIn
  • Live
  • Sphinn
  • MisterWong
  • Slashdot
  • Tumblr
  • Wikio
  • Yahoo! Buzz
  • BlinkList
  • Google Bookmarks
  • Print
  • email
Posted By: Abe
Last Edit: 08 Aug 2009 @ 11:50 AM

EmailPermalink
Tags
Tags: ,
Categories: AV Arcade


 

Responses to this post » (None)

 
Post a Comment

You must be logged in to post a comment.

Change Theme...
  • Users » 178
  • Posts/Pages » 33
  • Comments » 28
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

DDO Forum



    No Child Pages.