I hope someone understands my title.
When you click on Fullscreen with a game it goes fullscreen in the same window, I want that the game starts in a new window. Does someone know how to do that?
Thanks in advance!!
I am searching in "ArcadeGame.php"
I think it must be set somewhere here on that php file:
$context['arcade']['buttons']['fullscreen'] = array(
'text' => 'arcadeFullPopup',
'image' => 'arcade_fullscreen.gif', // Theres no image for this included (yet)
'url' => !empty($context['arcade']['play']) ? $scripturl . '?action=arcade;sa=play;game=' . $context['game']['id'] . ';pop=1;full=1;sameArcadeWindow=1;reload=' . mt_rand(1, 9999). ';#playgame" onclick="arcadeRestart(); return false;' : $scripturl . '?action=arcade;sa=play;game=' . $context['game']['id'] . ';pop=1;full=1;sameArcadeWindow=1;reload=' . mt_rand(1, 9999). ';#playgame',
'lang' => true
);
Just remove the sameArcadeWindow=1; text from the url parameter.
The arcade already does both.. from the list itself it opens a new window but if you're playing a game & use the lower button from the playscreen it uses the same window. This way the user already has both options.
Tnx Chen, doesn't work for me.
But maybe it's a setting in my browser. Or cache.
Testing a lot of options. You see onclick, tried it with window.open...
The game link has to have:
pop=1;sameArcadeWindow=1;
.. included in the url for it to work.
ie.
https://web-develop.ca/index.php?action=arcade;sa=play;game=624;pop=1;sameArcadeWindow=1;
It depends on how you are showing the link.
Is this from a post or directly from HTML ?
If it's directly from HTML then use the target attribute.
ie.
<a href="https://web-develop.ca/index.php?action=arcade;sa=play;game=624;pop=1;sameArcadeWindow=1;" target="_self">Save Santa Claus</a>
If you are doing it from a post then you can use the iurl BBCode:
[iurl=https://web-develop.ca/index.php?action=arcade;sa=play;game=624;pop=1;sameArcadeWindow=1]Save Santa Claus[/iurl]
example using iurl inside a post:
Save Santa Claus (https://web-develop.ca/index.php?action=arcade;sa=play;game=624;pop=1;sameArcadeWindow=1)
If you are trying to use javascript then you can use the window.open method with the self attribute.
Example:
window.open("https://web-develop.ca/index.php?action=arcade;sa=play;game=624;pop=1;sameArcadeWindow=1;", "_self");
You can also use: window.open.href or window.replace
..but it all depends on how you want the browser history to behave (back button).