php - Using PHPThumb and Thickbox/Colorbox
Get the solution ↓↓↓Solution:
Fixed it.
Thickbox (and I'm sure colorbox as well) gets the file extension:
var urlString = /\.jpg$|\.php$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
added .php in there as well as the following if statement:
if(urlType == '.php' ||urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){
And it works!
Answer
Solution:
Colorbox has a setting; photo: false by default.
If true, this setting forces ColorBox to display a link as a photo. Use this when automatic photo detection fails (such as using a url like 'photo.php' instead of 'photo.jpg')
So something like this should work:
$("a.gallery").colorbox({photo: true});
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: object of class stdclass could not be converted to string
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.