emulator icon indicating copy to clipboard operation
emulator copied to clipboard

Problems with wordpress?

Open lotus13 opened this issue 8 years ago • 2 comments

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.

lotus13 avatar Jan 15 '17 07:01 lotus13

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)

nesbox avatar Jan 15 '17 13:01 nesbox

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.

lotus13 avatar Jan 16 '17 02:01 lotus13