nesbox / emulator

Emulator of NES, Super Nintendo, Sega Mega Drive, GameBoy video consoles
http://nesbox.com/emulator/
MIT License
592 stars 247 forks source link

Problems with wordpress? #57

Open lotus13 opened 7 years ago

lotus13 commented 7 years ago

Hi, put all the swf files in the flash folder, if I put the url for the locations of the Nesbox.swf it pulls up fine, but I just can't get embedding to work. This is my site gamesdecrypter.com This is the code

var flashvars = { system : 'nes', url : '/roms/DigDug.nes' }; var params = {}; var attributes = {};

            params.allowscriptaccess = 'sameDomain';
            params.allowFullScreen = 'true';
            params.allowFullScreenInteractive = 'true';

            swfobject.embedSWF('/flash/Nesbox.swf', 'emulator', '640', '480', '11.2.0', '/flash/expressInstall.swf', flashvars, params, attributes);

Any help would be appreciated, thanks.

nesbox commented 7 years ago

Hi,

here are errors on your page, try to fix them before

JQMIGRATE: Migrate is installed, version 1.4.1
(index):117 Uncaught SyntaxError: Unexpected token <
scripts.js?ver=4.7.1:12 Uncaught TypeError: $(...).slicknav is not a function
    at HTMLDocument.<anonymous> (scripts.js?ver=4.7.1:12)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)
(anonymous) @ scripts.js?ver=4.7.1:12
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2
scripts.js?ver=4.7.1:32 Uncaught TypeError: jQuery(...).flexslider is not a function
    at scripts.js?ver=4.7.1:32
    at dispatch (jquery.js?ver=1.12.4:3)
    at r.handle (jquery.js?ver=1.12.4:3)
lotus13 commented 7 years ago

I figured it out, wordpress theme was adding

tags to any empty lines so I removed the empty lines also permalink settings need to be plain so that the url points to correct place, that might help others with the embedding on wordpress problem.