Soporte 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 respuestas (en la página 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 encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión