Support Forum

Profile pop-up does not display correctly.

7 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I think we need to concentrate on the jQuery issue first as this may be related.

MW Mike Whitney
Mike Whitney
Member

jquery issue resolved. Still need help on this one.

 

UPDATE:  Looks like it’s just a Chrome issue.  Displays fine in IE and Firefox.

Thanks.

MP Mr Papa
Mr Papa
Member

your wp theme imperial is still throwing js errors…  in

http://www.blog.webofgamers.com/wp-content/themes/imperial/js/scripts.js?ver=1.0

$(function(){
    $(‘#slides’).slides({
        play: 7000,
        hoverPause: false,
        fadeSpeed: 500,
        effect: ‘fade’,
        crossfade: true,
        generatePagination: false
    });
});

try changing those $ in there to jQuery…  much safer and better when used with WP..

MW Mike Whitney
Mike Whitney
Member

Hi Papa,

I’m in Arizona too! laugh

 

Anyway I’ve changed the offending code to no end.  I either get:

  1. Uncaught TypeError: Property ‘$’ of object [object DOMWindow] is not a function (anonymous function)
  2. Uncaught ReferenceError: jquery is not defined (anonymous function)

I’m not familiar with JS.  I know that the JS is being loaded from the WordPress library before this script.

Here is the complete code as it stands.

// PREVENT FLICKER ON INITIAL LOAD
//=================================================================================================================================

document.write(‘<style type=”text/css”>body{display:none}</style>’);
jQuery(function($) {
$(‘body’).css(‘display’,’block’);
});

// HOMEPAGE SLIDER
//=================================================================================================================================

jquery(function(){
jquery(‘#slides’).slides({
play: 7000,
hoverPause: false,
fadeSpeed: 500,
effect: ‘fade’,
crossfade: true,
generatePagination: false
});
});

MP Mr Papa
Mr Papa
Member

not quite what I asked for… this:

jQuery(function(){
    jQuery(‘#slides’).slides({
        play: 7000,
        hoverPause: false,
        fadeSpeed: 500,
        effect: ‘fade’,
        crossfade: true,
        generatePagination: false
    });
});

notice the capital Q…  still might not work… but that is where the error is…

MW Mike Whitney
Mike Whitney
Member

Ok LOL I fixed with the capital Q.

Error gone now.

Still have a display issue on the popup.  As I mentioned though it’s only in Chrome, IE, and Firefox display fine.

 

Thanks.

MP Mr Papa
Mr Papa
Member

it comes up fine for me with latest Chrome on PC…