MyBB Community Forums

Full Version: Request: dtrailer BB code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I want to have a BBcode to embed clips from www.dtrailer.com in posts in my forum. It is a site only for movie trailers.

The structure of the link goes like this:

http://www.dtrailer.com/movies/watch/name-of-the-movie

I can't even try start do it myself because making the bbcodes in MyBB is EXTREMELY dificult to understandSmile Or at least I'll apreciate if someone provide me a link with friendly and understandable tutorial of how to make bbcodes in MyBB and will try to make it myselfSmile

Thanks in advanceSmile
in your custom mybb codes.. choos the name and desc you want for this bbcode..
and in Regular expression field add the following
\[tr\]http://www.dtrailer.com/movies/watch/(.*?)\[/tr\]
in replacement field add the following
<embed src="http://dtrailer.com/dplayer.swf" width="470" height="280" allowscriptaccess="always" allowfullscreen="false" flashvars="height=280&width=470&file=hancock.flvâ„‘=http://dtrailer.com/posters/$11_large[1]_thumb.jpg&backcolor=0x000000&frontcolor=0xFFFFFF&lightcolor=0xCC0000&displayheight=280&link=http://www.dtrailer.com/movies/watch/$1&linkfromdisplay=true" />

the user must post the link like the following example
[tr]http://www.dtrailer.com/movies/watch/the_movie_name[/tr]
I didn't have the time to test it out at the moment but you can give it a try..