*

Recent

Author Topic: Simple Full screen  (Read 6510 times)

Sterling

  • Jr. Member
  • **
  • Posts: 81
  • Force: +1/-0
    • Hitchhike games
Simple Full screen
« on: April 08, 2009, 01:34:41 AM »
Ok I made a very simple bit of code to create a full screen link. 
Find "play.php" an insert anywhere it makes sense:
Code: [Select]
<a href=\''.$domain.'/'.$gamesfolder.'/'.$r['file'].'\'><img src=\'/templates/default/images/fullscreen.png\' width=\"25\" align=\"\" height=\"25\" border=\'0\'> Play Full Screen</a>
I personally put it after this bit of code(line 62):
Code: [Select]
<td class=\'header3\' colspan=\'2\'><p>&nbsp;<p>'.$belowgames.'<p>Details
Save this image in "templates/default/images/" folder and name it "fullscreen.png": The code resizes the image of course!!!!

This just links to the .swf file...Someone can try to make a fullscreen page with ads! If you do let me know by posting it on the forums "add-ons" section.   Let me know if you like this code!!! ;D

Just Figured out that it doesn't work for non-self hosted games!!!
« Last Edit: April 09, 2009, 01:12:14 AM by Sterling »

legitnick

  • Newbie
  • *
  • Posts: 7
  • Force: +0/-0
Re: Simple Full screen
« Reply #1 on: April 29, 2009, 10:45:56 AM »
Thanks for helping me out





« Last Edit: April 30, 2009, 02:02:13 PM by legitnick »

Sterling

  • Jr. Member
  • **
  • Posts: 81
  • Force: +1/-0
    • Hitchhike games
Re: Simple Full screen
« Reply #2 on: April 29, 2009, 03:36:29 PM »
Well "legitnick" I know i already told what you did wrong at school, but to clear things up for everyone else....IT DOES WORK!!!

Trasion

  • Guest
Re: Simple Full screen
« Reply #3 on: July 21, 2009, 12:05:56 PM »
This certainly does work!

It works fantastic for me! :)

Except, in some games, like Fishy (http://zoovix.com/play/2-Fishy.html) try it, and click the 'Play Full Screen' link below the game. It shows white and the fish start there. Very odd.

It'd be great if we could find some way to read the size that each game was built to be at the max, and then have them open that big.

kurt

  • Developer
  • Hero Member
  • ******
  • Posts: 634
  • Force: +16/-1
Re: Simple Full screen
« Reply #4 on: July 21, 2009, 01:06:12 PM »
Believe it or not there is, and it is planned in the future after we get the script flowing the way we want it.

Trasion

  • Guest
Re: Simple Full screen
« Reply #5 on: July 21, 2009, 01:07:42 PM »
Any chance you'd tell us how to do it, I'll code it, and release it, and you guys can just add it into the files for next version? :)