PDL Block

Started by Chen Zhen, July 06, 2013, 03:02:51 PM

Previous topic - Next topic

Chen Zhen

July 06, 2013, 03:02:51 PM Last Edit: April 27, 2015, 05:47:56 PM by Napalm
This block is specifically for use with the PDL/Skin combo plugin.

PHP Block Code -
$gameid - represents the game ID.
To select a game, choose:   game name, game file name or the game id number.
Entering a number less than 1, RAND or a name that isn't in the database plays a random game.

global $scripturl, $boardurl, $txt;
/* Change this gameid to a another game id, random (0 or RAND), or a game name  */
$gameid = 'RAND';
$ranum = (RAND(1,1255));
$id = 'x'.$gameid.$ranum.'x';
echo  '<center><a href="'.$scripturl.'?action=arcade;sa=popup;game='.$gameid.'" target="'.$id.'"><img src="'.$boardurl.'/Themes/default/images/arc_icons/popup_play_btn.gif"></img></a></center>
<center><p><!--[if IE]>
<iframe id="'.$id.'" name="'.$id.'" style="display:inherit;background-color:#000000;" src="'.$scripturl.'?action=arcade;sa=popup;game=PLAY" scrolling="no" frameborder="0" width="790" height="590">
<![endif]--><!--[if !IE]><!-->
<iframe id="'.$id.'" name="'.$id.'" style="display:inherit;" src="'.$scripturl.'?action=arcade;sa=popup;game=PLAY" scrolling="no" frameborder="0" width="805" height="620">


when can I solve this game job