Using WPG2 & Thickbox
-
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 : https://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 :
https://www.arlt.tv/blog/wp-content/uploads/2007/12/thickbox1.jpgSo 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 https://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 !
- The topic ‘Using WPG2 & Thickbox’ is closed to new replies.