Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
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: 128,914
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
  #2  
Old 12-30-2015, 08:49 PM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 67,389
Hwona is on a distinguished road
Default

Quote:
Originally Posted by Kyttias View Post
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.
Awesome! I made a JS wordscramble game that failed because I couldn't figure out how to use ajax... user cash wasn't updated. If I can get this to work, I can share the scramble script too.
__________________
Reply With Quote
Reply

Tags
ajax, game, higher or lower, javascript


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:25 PM.

Currently Active Users: 3375 (0 members and 3375 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636