Can fullscreen be "target="_new"

Started by Boombeast, November 10, 2020, 01:59:44 PM

Previous topic - Next topic


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

Chen Zhen

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

Chen Zhen

November 12, 2020, 05:11:08 PM #4 Last Edit: November 12, 2020, 05:19:28 PM by Chen Zhen
The game link has to have:
.. included in the url for it to work.


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.
<a href=";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=;sa=play;game=624;pop=1;sameArcadeWindow=1]Save Santa Claus[/iurl]

example using iurl inside a post:
Save Santa Claus

Chen Zhen

If you are trying to use javascript then you can use the method with the self attribute.

Example:";sa=play;game=624;pop=1;sameArcadeWindow=1;", "_self");

You can also use: or window.replace ..but it all depends on how you want the browser history to behave (back button).