Easy and simple.. love it – pity I have to wait 3 days for the API key
Thanks! The wait will be worth it I hope
Waste of time, didnt get api licence key granted.
Hmm that’s weird. I got it in about 3 days when I requested it, maybe you should try again with a better description of the application you’ll be using the tmdb info with?
is there anyway to get the backdrops I added the following codes to the TMDBSample.php file and it keeps echoing out the posters
added this to line 49 $backdrop = (string)$movie->images->image->attributes()->url;
and added this into the array “backdrop”=>$backdrop
and when I tried to print it, it keeps echoing out the poster instead of any of the backdrops
What you need to do is loop through the images array and get the image with the ‘type’ set to ‘backdrop’. The following code will get the backdrop image url and puts it inside of $backdrop:
foreach ($movie->images->image as $image)
if ($image->attributes()->type == "backdrop")
$backdrop = $image->attributes()->url;
Hi, I think they changed something in the API . If I search for a actor you normally received a big picture – now you only get a very tiny picture. Can this be changed?
And second question about searching for actors: If I search for Michael Caine – there is no result. If you look on the website http://www.themoviedb.org/search?search=michael+caine you will see that the first result is blank and the second it the correct result. Is there something like a loop where you skip the blank result and get the second result?
Answer to both your questions:
Indeed they changed the API . I’ve fixed the problem with the tiny picture and it’s now always the largest one it can find.
As for the ‘Michael Caine’ result, if you search for ‘Michael Caine’ the first returned result is ‘Michael Cain’ (which is weird). I build in a loop that picks the entry that corresponds to the persons name you searched for.
Will upload ASAP !
Hi, I think there is again a change in the Api. If I search for a actor there is no results.
I think something is wrong on their end. There is an example on the TMDB website for searching for actors:
This URL should return a xml with info, but it doesn’t. I’ve send them an email about it, will let you know when I hear something
Ok, they are working on it
They fixed the problem! You can now search for actors again and retrieve their information.
YES ! Great… The actor information is shown again: http://flickfacts.com/actor/Orson+Welles
This demo script is not working… for when a fix?
Seems to be working here? Only the actor search is currently bugged, but they are working on it (http://tmdb.lighthouseapp.com/projects/83077-api/milestones/current last ticket)
Is the API only working with the English speaking IMD site or is German IMD also avaiable?
If you mean the language in which this api returns it information, it is only english for now.
Hi, is there a quick fix to query the TMDb on movie id rather than title?
Hi, sorry for the late response but this feature is not implemented.
Just bough it but this outdated its using version 2.1 of themoviedb with XML!
Right now is version 3 using JSON also the TMDB.php is old version
Hi BartNIjland. Just bought this script. But i can’t seem to get it working. I signende up for a api key, and added it to the code but your demo index.php files just returns a blank search result.
I Bought it and it doesn’t work anymore
Notice: Trying to get property of non-object in C:\xampp\htdocs\stmdbapi\TMDbSimple.php on line 17
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Deliver better projects faster. Photos, templates & courses
Unlimited downloads. Only $29/month
Learn almost anything with
Envato Tuts+ for free
25,000+ tutorials and 1,000+ courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work