Suport de The Movie Database

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 resposta (a les pàgines 1 de 1)

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

No trobeu una pel·lícula o una sèrie? Inicieu la sessió per a crear-la.

Global

s centra la barra de cerca
p obre el menú del perfil
esc tanca una finestra oberta
? obre la finestra de dreceres de teclat

A les pàgines de materials

b torna enrere (o la superior quan sigui aplicable)
e ves a la pàgina d’edició

A les pàgines de temporades

(fletxa dreta) ves a la temporada següent
(fletxa esquerra) ves a la temporada anterior

A les pàgines d'episodis

(fletxa dreta) ves a l'episodi següent
(fletxa esquerra) ves a l'episodi anterior

A totes les pàgines d'imatges

a obre la finestra d'afegir imatges

A totes les pàgines d'edició

t obre el selector de traducció
ctrl+ s envia el formulari

A les pàgines de debat

n crea un debat nou
w canvia l'estat de visualització
p canvia públic/privat
c tanca o obre
a obre activitat
r resposta al debat
l ves a la darrera resposta
ctrl+ enter envieu el vostre missatge
(fletxa dreta) pàgina següent
(fletxa esquerra) pàgina anterior

Configuracions

Desitgeu valorar o afegir aquest element a una llista?

Inicieu la sessió