WordPress.org

Ready to get started?Download WordPress

Forums

Using WPG2 & Thickbox (1 post)

  1. grosbouff
    Member
    Posted 6 years ago #

    Hello, i'm planning to use WPG2 with Thickbox instead of Lightbox.
    Here's how i've done :

    -First I modified some stuff in WPG2 to launch Thickbox rather than Lightbox : http://techblog.touchbasic.com/html/how-to-get-the-wpg2-plugin-to-work-with-thickbox/

    -Then I installed Thickbox 3 plugin

    Here, the Thickbox is launching when I click a WPG2 image.

    The problem it's that it's not displaying as it should :
    I got something like this in the box instead of the picture :
    http://www.arlt.tv/blog/wp-content/uploads/2007/12/thickbox1.jpg

    So I patched Thickbox as said here to allow php-generated images :

    var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.php$/;
    var urlType = baseURL.toLowerCase().match(urlString);
    
    if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' ||
       urlType == '.gif' || urlType == '.bmp' || urlType == '.php'){
       //code to show images

    But the problem remains, and I don't know why.

    The URL of a typical image is http://127.0.0.1/AnimaV2/public_html/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=773&g2_GALLERYSID=9bb35a829a1ff4bb19d8400488fa9169&random=1210324139862, there is .php in that url so the matching should be OK.
    So what's the deal ?

    Thanks !

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.