The Movie Database Support

Hello everyone

I use some information from the MovieDB on my site. I want to allow the user to click on a link to get directly to the openMovieDB and the relevant movie-page. Most other API's offer something like "siteurl" or similar to provide this. Or they use the id in the url to point to the right page.

Am I missing something or how do I link to a specific movie using the info from the API ?

Thanks in advance Michael Lurie

3 erantzun (1(e)tik 1. orrian)

Jump to last post

Depending on what information your using from MovieDB. If you hold the MovieID from MovieDB what you could do is use the API to search a movie by title and return ID. Then what you need to do for a link is some thing like below:


";
 echo $movieTitle; 
echo "< /a>";

The space between the < and the a is there because otherwise it tries to create a link on the page.

Dale :D

Hi Michael,

Yes, as Dale mentioned you need inky the id.

https://www.themoviedb.org/movie/ID

Ie.

https://www.themoviedb.org/movie/550

Cheers.

Thanks. That did it. Michael

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Ezarpenak

Elementu hau kalifikatu edo zerrenda batera gehitzea nahi al duzu?

Saioa hasi