Thread: Mys 1.3.4 Higher Or Lower Game
View Single Post
  #5  
Old 12-30-2015, 08:40 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,275
Kyttias is on a distinguished road
Default

Quote:
Originally Posted by Wallie987 View Post
This looks amazing! Do you know if it's compatible with v1.3.3?
It should be! This is how it works for v1.3.4 in view/hiloview.php:

PHP Code:
$mysidia Registry::get("mysidia");
$document $this->document;    
$document->setTitle('Higher or Lower');
$document->add(new Comment('<p>Guess if the second number will be higher or lower. The highest possible number is 16.</p>
<iframe id="game" style="width: 100%; min-height: 500px;" src="../../games/hilo/hilo.php?username='
.$mysidia->user->username.'" frameborder="0" scrolling="yes"></iframe>')); 
To make it work with v1.3.3, the most important thing is to make sure that an iframe is made that links to hilo.php with the username as a parameter. Can you see how that works above? I'm not familiar with how pages are constructed in v1.3.3 but if you are, just add in an iframe and it should take care of itself.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 12-30-2015 at 08:44 PM.
Reply With Quote