WordPress.org

Ready to get started?Download WordPress

Forums

IMAGES HELP wp3.3.1 (4 posts)

  1. Battleversion
    Member
    Posted 2 years ago #

    Say i go to this page, or any page on my site. when you click on the thumbnail, it just continues to load and not do anything. we've ad a problem, and hope updating WP and plugins would help, but still doesn't. Anyone have any help?

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Check all your settings re NextGen Gallery and Thickbox.

  3. Battleversion
    Member
    Posted 2 years ago #

    i have no idea what im doing, really. someone set it up years ago and i need to fix it, but dont want to pull the whole thing down...

    here is the bit of code i get when i run with error checking

    Uncaught TypeError: Cannot call method 'match' of undefined
    TB_show thickbox.js:80
    (anonymous function)thickbox.js:28
    f.event.dispatchjquery.js:3
    f.event.add.h.handle.ijquery.js:3
    2
    thickbox.js:346Uncaught ReferenceError: TB_WIDTH is not defined
    TB_positionthickbox.js:346
    f.event.dispatch jquery.js:3
    f.event.add.h.handle.i

    I think it's in the thickbox.js but i have no idea where to edit this at or how to fix it...

  4. Battleversion
    Member
    Posted 2 years ago #

    i think it's in this code... (where the uncaught typeerror is)

    // find the anchors that point to the group
    var imageGroup = jQuery("a[rel="+rel+"]").get();
    var foundSelf = false;
    var imageTitle = 'Gallery'; //default to something sane
    // loop through the anchors, looking for ourself, saving information about previous and next image
    for (var i = 0; i < imageGroup.length; i++) {
    var image = imageGroup[i];
    var urlTypeTemp = image.href.match(imageURL);
    Uncaught TypeError: Cannot call method 'match' of undefined

    // look for ourself
    if ( image.href == url ) {
    foundSelf = true;
    imageCount = "Image " + (i + 1) + " of "+ (imageGroup.length);
    if(image.rel != null) {
    imageTitle = image.rel.replace(/_/, " ");
    }
    } else {
    // when we found ourself, the current is the next image
    if ( foundSelf ) {
    next = getInfo(image, "next", "Next >");
    // stop searching
    break;
    } else {
    // didn't find ourself yet, so this may be the one before ourself
    prev = getInfo(image, "prev", "< Prev");
    }
    }
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.