MyBB Community Forums

Full Version: Imdb MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi to all i wonder and cannot find this code for Mybb so can someone do it to work when you add name of the movie in the [imdb][/imdb]
for example:
[imdb][/imdb]

<a href="http://www.imdb.com/find?s=all&q={SIMPLETEXT}" target="_blank">{SIMPLETEXT}</a>

After that when you click [imdb]Rambo[/imdb] go to imdb site with info about movie..
Go to AdminCP > Configuration > MyCodes > Add new MyCode

Title: IMDB
Description: Search imdb.com
Regular Expression:
\[imdb\](.*?)\[/imdb\]

Replacement:
<a href="http://www.imdb.com/find?s=all&q=$1" target="_blank">$1</a>

>> Save
Thank You tested and works
Great! Big Grin
Is there a way to embed IMDB Video clips ? And if so, how ? Searched on the forums but couldn't find it.
(2012-08-27, 07:41 AM)Wolfseye Wrote: [ -> ]Is there a way to embed IMDB Video clips ? And if so, how ? Searched on the forums but couldn't find it.

You can embed it. But i dont think a mycode would work in any way.. you would have to have a mycode to paste the whole html code in it.

Since they use key ids for example:

This trailer:
http://www.imdb.com/video/imdb/vi839492121/

Is this video:
http://video-http.media-imdb.com/2FMV5BM...QyODg3.mp4

And this is the embed code:
http://jsfiddle.net/dyLAP/

so yeah.. thats not going to happen. You can add videos manually.. but you would have to constantly go to the video beta section. So get the video ID from the main page.. make the url like:

http://www.imdb.com/video/imdb/(video id thingie)/

And then go looking for the embed object in the elements. Honestly thats not even worth it..

Edit
Its possible but somebody would have to port the wordpress plugin over: http://wordpress.org/extend/plugins/imdb...-trailers/
Seems to be broken http://www.cinemabase.org/examples